slaprunner: add configurable cpu-ratio parameter
[slapos.git] / software / neoppod / instance-neo-storage-mysql.cfg.in
1 [buildout]
2 extends = {{ master_cfg }}
3 parts += neo-storage-run-wrapper
4
5 [mariadb-instance]
6 recipe = slapos.cookbook:generic.mysql
7 user = user
8 database = neo
9
10 conf-file = ${directory:etc}/mariadb.cnf
11 # No networking (ip & port options)
12 data-directory = ${directory:srv_mariadb}
13 bin-directory = ${directory:bin}
14 pid-file = ${directory:var_run}/mariadb.pid
15 socket = ${directory:var_run}/mariadb.sock
16 error-log = ${directory:log}/mariadb_error.log
17 slow-query-log = ${directory:log}/mariadb_slowquery.log
18
19 wrapper = ${directory:etc_run}/mariadb
20 update-wrapper = ${directory:etc_run}/mariadb_update
21 mysql-base-directory = {{ mariadb_location }}
22 mysql-binary = {{ mariadb_location }}/bin/mysql
23 mysql-install-binary = {{ mariadb_location }}/scripts/mysql_install_db
24 mysql-upgrade-binary = {{ mariadb_location }}/bin/mysql_upgrade
25 mysqld-binary = {{ mariadb_location }}/bin/mysqld
26
27 mroonga =
28
29 [neo-storage]
30 recipe = slapos.cookbook:neoppod.storage
31 binary = {{ bin_directory }}/neostorage
32 wrapper = ${directory:bin}/neostorage
33 logfile = ${directory:log}/neostorage.log
34 ip = [${slap-network-information:global-ipv6}]
35 cluster = ${slap-parameter:cluster}
36 masters = ${slap-parameter:masters}
37 database-adapter = MySQL
38 database-parameters = ${mariadb-instance:user}:${mariadb-instance:password}@${mariadb-instance:database}${mariadb-instance:socket}
39 wait-database = 60
40
41 [neo-storage-run-wrapper]
42 recipe = slapos.cookbook:symbolic.link
43 target-directory = ${directory:etc_run}
44 link-binary = ${neo-storage:wrapper}
45
46 [directory]
47 etc = ${buildout:directory}/etc
48 var = ${buildout:directory}/var
49 etc_run =  ${:etc}/run
50 var_run =  ${:var}/run
51 srv_mariadb = ${buildout:directory}/srv/mariadb