neutron/neutron/tests/unit/notifiers
Kevin Benton b7e12b276a Turn nova notifier into a proper rate limiter
This adjusts the batching logic in the Nova notifier to immediately
send and then sleep to allow batching of subsequent calls in the batch
interval.

So rather than always wait for 2 seconds to elapse while batching,
batching will only occur in the 2 second period after a call is made.
This turns the batch notifier into a standard queuing rate limiter.

The upside to this is a single port create results in an immediate
notification to Nova without a delay.

The downside is now that a sudden burst of 6 port creations to a
previously idle server will result in 2 notification calls to Nova
(1 for the first call and another for the other 5).

Closes-Bug: #1564648
Change-Id: I82f403441564955345f47877151e0c457712dd2f
(cherry picked from commit 255e8a839d)
2017-03-20 20:48:58 +00:00
..
__init__.py Notify nova when ports are ready 2014-03-13 17:19:21 -07:00
test_batch_notifier.py Turn nova notifier into a proper rate limiter 2017-03-20 20:48:58 +00:00
test_nova.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00