diff options
author | Steve Baker <sbaker@redhat.com> | 2023-02-03 10:36:50 +1300 |
---|---|---|
committer | Steve Baker <sbaker@redhat.com> | 2023-02-27 11:09:25 +1300 |
commit | e54ee2ba4cb818e25c75fcdc69f7ff1dc4956c73 (patch) | |
tree | 9213ee99ad5e0fbf5985de4e2076fa7c0298dc83 /ironic/tests/unit/common/json_samples | |
parent | eb03345006a04677d674aedc84c1af6b5fd29ed6 (diff) | |
download | ironic-e54ee2ba4cb818e25c75fcdc69f7ff1dc4956c73.tar.gz |
Respond to rpc requests on stop until hash ring reset
Currently when a conductor is stopped, the rpc service stops
responding to requests as soon as self.manager.del_host returns. This
means that until the hash ring is reset on the whole cluster, requests
can be sent to a service which is stopped.
This change waits for the remaining seconds to delay stopping until
CONF.hash_ring_reset_interval has elapsed. This will improve the
reliability of the cluster when scaling down or rolling out updates.
This delay only occurs when there is more than one online conductor,
to allow fast restarts on single-node ironic installs (bifrost,
metal3).
Change-Id: I643eb34f9605532c5c12dd2a42f4ea67bf3e0b40
Diffstat (limited to 'ironic/tests/unit/common/json_samples')
0 files changed, 0 insertions, 0 deletions