-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Develop] Backing instance max count updates - `_is_node_in_replaceme…
…nt_valid()`, `is_backing_instance_valid()`, and unit tests (#622) * Add logic to `is_backing_instance_valid()` to check the IP to make sure the instance matches what is being tracked (#618) The missing instance map did not track what the IP address was that was associated with the slurm node. Because of this if a new instance is launched before an instance becomes healthy, the increment is not reset for the instance count map. This change uses a class object to track the data and links the node name to the ip. Also use the `is_backing_instance_valid()` function in `is_state_healthy()` instead of the plain `node.instance` object check to allow for the delay in EC2 consistency. * Refactor logic in `_is_node_in_replacement_valid()` to account for `node.instance` being `None` (#620) * Add unit tests to cover max_count > 0 in _is_node_in_replacement_valid
- Loading branch information
1 parent
293efb7
commit 7bb99a9
Showing
4 changed files
with
95 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters