Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zoe-apps
zapp-spark
Commits
9c0995cf
Commit
9c0995cf
authored
Dec 04, 2019
by
Simone Rossi
Browse files
[skip ci] Smaller Clouds zapp
Signed-off-by:
Simone Rossi
<
simone.rossi@eurecom.fr
>
parent
26dabd03
Pipeline
#17316
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gen_json.py
View file @
9c0995cf
...
@@ -219,8 +219,8 @@ if __name__ == '__main__':
...
@@ -219,8 +219,8 @@ if __name__ == '__main__':
## CLOUDS ZAPP
## CLOUDS ZAPP
sp_master
=
spark_master_service
(
options
[
'master_mem_limit'
][
'value'
])
sp_master
=
spark_master_service
(
options
[
'master_mem_limit'
][
'value'
])
sp_worker
=
spark_worker_service
(
count
=
2
,
mem_limit
=
options
[
'worker_mem_limit'
][
'value'
]
,
cores
=
3
)
sp_worker
=
spark_worker_service
(
count
=
2
,
mem_limit
=
5
*
(
1024
**
3
)
,
cores
=
2
)
jupyter
=
spark_jupyter_notebook_service
(
options
[
'notebook_mem_limit'
][
'value'
],
options
[
'worker_mem_limit'
][
'value'
]
)
jupyter
=
spark_jupyter_notebook_service
(
mem_limit
=
5
*
(
1024
**
3
),
worker_mem_limit
=
5
*
(
1024
**
3
)
)
sp_worker
[
'labels'
]
=
[
'labs'
]
sp_worker
[
'labels'
]
=
[
'labs'
]
sp_master
[
'labels'
]
=
[
'labs'
]
sp_master
[
'labels'
]
=
[
'labs'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment