Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve node group tracking #388

Merged
merged 12 commits into from
Jun 11, 2024
Merged

fix: Improve node group tracking #388

merged 12 commits into from
Jun 11, 2024

Conversation

mnaser
Copy link
Member

@mnaser mnaser commented Jun 11, 2024

  • Add comments about which functions are sync/async
  • Remove extra db request
  • Stop waiting for creation of node group
  • Remove retries from delete node group
  • Switch database state earlier in node group scale
  • Refactor node group state tracking

Since the update_nodegroup_status function is called for each
node group during updates, it will _not_ find the node group if
it hasn't been created yet, and it will keep the status as-is.

If it does find it, it will either find it in ScalingUp most likely, which
will then make the node group status get 'reset' to
CREATE_IN_PROGRESS and no harm done.

This eliminates the waiting that happens in the node group creation
part of the code.
When deleting a node group, we can simply remove it and update the
status of it to DELETE_IN_PROGRESS, from there, the update node
group status code will check if it is progressing in the delete or not.

It will then clean up after it, so we can make that RPC call take less time.
@mnaser mnaser merged commit a0fbfdd into main Jun 11, 2024
11 of 12 checks passed
@mnaser mnaser deleted the ng-fixes branch June 11, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant