keystone/keystone/openstack/common
Flavio Percoco a96d1a44bc User a more accurate max_delay for reconnects
In an HA deployment, a 60 seconds delay between reconnects can be quite
problematic. This patch changes the delay calculation by setting the max
delay to 5s and by changing the way it is increased.

Unfortunately, this is one of the places where both our main drivers are
not consistent. Rabbit's driver uses configuration parameters for this
whereas qpid's driver has never had one. However, I would prefer not
adding configuration paremeters to qpid's driver for the following
reasons:

    1. Most of OpenStack services depend on the messaging layer, hence
    they need it to be available. A 5s delay seems to be reasonable and
    I could argue the need of tune it further. Although so frequent
    reconnects can add load to the network, that wouldn't be the main
    issue if one of the brokers go down.
    2. We're trying to move away from configuration options towards using
    transport URL. This path is still not clear and I would
    prefer avoiding adding new options until we clear it out.

Closes-bug: #1281148

Change-Id: I537015f452eb770acba41fdedfe221628f52a920
(cherry picked from commit 8b628d1e024f787dbb93d508117d9148388c0590)
2014-03-28 14:14:02 +01:00
..
crypto Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00
db Add common code from Oslo for work with database 2013-08-29 17:06:29 +03:00
fixture Adds fixture package from oslo 2014-01-30 13:29:53 +01:00
notifier Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00
rpc User a more accurate max_delay for reconnects 2014-03-28 14:14:02 +01:00
README Update cfg from openstack-common 2012-02-23 06:20:40 +00:00
__init__.py Move cfg to keystone.openstack.common 2012-02-23 06:20:40 +00:00
context.py Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00
eventlet_backdoor.py Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00
exception.py Add common code from Oslo for work with database 2013-08-29 17:06:29 +03:00
excutils.py Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00
fileutils.py Add common code from Oslo for work with database 2013-08-29 17:06:29 +03:00
gettextutils.py Sync gettextutils from oslo 2013-09-24 22:41:22 +00:00
importutils.py Sync unified logging solution from Oslo 2013-08-09 19:38:07 +00:00
jsonutils.py Sync unified logging solution from Oslo 2013-08-09 19:38:07 +00:00
local.py Sync unified logging solution from Oslo 2013-08-09 19:38:07 +00:00
lockutils.py Add common code from Oslo for work with database 2013-08-29 17:06:29 +03:00
log.py Sync unified logging solution from Oslo 2013-08-09 19:38:07 +00:00
log_handler.py Sync log_handler module from Oslo 2014-01-28 13:11:45 -08:00
loopingcall.py Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00
network_utils.py Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00
policy.py sync oslo policy 2013-09-25 11:33:35 -07:00
service.py Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00
sslutils.py Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00
strutils.py Import strutils from oslo 2014-01-16 20:53:55 -08:00
threadgroup.py Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00
timeutils.py Sync unified logging solution from Oslo 2013-08-09 19:38:07 +00:00
uuidutils.py Sync notifier module from Oslo 2013-08-13 20:00:39 +00:00

README

openstack-common
----------------

A number of modules from openstack-common are imported into this project.

These modules are "incubating" in openstack-common and are kept in sync
with the help of openstack-common's update.py script. See:

  http://wiki.openstack.org/CommonLibrary#Incubation

The copy of the code should never be directly modified here. Please
always update openstack-common first and then run the script to copy
the changes across.