keystone/keystone
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
..
assignment Fix remove role assignment adds role using LDAP assignment 2013-10-22 10:27:05 -05:00
auth Changed header from LLC to Foundation based on trademark policies 2013-09-05 15:03:32 -05:00
catalog Changed header from LLC to Foundation based on trademark policies 2013-09-05 15:03:32 -05:00
common list_revoked_tokens sql speedup for havana 2014-01-30 13:29:59 +01:00
contrib Merge "Fix list_projects_for_endpoint failed bug" into stable/havana 2014-03-28 05:03:31 +00:00
credential Changed header from LLC to Foundation based on trademark policies 2013-09-05 15:03:32 -05:00
identity Merge "Add user to project if project ID is changed" 2013-09-24 23:29:07 +00:00
locale Imported Translations from Transifex 2013-10-01 06:13:30 +00:00
middleware Changed header from LLC to Foundation based on trademark policies 2013-09-05 15:03:32 -05:00
openstack User a more accurate max_delay for reconnects 2014-03-28 14:14:02 +01:00
policy sync oslo policy 2013-09-25 11:33:35 -07:00
tests Merge "Fix list_projects_for_endpoint failed bug" into stable/havana 2014-03-28 05:03:31 +00:00
token Ensure tokens are added to both Trustor and Trustee indexes 2014-02-21 13:36:23 -08:00
trust Remove roles from OS-TRUST list responses 2014-01-28 10:22:18 +10:00
__init__.py Revert "Disable eventlet monkey-patching of DNS" 2013-05-10 10:24:48 -04:00
clean.py Changed header from LLC to Foundation based on trademark policies 2013-09-05 15:03:32 -05:00
cli.py Changed header from LLC to Foundation based on trademark policies 2013-09-05 15:03:32 -05:00
config.py Changed header from LLC to Foundation based on trademark policies 2013-09-05 15:03:32 -05:00
controllers.py Changed header from LLC to Foundation based on trademark policies 2013-09-05 15:03:32 -05:00
exception.py Try decoding string to UTF-8 on error message fail 2014-01-16 20:58:09 -08:00
notifications.py Implement decorator-based notifications for users 2013-08-29 15:06:19 -05:00
routers.py Changed header from LLC to Foundation based on trademark policies 2013-09-05 15:03:32 -05:00
service.py oauth using optional dependencies 2013-09-16 20:22:36 -04:00