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: use labels instead of hardcoded indexes #140

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

nathanielc
Copy link
Collaborator

This PR makes two changes.

First we use labels to track which stateful sets and services should belong to a ceramic configuration. This changes from the previous logic that hardcoded indexes and deleted resources blindly based on those indexes. This reduces the noise in the operator logs as it only does the work that is needed vs always assuming there are resources to delete.

Second this changes both network and simulations to not watch nearly as many resources. This greatly reduces the number of reconcile loops we run and thus the amount of work the operator needs to do. And we still get low latency when a network or simulation is changed.

These changes combined should improve the stability of the keramik operator.

This PR makes two changes.

First we use labels to track which stateful sets and services should
belong to a ceramic configuration. This changes from the previous logic
that hardcoded indexes and deleted resources blindly based on those
indexes. This reduces the noise in the operator logs as it only does the
work that is needed vs always assuming there are resources to delete.

Second this changes both network and simulations to not watch nearly as
many resources. This greatly reduces the number of reconcile loops we
run and thus the amount of work the operator needs to do. And we still get
low latency when a network or simulation is changed.

These changes combined should improve the stability of the keramik
operator.
@nathanielc nathanielc force-pushed the fix/use-ceramic-role-labels branch from 0f3298c to 28a7b6e Compare February 6, 2024 19:49
Copy link
Collaborator

@smrz2001 smrz2001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@nathanielc nathanielc added this pull request to the merge queue Feb 6, 2024
Merged via the queue into main with commit e41e152 Feb 6, 2024
5 checks passed
@nathanielc nathanielc deleted the fix/use-ceramic-role-labels branch February 6, 2024 21:49
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.

2 participants