]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Make sure report_interval is less than service_down_time
authorliyingjun <liyingjun1988@gmail.com>
Sat, 23 Nov 2013 14:06:19 +0000 (22:06 +0800)
committerliyingjun <liyingjun1988@gmail.com>
Sun, 24 Nov 2013 16:15:36 +0000 (00:15 +0800)
commit18b14203d8b30c9792d8c819f7993961b2ec8fc5
tree51fe5449595b7bb2f88c5f0de757535fdc350014
parent1e14e6a42c8eb9df5ee2da11da66f8ec9da8e84d
Make sure report_interval is less than service_down_time

If service_down_time is less than report_interval, services will
routinely be considered down, because they report in too rarely.
Add check for service_down_time vs report_interval, if report_interval
is larger than service_down_time, automatically change
service_down_time to be report_interval * 2.5

DocImpact

Closes bug #1255685

Change-Id: I9b291669ea201321b03a48d2a132810f3bace2dc
cinder/service.py
cinder/tests/test_service.py