-
Notifications
You must be signed in to change notification settings - Fork 6
/
default.rb
72 lines (57 loc) · 2.17 KB
/
default.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# installation and service attributes
default.spark.jobserver.user = 'vagrant'
default.spark.jobserver.group = 'vagrant'
default.spark.jobserver.spark_home = nil
default.spark.jobserver.spark_conf_dir = nil
# this will get downloaded/copied (i.e. not used directly), but can be a `file://` uri
default.spark.jobserver.jar_url = nil
default.spark.jobserver.port = 8090
default.spark.jobserver.service_actions = [ :enable, :start ]
default.spark.jobserver.install_dir = '/opt/spark-jobserver'
default.spark.jobserver.log_dir = '/var/log/spark-jobserver'
default.spark.jobserver.env_name = 'local'
# spark configuration
# one of standalone or mesos
default.spark.jobserver.master_type = 'standalone'
default.spark.jobserver.master_url = 'local[3]'
# standalone only
default.spark.jobserver.standalone.num_cpu = 2
# mesos only
default.spark.jobserver.mesos.spark_executor_uri = nil
# config file(s) attributes
default.spark.jobserver.data_dir = '/var/spark-jobserver'
default.spark.jobserver.jar_dir = '/var/spark-jobserver/jars'
default.spark.jobserver.file_dir = '/var/spark-jobserver/filedao'
default.spark.jobserver.default_context_settings = {
# Number of cores to allocate. Required.
# TODO throw exception if this isn't set
'num-cpu-cores' => 2,
# Executor memory per node, -Xmx style eg 512m, #1G, etc.
'memory-per-node' => '512m',
}
# these are created on startup; none are created by default, an example is provided below if you want this
default.spark.jobserver.default_contexts = { }
#default.spark.jobserver.default_contexts = {
# 'context-name' => {
# 'num-cpu-cores' => 2,
# 'memory-per-node' => '512m',
# },
#}
default.spark.jobserver.gc_opts = [
'-XX:+UseConcMarkSweepGC',
'-verbose:gc',
'-XX:+PrintGCTimeStamps',
'-Xloggc:$appdir/gc.out',
'-XX:MaxPermSize=512m',
'-XX:+CMSClassUnloadingEnabled',
]
default.spark.jobserver.java_opts = [
'-XX:MaxDirectMemorySize=512M',
'-XX:+HeapDumpOnOutOfMemoryError',
'-Djava.net.preferIPv4Stack=true',
# additional settings; from the spark-jobserver examples
#'-Xmx5g',
#'-Dcom.sun.management.jmxremote.port=9999',
#'-Dcom.sun.management.jmxremote.authenticate=false',
#'-Dcom.sun.management.jmxremote.ssl=false',
]