[zmq] Matchmaker redis available time
Use zmq_target_expire rather than zmq_target_update as it supposed to represent longer period of time so all services will definitely be updated. Change-Id: I0b9a1c8cbc7fea9b2c0c543a270dad318d135c1f
This commit is contained in:
parent
044e1bba82
commit
adda657f6c
@ -346,7 +346,7 @@ class MatchmakerRedisAvailabilityUpdater(zmq_updater.UpdaterBase):
|
|||||||
# reading from
|
# reading from
|
||||||
redis_instance._is_available = True
|
redis_instance._is_available = True
|
||||||
redis_instance._ready_from = time.time() + \
|
redis_instance._ready_from = time.time() + \
|
||||||
self.conf.oslo_messaging_zmq.zmq_target_update
|
self.conf.oslo_messaging_zmq.zmq_target_expire
|
||||||
else:
|
else:
|
||||||
fraction_of_available_instances += 1
|
fraction_of_available_instances += 1
|
||||||
fraction_of_available_instances /= \
|
fraction_of_available_instances /= \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user