Questions tagged [graceful-shutdown]

66 questions
0
votes
0 answers

NodeJs - How to handle broken stream reader piped from a stream writer?

I have an application that needs to read from a TCP socket and write to a database. It is known that, the rate of reading from TCP socket and writing to database will be different. To decouple the read and write, I am introducing a Duplex stream.…
0
votes
1 answer

Resources in Spring Boot Appliacation

I have developed a Spring Boot Application and I am looking for a comprehensive list of all the resources that needs to be cleaned or taken extra care of before killing the app. To name a few, the Database Connection pool needs to be cleaned. What…
0
votes
0 answers

Tomcat not shutting application gracefully

I have created a Java application and have an endpoint that waits for 25 seconds before returning a response. I have protected my application with the graceful shutdown mechanism as follows and works perfectly fine on my IntelliJ…
0
votes
0 answers

With reactor-netty-http:1.0.20, on setting HttpServer.idleTimeout(idleTimeoutInMs), no GOWAY packet is seen in tcpdump

With reactor-netty-http:1.0.20 (with spring-webflux), on setting HttpServer.idleTimeout(idleTimeoutInMs), no GOWAY packet is seen in tcpdump.with protocol H2C, HTTP11, but directly a FIN packet at TCP level. HttpServer.idleTimeout(idleTimeoutInMs)…
0
votes
1 answer

Ensuring graceful shutdown of a pod without ordinal pod ids

When a pod is in a restart loop is it eligible for being removed during scaling down before it restarts successfully? (without stateful sets) Also what happens if a pod container exits with a non-zero exit code when scaling that pod down? Will it…
Vlad
  • 3,001
  • 1
  • 22
  • 52
0
votes
0 answers

Java shutdown hook not fully finished when windows shutdown

I have a Java program that running on Windows 10 enviroment. When I shutdown Windows, I want my program to close gracefully using Java shutdown hook. The problem is, windows(or JVM) does not let my program to finish shutdown hook code block. Is…
yck
  • 33
  • 4
0
votes
0 answers

Spring custom response for graceful shutdown

We are implementing the microservice architecture. Now we faced the issue, that when we terminate the server by k8s for spring web it responds nothing for gRPC it responds 504. We would like to customize this behavior to return 503 for both cases. I…
energy2522
  • 149
  • 2
  • 10
0
votes
0 answers

Quarkus: extending graceful shutdown functionality

On application start I am initializing a map containing some client request data. public void onStart(@Observes StartupEvent ev) { // initializing a map } I would like to extend graceful shutdown functionality: my service should not shutdown…
0
votes
1 answer

Adding Graceful shutdown in Java application

I need to add graceful shutdown for application that will be deployed using kubernetes. I was able to find the documentation for graceful shutdown from spring boot version…
Manzoor
  • 111
  • 5
0
votes
1 answer

SIGTERM signal arrives first to kuma and stops all active application connections immediately

we have applications that work with Kafka (MSK), we noticed that once pod is starting to shutdown (during autoscaling or deployment) the app container loses all active connections and the SIGTERM signal causes Kuma to close all connections…
0
votes
0 answers

8080 gets closed immediately after sending SIGINT signal to tomcat

I am hosting an application in Tomcat. I have some cleanup logic that needs to run before application shuts down, which I have implemented using spring @Predestroy methods. After I send SIGINT to the process, predestroyer logic starts running, which…
AP_22
  • 53
  • 5
0
votes
1 answer

How should a NodeJs "graceful shutdown" handle setInterval?

I have a node backend taking HTTP requests using express. I am shutting down gracefully like this: process.on( 'SIGINT', function() { console.log("SIGINT signal received."); server.close(function(err) { if (err) { …
0
votes
0 answers

GRPC: Why does client receive "UNAVAILABLE: Connection closed after GOAWAY. HTTP/2" if server is processing request

I have a unit test that attempts to verify a graceful grpc server shutdown by sending some grpc calls to the server, shutting down the server, and verifying the requests completed before the server shutdown. In the test thread I spin up 5 threads…
depth13
  • 23
  • 1
  • 2
  • 5
0
votes
1 answer

I can't find a way to provide a "graceful shutdown" in Nest microservices, in particular using NATS

Hello everyone I can't find a way to provide a "graceful shutdown" in Nest microservices, in particular using NATS. Expected behavior: The application in kubernetes received a 'SIGTERM' signal. stops listening for new incoming requests. service of…
0
votes
1 answer

Graceful shutdown on CF for a stateful app

I have a game app, which is stateful, and it is deployed on Cloud Foundry. If I update the app, I need shutdown gracefully, i.e. the old version should not be stopped until all running games are finished. According to the CF docs, when issuing cf…
xiaoye
  • 58
  • 5