Gateway state sync mechanism - #4135
Draft
jvstme wants to merge 1 commit into
Draft
Conversation
Introduce a way to reconcile gateway replica state based on the current list of services. This allows newly started or newly recovered gateway replicas to learn about existing services. It also improves fault tolerance, since an unavailable gateway replica no longer blocks the service lifecycle - services and service replicas can still be registered on the remaining healthy gateway replicas. Behavioral details: - Run submission no longer waits for service registration before the run starts provisioning. This has both advantages (provisioning and service registration can happen in parallel) and disadvantages (compute may be provisioned for a service that will be terminated a moment later due to a registration error). This behavior may be revised in the future. - A service or a service replica is terminated with the `gateway_error` termination reason if it failed to be registered on all gateway replicas. - If registration succeeded at least on one gateway replica, registration on the remaining gateway replicas will be retried indefinitely. - Rolling deployments only proceed with terminating a service replica once the replacement replica is successfully registered on all gateway replicas. - Registration and unregistration tracking, including per-gateway-replica registration error messages, is available in events.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a way to reconcile gateway replica state based on the current list of services. This allows newly started or newly recovered gateway replicas to learn about existing services. It also improves fault tolerance, since an unavailable gateway replica no longer blocks the service lifecycle - services and service replicas can still be registered on the remaining healthy gateway replicas.
Behavioral details:
gateway_errortermination reason if it failed to be registered on all gateway replicas.#3959