surok/docs/Main-config-file.html
Васильев Евгений Владимирович 12b868ad0b Add Marathon discovery. Remade discovery and logger module
2017-01-25 13:11:51 +03:00

62 lines
1.6 KiB
HTML

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Main-config-file.html</title>
</head>
<body>
<h1>Surok main config file</h1>
<p>Default location is /etc/surok/conf/surok.json</p>
<p>conf/surok.json
<code>
{
"marathon": {
"enabled": false,
"restart": false,
"force": true,
"host": "http://marathon.mesos:8080"
},
"consul": {
"enabled": false,
"domain": "service.dc1.consul"
},
"mesos":{
"enabled": true,
"domain": "marathon.mesos"
},
"default_discovery": "mesos_dns",
"confd": "/etc/surok/conf.d",
"wait_time": 20,
"lock_dir": "/var/tmp",
"loglevel": "info",
"container": false,
"memcached": {
"enabled": false,
"discovery": {
"enabled": false,
"service": "memcached",
"group": "system"
},
"hosts": ["localhost:11211"]
}
}
</code>
* <strong>marathon section</strong>. Restarting app over marathon api if config changed. Disabled by default.
* <strong>confd</strong>. Directory where located configs apps.
* <strong>domain</strong>. Domain served by mesos-dns.
* <strong>lock<em>dir</strong>. Directory where surok writes temporary configs after resolving.
* <strong>wait</em>time</strong>. Sleep time in main loop.
* <strong>container</strong>. Not implemented.
* <strong>memcached section</strong>. Memcached support. Disabled by default.</p>
</body>
</html>