diff --git a/examples/policies/lb_policy.yaml b/examples/policies/lb_policy.yaml index 1bbb5d822..06feb0ac9 100644 --- a/examples/policies/lb_policy.yaml +++ b/examples/policies/lb_policy.yaml @@ -45,12 +45,12 @@ properties: # can be PING, TCP, HTTP, or HTTPS. type: 'PING' - # The amount of time, in seconds, between sending probes to members. - delay: 10 + # The amount of time, in milliseconds, between sending probes to members. + delay: 10000 - # The maximum time in seconds that a monitor waits to connect before it - # times out. This value must be less than the delay value. - timeout: 5 + # The maximum time in milliseconds that a monitor waits to connect before + # it times out. This value must be less than the delay value. + timeout: 5000 # The number of allowed connection failures before changing the status # of the member to INACTIVE. A valid value is from 1 to 10. diff --git a/senlin/policies/lb_policy.py b/senlin/policies/lb_policy.py index 89ecca56d..f0229b226 100644 --- a/senlin/policies/lb_policy.py +++ b/senlin/policies/lb_policy.py @@ -222,13 +222,13 @@ class LoadBalancingPolicy(base.Policy): default=PING, ), HM_DELAY: schema.Integer( - _('The amount of time in seconds between sending ' + _('The amount of time in milliseconds between sending ' 'probes to members.'), default=10, ), HM_TIMEOUT: schema.Integer( - _('The maximum time in seconds that a monitor waits to ' - 'connect before it times out.'), + _('The maximum time in milliseconds that a monitor waits ' + 'to connect before it times out.'), default=5, ), HM_MAX_RETRIES: schema.Integer(