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

Document the value of shutdown-after-unsuccessful #20

Open
ignasi35 opened this issue Feb 28, 2019 · 5 comments
Open

Document the value of shutdown-after-unsuccessful #20

ignasi35 opened this issue Feb 28, 2019 · 5 comments

Comments

@ignasi35
Copy link
Contributor

The value of shutdown-after-unsuccessful... is set to 60s but that value should be aligned with readiness and liveness settings in the YAML deployment files

https://github.com/lagom/shopping-cart-scala/blob/e30b41723922ed635a8c072ea138262147a69cea/shopping-cart-impl/src/main/resources/prod-application.conf#L27-L29

This settings should include extra documentation wrt it's value and how it interacts with other settings on the sample app.

@octonato octonato transferred this issue from lagom/shopping-cart-scala May 7, 2019
@octonato octonato changed the title Document the value of shutdown-after-unsuccessful [shopping-cart] Document the value of shutdown-after-unsuccessful May 7, 2019
mergify bot pushed a commit that referenced this issue May 7, 2019
mergify bot pushed a commit that referenced this issue May 7, 2019
octonato pushed a commit to octonato/lagom-samples that referenced this issue May 8, 2019
 travis webhook for contributors channel
octonato pushed a commit to octonato/lagom-samples that referenced this issue May 8, 2019
@octonato octonato changed the title [shopping-cart] Document the value of shutdown-after-unsuccessful Document the value of shutdown-after-unsuccessful May 8, 2019
@TimMoore
Copy link

Do these settings actually interact? The liveness check will pass even if the cluster hasn't formed, and the readiness check won't result in a shutdown. What did you have in mind here, @ignasi35?

@ignasi35
Copy link
Contributor Author

What did you have in mind here, @ignasi35?

interaction isthe wrong word. My point was that there are 2 settings that may result into a node/pod being removed before it has the chance to join the cluster:

  • shutdown-after-unsuccessful
  • liveness and readiness use failureThreshold

Operators only familiar with the YAML settings may face a situation were they use very generous retrials and threasholds but shutdown-after-unsuccessful may still be too strict. IIUC, only making both settings ample enough, slow clusters will be able to form.

@TimMoore
Copy link

Got it. But maybe the best place to document it is in the Lagom documentation rather than the example application?

@ignasi35
Copy link
Contributor Author

Got it. But maybe the best place to document it is in the Lagom documentation rather than the example application?

Sure! I generally like comments cross-referencing from settings to code (or settings to other settings) when there are interactions between things. But a deeper explanation or just a simple introduction to the problem and the related settings/knobs in the documentation will also be necessary/useful.

@ignasi35
Copy link
Contributor Author

raised lagom/lagom#2337

@settings settings bot removed the shopping-cart label Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants