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

Dynamically configurable standby instance #824

Merged
merged 9 commits into from
Jan 14, 2025
Merged

Conversation

fkorotkov
Copy link
Contributor

Moved standby configuration in proto and added configuration to gRPC polling methods.

@fkorotkov fkorotkov requested a review from edigaryev January 13, 2025 14:03
@@ -303,8 +304,9 @@ func (worker *Worker) tryCreateStandby(ctx context.Context) {

worker.logger.Debugf("warming-up the standby instance")

warmUpTimeout := time.Duration(worker.standbyParameters.Warmup.TimeoutSeconds) * time.Second
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Another point is that since the worker.standbyParameters and its inner messages are now nil-able, and the standby parameters can be set from the backend, it would be nice if we can check for nil here in a more defensive manner.

@fkorotkov fkorotkov merged commit 2d15502 into master Jan 14, 2025
11 checks passed
@fkorotkov fkorotkov deleted the fedor-dynamic-standby branch January 14, 2025 20:33
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