Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 6.11

...

Sv translation
languageen
ContentDescription
{
 
 "bootstrap_expect": 1,

Number of servers expected in cluster (for server mode only)

 "server": true,

Start of agent on server mode (false – client)

 "datacenter": "iwtm",

Title for datacenter

 "data_dir": "/opt/iw/tm5/var/consul",

Directory to store the Consule service data

 "encrypt": "4RTZ5ttYY6RwIYX28XWNPw==",

Secret key, shared between cluster agents

 "log_level": "WARN",

Level of logging

 "enable_syslog": true,

Let logging in syslog

 "disable_update_check": true,

Prohibit to check the updates for Consul

 "leave_on_terminate": false,

If it's true, then receiving SIGTERM, sends the farewell message and leaves the cluster in standard mode. Default values: for server - false, for client – true

 "skip_leave_on_interrupt": true,

If it's false, then receiving the signal of interruptions (e.g, SIGINT) leaves the cluster in a standard mopdemode. default Default values: foir for server - true, for client - false

 "rejoin_after_leave": true,

If it's true, then joining to cluster once started

 "retry_join": "0.0.0.0",

In case of distributed installation contains the list of servers, which should be connected to

 "ui": true,
Access to web interface (prohibited by default)
 "client_addr": "0.0.0.0"
Client IP with open web interface access
}
 

Unit-файл iwtm-consul.service 

Code
Description

[Unit]

Section defining demon metadata and its relationship settings with other demons

Description=Consul Service discovery agent

Demon name

Requires=network-online.targetServices cannot operate without network-online.target
After=network-online.serviceDemons that will be run before the current demon is started
  
[Service]Demon start setting section
StandartOutput=syslogRedirecting standard output to syslog
StandartError=syslogRedirecting standard error to syslog

Type=simple

 Demon start type. 
}
simple - demon starts and switches to waiting mode on the console

User=iwtm

User name on behalf of which demon is started

Group=iwtm

User group name

SyslogIdentifier=iwtm-consul

Defines process name for log prefix rows, which are sent to logging system or to core log buffer.

PermissionsStartOnly=trueStarting commands from ExecStartPre on behalf of the root user
ExecStartPre=/opt/iw/tm5/bin/consul validate /opt/iw/tm5/etc/consulFull path and command arguments which should be completed before starting the main process.

ExecStart=/opt/iw/tm5/bin/consul agent $OPTIONS -config -dir= /opt/iw/tm5/etc/consul

Full path and command arguments which should be completed to start demon. The command is to be run on behalf of the user defined in User.

ExecReload=/bin/kill -s SIGHUP $MAINPID

The command restarts demon configuration, if it is accessible. The command is to be run on behalf of the user defined in User.

KillSignal=SIGINT

The command stops demon's work forcefully

TimeoutStopSec=5

Period of time within which the system waits for demon to stop, before labeling it as inaccessible or stopped forcefully.

 

 
  

[Install]

Defining demon's behaviour, if it is enabled or disabled

WantedBy=multi-user.target

Start this demon, when the system is loading in a multi-user mode