]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Speed up initial L3 full sync time
authorYoni Shafrir <yshafrir@redhat.com>
Mon, 5 Jan 2015 13:27:47 +0000 (15:27 +0200)
committerYoni Shafrir <yshafrir@redhat.com>
Tue, 13 Jan 2015 05:16:08 +0000 (07:16 +0200)
commitfff86b689e2ff0d4f6815ba1dd22ea7805202ab5
treee0189789d7104a5e48855f1ebd7e5bf11d23e04f
parent98c53d5b370e33bd91e17109e0fe4e9fb5b2ef9b
Speed up initial L3 full sync time

When a L3 agent starts up the initial full sync occurs
on the first periodic task interval.
This means that from the point the agent is ready to
process updates it can take ~1 minute until traffic
can start flowing through the L3 agent's routers.

When using a highly available solution (not VRRP)
the startup delay adds around a full minute to
the minimum downtime.

This patch simply does a manual (i.e. not periodic) full
sync once the L3 agent is ready (in 'after_start' method).

The change results in a much faster sync on a new agent.
With the patch it takes several seconds until routers are
created on the new/restarted L3 agent.

Closes-Bug: #1407410

Change-Id: I2447a4cdfff5e915f0b5da88e16c9b6944ea9563
neutron/agent/l3/agent.py
neutron/tests/unit/test_l3_agent.py