surok/docs/Main-config-file.md

37 lines
977 B
Markdown
Raw Normal View History

2017-01-12 13:11:01 +03:00
# Surok main config file
Default location is /etc/surok/conf/surok.json
2017-01-12 12:43:30 +03:00
conf/surok.json
```
{
"marathon": {
"force": true,
"host": "http://marathon.mesos:8080",
"enabled": false
2017-01-12 13:11:01 +03:00
},
2017-01-12 12:43:30 +03:00
"confd": "/etc/surok/conf.d",
"domain": "marathon.mesos",
"wait_time": 20,
"lock_dir": "/var/tmp",
"loglevel": "info",
"container": false,
"memcached": {
2017-01-12 13:11:01 +03:00
"enabled": false,
"discovery": {
2017-01-12 12:43:30 +03:00
"enabled": false,
2017-01-12 13:11:01 +03:00
"service": "memcached",
"group": "system"
},
"hosts": ["localhost:11211"]
2017-01-12 12:43:30 +03:00
}
}
```
* **marathon section**. Restarting app over marathon api if config changed. Disabled by default.
* **confd**. Directory where located configs apps.
* **domain**. Domain served by mesos-dns.
* **lock_dir**. Directory where surok writes temporary configs after resolving.
* **wait_time**. Sleep time in main loop.
* **container**. Not implemented.
2017-01-12 13:11:01 +03:00
* **memcached section**. Memcached support. Disabled by default.