Questions tagged [graceful-shutdown]
66 questions
1
vote
1 answer
Graceful Shutdown inn Golang
I am trying to add Graceful shut down in one of my server.
I know the code is working.
I was hoping that after redeployment of the server, first the graceful shutdown work and then the server would restart .
But it is not happening.
Can you all tell…

akash agarwal
- 21
- 3
1
vote
0 answers
Graceful shutdown of asynchronous processes running in java on tomcat
When sending SIGTERM to tomcat on Amazon ECS, is it possible to kill the process (so called graceful shutdown) waiting for the asynchronous process to terminate?
By setting unloadDelay in tomcat configuration (server.xml), it is possible to suspend…

skmq0106
- 31
- 1
1
vote
0 answers
Is there any case in which the preStop hook doesn't get executed before the pod is terminated?
I am using Kubernetes (specifically, I am using Azure Kubernetes Service, if that matters in this case). As far as I understand:
I can use the preStop hook to execute some code before my pod is terminated.
The preStop hook will be interrupted if it…

Alonso Montero
- 138
- 1
- 8
1
vote
0 answers
Is there a way to manually kill a cloud run container through script, http request, etc.?
I have container, which i want to kill if the memory utilisation exceeds some value. I don't the want the container to be crashed, hence, any graceful way of doing this? If there is pythonic way that would be even great.

Rohan Gupta
- 11
- 1
1
vote
1 answer
Graceful shutdown not working in Spring Boot App
I want to activate graceful shutdown on an existing Spring Boot (v2.3.9) app.
Initially, to test the feature out, I created a sample app and added the property
server.shutdown: graceful in the application.properties. I could see the server shutting…

davyjones
- 185
- 15
1
vote
1 answer
process.exit() not exiting process from within express .close callback, only with nodemon
I am trying to create some setup and teardown logic for an expressjs server. Here's my entry code:
import fs from "fs";
import express from "express";
import { setRoutes } from "./routes";
let app = express();
const server = app.listen(8080,…

Seth Lutske
- 9,154
- 5
- 29
- 78
1
vote
1 answer
Graceful shutdown with spring and long-running threads
We have the problem that there are multiple async threads that process a bunch of data and need minutes or some of them even hours to end. The pod also processes some other short running request.
It might occur that the pod has to be moved, and a…

someone
- 11
- 2
1
vote
2 answers
Stop New Request to the Express server but can process older req and send response
I am working on a graceful shutdown. My app has APIs that take 10 -20 sec to respond
server.close(
() => {
log('HTTP server closed')
}
);
The above code works when there is a time gap between the API call, but it never stops my…

ankalal
- 162
- 1
- 11
1
vote
1 answer
How to stop an AWS Glue job gracefully?
I am using Glue v3.0 (Python 3.7).
The goal is to stop the Glue PySpark job gracefully so that it can terminate properly and clean its custom resources before ending.
I tried to catch the stop/abort/kill signal, using the classical signal.signal()…

dng
- 411
- 1
- 5
- 18
1
vote
0 answers
Is there way to gracefully stop the spring-boot app in Azure app service after stopping app service?
I have a Java spring-boot app deployed over Azure app service. Whenever I stop app service the spring-boot app does not stop in graceful manner. Can you please suggest a way to stop the spring-boot app in graceful way ?

War Machine
- 11
- 1
1
vote
0 answers
Differences in return values between man pages
Context: I want to gracefully close a TCP connection and I want to know if I need to worry about the ENOBUFS error, even if it is rare.
On the web, there are two shutdown() man pages - one is a kernel function and second is a C posix function. The…
user15832549
1
vote
1 answer
How to gracefully shutdown a thread in Ruby
I have been experimenting multi-threading concept in Ruby for the past a week.
For practising, I am designing a file downloader that makes parallel requests for a collection of URLs. Currently I need to safely shutdown threads when interrupt signal…

Hüseyin Tekinaslan
- 11
- 1
1
vote
1 answer
After SIGTERM event: the process keep receiving requests
I have created a minimal express POC having only one base route sending hello world after 30s, using setTimeout.
I sent an HTTP request and started to wait.
Meanwhile I tracked the PID of the node and killed it from the terminal.
The SIGTERM event…

Raz Buchnik
- 7,753
- 14
- 53
- 96
1
vote
0 answers
Graceful shutdown in Vetx Application
Scaling down the Kubernetes pod is not closing the Vertx application(developed in java) gracefully. It basically kills the container.
Overridden the beforeStoppingVertx and afterStoppingVertx methods of io.vertx.core.Launcher class and printed some…

Subhasis Dash
- 11
- 2
0
votes
2 answers
Getting BeanCreationNotAllowedException on spring graceful shutdown
My spring boot application uses spring boot graceful shutdown setting. In the app I'm having queue listeners in the separate threads. Everything gets shut down correctly except that every now and then I get error BeanCreationNotAllowedException…

user2455862
- 585
- 10
- 26