slaprunner: add configurable cpu-ratio parameter
[slapos.git] / software / neoppod / instance-neo-master.cfg.in
1 [buildout]
2 parts =
3   neo-master-run-wrapper
4   neo-master-promise
5 eggs-directory = {{eggs_directory}}
6 develop-eggs-directory = {{develop_eggs_directory}}
7 offline = true
8
9 [neo-master]
10 recipe = slapos.cookbook:neoppod.master
11 binary = {{bin_directory}}/neomaster
12 wrapper = ${directory:bin}/neomaster
13 logfile = ${directory:log}/neomaster.log
14 ip = ${publish:ip}
15 port = ${publish:port}
16 cluster = ${slap-parameter:cluster}
17 partitions = ${slap-parameter:partitions}
18 replicas = ${slap-parameter:replicas}
19 masters = ${slap-parameter:masters}
20
21 [publish]
22 recipe = slapos.cookbook:publish
23 # TODO: make port a partition parameter
24 # TODO: stop using slap-network-information
25 ip = [${slap-network-information:global-ipv6}]
26 port = 10000
27 master = ${:ip}:${:port}
28
29 [neo-master-run-wrapper]
30 recipe = slapos.cookbook:symbolic.link
31 target-directory = ${directory:run}
32 link-binary = ${neo-master:wrapper}
33
34 [directory]
35 recipe = slapos.cookbook:mkdirectory
36 promises = ${buildout:directory}/etc/promises
37 run = ${buildout:directory}/etc/run
38 log = ${buildout:directory}/var/log
39 bin = ${buildout:directory}/bin
40
41 [neo-master-promise]
42 recipe = slapos.cookbook:check_port_listening
43 hostname = ${neo-master:ip}
44 port = ${neo-master:port}
45 path = ${directory:promises}/neo-master-promise
46
47 [slap-parameter]
48 # "masters" parameter is not provided when just requesting a partition.
49 # No actuall installation takes place at that time
50 # (slapos.cookbook:neoppod.master raises), but cfg expansion must succeed. So
51 # this default value is required.
52 masters =