Stop Losing Requests! Learn Graceful Shutdown Techniques

Поділитися
Вставка
  • Опубліковано 18 вер 2024

КОМЕНТАРІ • 11

  • @IvanRizzante
    @IvanRizzante День тому +2

    Thank you for another great video! I totally agree on the fact that apps should handle OS signals. As a Java developer shutdown hooks and interrupted Exceptions were part of my routine. In Kubernetes though the magic vanishes when you cope with pod termination lifecycle . The Pod removal from Endpoint objects and SIGTERM sending occur in parallel, so you can have a race condition where the Pod is terminated before the Endpoint object is. That means the Pod would still get traffic even if the Pod is no more! That is why you may need preStop hooks to handle graceful shutdown properly

    • @DevOpsToolkit
      @DevOpsToolkit  День тому +1

      That's true. In this case, I was more focused on shutdown of only Pods due to upgrades (where the rest stay) since that is much more common scenario.

  • @marvinlnnx
    @marvinlnnx 2 дні тому +1

    Thank you !

  • @mihaigalos279
    @mihaigalos279 2 дні тому +2

    really enjoying those thriller scripts around the topic .. 😂

  • @ManiBalajiC
    @ManiBalajiC 2 дні тому +1

    what if the requests or user session related to the request is long, coupling in multiple sessions on multiple pods , how would this be handled.

    • @DevOpsToolkit
      @DevOpsToolkit  2 дні тому

      That's up to the logic you put into your code. What matters is that processes will be shutdown almost immediately without the code processing signals so you should always have them.

  • @Luther_Luffeigh
    @Luther_Luffeigh 2 дні тому +1

    Is it possible to override the SIGTERM type/value using the container environment variables?

    • @DevOpsToolkit
      @DevOpsToolkit  2 дні тому +1

      I don't think so. It's Lijux standard not dit ctly related but adopted by containers.

  • @robertkozak
    @robertkozak 2 дні тому +2

    Its confusing when you say Nix and not *nix. I assumed you meant "unix like" systems

    • @DevOpsToolkit
      @DevOpsToolkit  2 дні тому

      My bad. I wanted to say Linux or Unix and thought that nix would cover it.

    • @samiamerni6795
      @samiamerni6795 День тому +1

      Googled nix and i didn’t understand before seeing this comment 😂. Thanks for the video and thanks @robertkozak for your comment