-
Notifications
You must be signed in to change notification settings - Fork 71
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
remove nginx initialDelaySeconds #326
Conversation
@klml thanks for your research. It looks like the readiness probe is somewhat abused to make for the long rails startup time. Wouldn't it be better to add a startup probe for that?
We could choose a similar approach for all 3 affected pods: nginx, railsserver and websocket-server. I tend to also agree that we can remove any values which don't change the defaults from k8s. What do you think? |
… but high failureThreshold for nginx, railsserver and websocket-server
fullack
I used high failureThreshold: 10 (default is 3) with short periodSeconds: 4 (default is 10), so I get 40 secs. In this time even rails is running
removed it This stack works great for my openshift, nginx is running now in 5 secs (before 32) 😁 and rails still needs 30 secs, but better than 45 before, if I give it a full 4 GB of RAM even in 20 seconds. |
Looks good at first sight! Will try it. |
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.
👏
Thanks a lot @klml! |
What this PR does / why we need it
The readiness-probe nginx delays accepting traffic for 30 seconds with initialDelaySeconds, but nginx is ready after 1-2 seconds, this unnecessarily delays my deploy or restart.
The
initialDelaySeconds: 30
on the readiness-probe can make sense for rails, because rails needs about 30 seconds to accept traffic, but the readiness-probe checks on port 3000 anyway.Additional changes
Currently I would also suggest
initialDelaySeconds: 30
on the readiness-probe, it checks on port 3000 anyway.Checklist