SSL errors thrown with Postgres on multi workers
database connections were made on service initialisation and not on process start. this led to all processes of a service sharing the same connection. in this patch, we create unique dispatch_manager to handle a different engine for each process. we keep default to a single worker as schema needs to be updated to avoid possible race/deadlock conditions Closes-Bug: #1298073 Change-Id: I2ad05e2085c0c0f78653c6354d301d18b8dee121
This commit is contained in:
parent
69a9bfa3a7
commit
d21a2d2e36
@ -106,8 +106,8 @@ class DispatchedService(object):
|
||||
|
||||
DISPATCHER_NAMESPACE = 'ceilometer.dispatcher'
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(DispatchedService, self).__init__(*args, **kwargs)
|
||||
def start(self):
|
||||
super(DispatchedService, self).start()
|
||||
LOG.debug(_('loading dispatchers from %s'),
|
||||
self.DISPATCHER_NAMESPACE)
|
||||
self.dispatcher_manager = named.NamedExtensionManager(
|
||||
|
Loading…
x
Reference in New Issue
Block a user