From adda657f6c934113f40abf93b902844d3de11802 Mon Sep 17 00:00:00 2001 From: Oleksii Zamiatin Date: Thu, 1 Dec 2016 12:16:00 +0200 Subject: [PATCH] [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 --- .../_drivers/zmq_driver/matchmaker/zmq_matchmaker_redis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_messaging/_drivers/zmq_driver/matchmaker/zmq_matchmaker_redis.py b/oslo_messaging/_drivers/zmq_driver/matchmaker/zmq_matchmaker_redis.py index 1c212e761..a6ba084a6 100644 --- a/oslo_messaging/_drivers/zmq_driver/matchmaker/zmq_matchmaker_redis.py +++ b/oslo_messaging/_drivers/zmq_driver/matchmaker/zmq_matchmaker_redis.py @@ -346,7 +346,7 @@ class MatchmakerRedisAvailabilityUpdater(zmq_updater.UpdaterBase): # reading from redis_instance._is_available = True redis_instance._ready_from = time.time() + \ - self.conf.oslo_messaging_zmq.zmq_target_update + self.conf.oslo_messaging_zmq.zmq_target_expire else: fraction_of_available_instances += 1 fraction_of_available_instances /= \