-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
internal/worker/worker.go
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to cause NPE in tests: https://cirrus-ci.com/task/5965693838950400?logs=test#L3291-L3303
There was a problem hiding this comment.
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.
Moved standby configuration in proto and added configuration to gRPC polling methods.