Merge "Tune up report and downtime intervals for l2 agent"
This commit is contained in:
commit
df9a518311
@ -211,8 +211,9 @@ notification_driver = neutron.openstack.common.notifier.rpc_notifier
|
|||||||
# max_fixed_ips_per_port = 5
|
# max_fixed_ips_per_port = 5
|
||||||
|
|
||||||
# =========== items for agent management extension =============
|
# =========== items for agent management extension =============
|
||||||
# Seconds to regard the agent as down.
|
# Seconds to regard the agent as down; should be at least twice
|
||||||
# agent_down_time = 5
|
# report_interval, to be sure the agent is down for good
|
||||||
|
# agent_down_time = 9
|
||||||
# =========== end of items for agent management extension =====
|
# =========== end of items for agent management extension =====
|
||||||
|
|
||||||
# =========== items for agent scheduler extension =============
|
# =========== items for agent scheduler extension =============
|
||||||
@ -301,8 +302,8 @@ notification_driver = neutron.openstack.common.notifier.rpc_notifier
|
|||||||
# root_helper = sudo
|
# root_helper = sudo
|
||||||
|
|
||||||
# =========== items for agent management extension =============
|
# =========== items for agent management extension =============
|
||||||
# seconds between nodes reporting state to server, should be less than
|
# seconds between nodes reporting state to server; should be less than
|
||||||
# agent_down_time
|
# agent_down_time, best if it is half or less than agent_down_time
|
||||||
# report_interval = 4
|
# report_interval = 4
|
||||||
|
|
||||||
# =========== end of items for agent management extension =====
|
# =========== end of items for agent management extension =====
|
||||||
|
@ -33,7 +33,9 @@ ROOT_HELPER_OPTS = [
|
|||||||
|
|
||||||
AGENT_STATE_OPTS = [
|
AGENT_STATE_OPTS = [
|
||||||
cfg.FloatOpt('report_interval', default=4,
|
cfg.FloatOpt('report_interval', default=4,
|
||||||
help=_('Seconds between nodes reporting state to server')),
|
help=_('Seconds between nodes reporting state to server; '
|
||||||
|
'should be less than agent_down_time, best if it '
|
||||||
|
'is half or less than agent_down_time.')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,8 +31,10 @@ from neutron.openstack.common import timeutils
|
|||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
cfg.CONF.register_opt(
|
cfg.CONF.register_opt(
|
||||||
cfg.IntOpt('agent_down_time', default=5,
|
cfg.IntOpt('agent_down_time', default=9,
|
||||||
help=_("Seconds to regard the agent is down.")))
|
help=_("Seconds to regard the agent is down; should be at "
|
||||||
|
"least twice report_interval, to be sure the "
|
||||||
|
"agent is down for good.")))
|
||||||
|
|
||||||
|
|
||||||
class Agent(model_base.BASEV2, models_v2.HasId):
|
class Agent(model_base.BASEV2, models_v2.HasId):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user