[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:
Oleksii Zamiatin 2016-12-01 12:16:00 +02:00
parent 044e1bba82
commit adda657f6c

View File

@ -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 /= \