logoalt Hacker News

mosura • yesterday at 7:06 PM • 3 replies • view on HN

It is incredible how effective it is if you get to do it.

The resistance though can be awe inspiring. Just ask your normal k8s fried mind about “graceful shutdowns”. Way too many people live in a world where they are so obsessed with graceful shutdowns they have no idea what happens when recovering from ungraceful shutdowns, so they leave this unhandled, when in reality that is the standard case and the graceful variant is merely a special case that can perform some optimization.


Replies

bena • yesterday at 7:52 PM

Because a lot of people get caught in the mindset of "prevent problems from happening" rather than "what to do when problems happen".

The first can work for a while, but the minute it doesn't, you're just kind of boned because you won't know what to do.

Whereas with the second, as long as one of the problems you're prepared for is "complete systems failure", the exact nature of the problem isn't an issue.

➕ show 3 replies
greengreengrass • yesterday at 7:36 PM

See also:

Exec: We have this elaborate deployment process that our team must follow every time. To deploy our <inconsequential product>, it has all these fancy gates, CI checks, approval workflows (in several companies, up to and including exec sign-off). Every change in the build is tracked back to Jira tickets, and it can’t ship if they’ve not all been signed off by QA. A “release” to our cloud platform takes hours to do well; it’s a very specialist task, and our whole scrum process is designed to ensure this build goes every 2 weeks without fail. Staff stay late to make sure it happens.

Engineer: What about hotfixes when we find a bug in prod, and customers are down or were embarrassed or whatever?

Exec: oh, we have a special _hotfix deployment_ process for that. You don’t use any of the tooling. You cut a branch, build locally and push direct to prod; whatever it takes.

Eng: so why isn’t that the standard process?

The number of times I’ve had to explain to dumbfounded management that the existence of this hotfix process with no safeties means it should be the standard deploy process, because it either works fine and doesn’t need all the comfort theatre that’s been engineered around a ship process, or it doesn’t work fine and we need to run it repeatedly to fix its problems before it really causes an issue.

Sometimes I’m successful.

➕ show 6 replies
conceptme • yesterday at 7:09 PM

Seems hyperbole every deploy on k8s will do a graceful shutdown surely that will happen more often in your environment then hard crashes.

➕ show 1 reply