Contents of consul.json configuration file 1,
| Number of servers expected in cluster (for server mode only) | on in server mode (false – client mode) | "iwtm",
| Title for datacenter | "data_dir":
| "/opt/iw/tm5/var/consul",
| Directory to store the | Consule Consul 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":
| the updates for Consul | "leave_on_terminate":
| it's true, then receiving SIGTERM, sends | the farewell an exit message and leaves the cluster in standard mode. Default values: for server | - – false, for client – true | "skip_leave_on_interrupt":
| it's false, then receiving the signal of interruptions (e.g, SIGINT) leaves the cluster in standard mode. Default values: for server | - - – false | "rejoin_after_leave":
| it's joining to cluster once startedjoins to cluster upon startup | "limits": {
| Limit section | "http_maxconns_per_client": 500
| Maximum number of HTTP(S) connections from one client | },
|
| "retry_join":
| "0.0.0.0",
| In case of distributed installation contains the list of servers, which should be connected to | "ui_config": {
| Web interface configuration section | "enabled": | true,false | Access to web interface (prohibited by default) | Client | IP of a client with open web interface access | }
|
| Unit-файл iwtm-Contents of iwtm-consul.service unit file demon relationship settings for interaction with other | demonsdaemons | Description=Consul Service discovery agent | Demon Daemon name | Requires=network-online.target | Services cannot operate | without networkwithout network-online.target | After=network-online.service | Demons | Daemons that will be run before the current | demon | | | Demon | Daemon start setting section | StandartOutput=syslog | Redirecting standard output to syslog | StandartError=syslog | Redirecting standard error to syslog | Type=simple
| Demon - demon | – daemon starts and switches to waiting mode on the console | User=iwtm
| User name on behalf of which | demon | daemon 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=true | Starting commands from ExecStartPre on behalf of the root user | ExecStartPre=/opt/iw/tm5/bin/consul validate /opt/iw/tm5/etc/consul | Full 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 | demondaemon. The command is to be run on behalf of the user defined in User | . | ExecReload=/bin/kill -s SIGHUP $MAINPID
| The command restarts | demon daemon 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| daemon's work forcefully | TimeoutStopSec=5
| Period of time within which the system waits for | demon | daemon to stop, before labeling it as inaccessible or stopped forcefully | . | | | | | demon| daemon's behaviour, if it is enabled or disabled | WantedBy=multi-user.target
| Start this | demon| daemon, when the system is loading in a multi-user mode |
|