@@ -12,10 +12,6 @@ store: grpc
1212# This option is not required as the default value is "docker".
1313runtime : docker
1414
15- # kv defines the type of kv store.
16- # This option is not required as the default value is "etcd".
17- kv : etcd
18-
1915# core defines the address of eru-core component.
2016# This option is not required as the default value is "127.0.0.1:5001".
2117core :
2420
2521# heartbeat_interval defines the interval for eru-agent to
2622# report health status of the node to eru-core.
27- # This option is not required, and is only useful when enabling
28- # selfmon mode.
2923# If you don't want eru-agent to report this status, set it to 0.
30- # The default value of this option is 0 .
24+ # The default value of this option is 60 .
3125heartbeat_interval : 120
3226
3327# auth defines the authentication values for eru-core.
@@ -117,41 +111,13 @@ log:
117111#
118112# healthcheck.cache_ttl defines how long will eru-agent cache an unchanged status locally.
119113# This is only used when selfmon mode is switched on. The default value is 300 (in seconds).
120- #
121- # healthcheck.enable_selfmon defines whether selfmon is switched on.
122- # This should be true if there's at least one eru-agent is in mode selfmon.
123- # When this is true, healthcheck.enable_selfmon and heartbeat_interval is meaningless.
124114healthcheck :
125115 interval : 120
126116 timeout : 10
127117 cache_ttl : 300
128- enable_selfmon : false
129118
130119# global_connection_timeout defines the timeout for eru-agent other than healthcheck.
131120# E.g. the timeout for reporting action of eru-agent, or the timeout for eru-agent to
132121# connect to docker.
133122# The default value is "5s", note that "s" in the end.
134- global_connection_timeout : 15s
135-
136- # ha_keepalive_interval defines the time interval for sending heartbeat
137- # when selfmon maintains its own active state.
138- # The default value is "16s", note that "s" in the end.
139- ha_keepalive_interval : 16s
140-
141- # etcd defines the etcd configuration.
142- # This option is required and has no default value.
143- # If you don't plan to run this eru-agent in selfmon mode,
144- # you can give a mocked value e.g. 127.0.0.1:1111,
145- # this value won't be used to connect, it's only to pass
146- # the validation of this option (it's tricky).
147- # Will plan to improve this in next release.
148- #
149- # etcd.machines defines the addresses of etcd machines.
150- #
151- # etcd.prefix defines the prefix for eru-agents in selfmon mode.
152- # This prefix should be the same for all eru-agents in selfmon mode,
153- # and also distinguished for different ERU clusters.
154- etcd :
155- machines :
156- - 127.0.0.1:2379
157- prefix : /agent-selfmon
123+ global_connection_timeout : 15s
0 commit comments