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

Use the Pod watcher to detect the set of remote component replicas. #90

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

spetrovic77
Copy link
Contributor

@spetrovic77 spetrovic77 commented Aug 3, 2023

This change mimics the related change in weaver-kube where the babysitter watches the activated component's pods and returns the replicas therein. The GKE deployer was previously consulting the assigner for an updated set of replicas, which is a complicated flow fraught with possibilities of errors.

Moreover, an upcoming weaver change will see weavelets performing health checks themselves, obsoleting the current GKE mechanism which has the assigner performing health checks on the babysitters.

TODO: Change the assigner to only manage routing information for routed components.

Other changes:

  • Fix labeling for all resources to produce values that are guaranteed DNS labels (e.g., replica sets often aren't).
  • Minor code fixes.

Copy link
Member

@mwhittaker mwhittaker left a comment

Choose a reason for hiding this comment

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

Awesome!

internal/babysitter/babysitter.go Outdated Show resolved Hide resolved
internal/babysitter/babysitter.go Show resolved Hide resolved
internal/gke/babysitter.go Show resolved Hide resolved
internal/gke/deploy.go Show resolved Hide resolved
internal/tool/store.go Outdated Show resolved Hide resolved
@spetrovic77 spetrovic77 force-pushed the routing branch 3 times, most recently from 75ee0d3 to b1e435d Compare August 4, 2023 19:50
This change mimics the related change in weaver-kube where the babysitter
watches the activated component's pods and returns the replicas therein.
The GKE deployer was previously consulting the assigner for an updated
set of replicas, which is a complicated flow fraught with possibilities
of errors.

Moreover, an upcoming weaver change will see weavelets performing health
checks themselves, obsoleting the current GKE mechanism which has the
assigner performing health checks on the babysitters.

TODO: Change the assigner to only manage routing information for routed
components.
@spetrovic77 spetrovic77 merged commit d5c31d4 into main Aug 4, 2023
8 checks passed
@spetrovic77 spetrovic77 deleted the routing branch August 4, 2023 20:42
spetrovic77 added a commit that referenced this pull request Aug 4, 2023
After #90, every babysitter retrieves routing information for
non-routed components. This means that the assigner is only
consulted to retrieve routing information for routed components.
spetrovic77 added a commit that referenced this pull request Aug 4, 2023
After #90, every babysitter retrieves routing information for
non-routed components. This means that the assigner is only
consulted to retrieve routing information for routed components.
spetrovic77 added a commit that referenced this pull request Aug 4, 2023
After #90, every babysitter retrieves routing information for
non-routed components. This means that the assigner is only
consulted to retrieve routing information for routed components.
spetrovic77 added a commit that referenced this pull request Aug 7, 2023
After #90, every babysitter retrieves routing information for
non-routed components. This means that the assigner is only
consulted to retrieve routing information for routed components.
spetrovic77 added a commit that referenced this pull request Aug 7, 2023
After #90, every babysitter retrieves routing information for
non-routed components. This means that the assigner is only
consulted to retrieve routing information for routed components.
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