Questions tagged [graceful-shutdown]
66 questions
0
votes
0 answers
Receiving connection refused from post request during kubernetes preStop hook
I am using preStop hook and execute sleep command to allow my app to shutdown gracefully. There is second thread in the app which sends post request by some interval to another application. When preStop hook starts, I receive connection refused from…

user1474111
- 1,356
- 3
- 23
- 47
0
votes
1 answer
Kubernetes preStop hook does not sleep
I am trying to add preStop hook to my k8s container but for some reason sleep seems like it does not work. I tried to add echo and in that case I can see that it work. But when I replace echo with sleep it seems like it does not work and sleep…

user1474111
- 1,356
- 3
- 23
- 47
0
votes
0 answers
PreDestroy method is not compeleted before container is killed
I am trying to achieve graceful shutdown for my spring app which runs on kubernetes. I have defined preDestroy method to perform some cleanup before shutdown but I see that container is removed before preDestroy method completes his execution.
What…

user1474111
- 1,356
- 3
- 23
- 47
0
votes
1 answer
To save the unsaved data in Azure Windows VM before a scheduled shutdown
How can we make sure to save the unsaved data (data that isn't saved by user yet) before the system goes through a scheduled shutdown
I have tried to enable the "hibernation" feature on the Windows VM. Hibernation allows the system state, including…
0
votes
0 answers
Node Js/React Js Application Gracefully shutting down
for the first time we deployed the react Build file into the server. in our local server there is no issue.But after deploying into Production server Application is getting shutting down.Can any one please help me, what is the isue and how to…
0
votes
1 answer
Does adding graceful shutdown to a Spring Boot service stop Kafka and SQS listeners from picking up new requests?
I recently added graceful shutdown to a handful of Spring Boot services (server.shutdown=graceful). These services all have Kafka and SQS listeners in them. Does this property also cause the listeners to stop taking new messages/events, and continue…

smaxington
- 3
- 2
0
votes
1 answer
Graceful shutdown of BullMQ workers prevents Node JS from exiting
I follow the recommendation here and also this thread and I use the following code in order to gracefully shutdown BullMQ workers in my development environment on Ubuntu:
const handleTermination = async () => {
log.info(`Gracefully shutting…

user9839468
- 31
- 1
- 5
0
votes
0 answers
How to ignore SIGTERM signal and keep threads alive
I have a Java application running inside Docker containers in Kubernetes. I would like to introduce a graceful shutdown of the application when Kubernetes sends a SIGTERM signal to the container and keep all the threads alive while the shutdown hook…

Agilulfe
- 11
- 2
0
votes
1 answer
Windows shut down through python
I'm using visual basic programs to create some files for my work, however, I'm learning python and want to use it to shut down my windows system after the visual basic program is completed execution
0
votes
0 answers
Suspend docker-compose container shutdown until result of a condition is true?
I have a docker-compose.yml file that defines a number of services. One is a redis instance, and another is a queue-worker.
The queue-worker fetches jobs from redis and performs the necessary work.
Currently, I have the queue-worker's…

Scratcha
- 1,359
- 1
- 14
- 22
0
votes
1 answer
Programmatically, how can I tell on LINUX that the system is rebooting?
There is a lot about the "procedure" LINUX undertakes when a reboot or 'imminent shutdown' is underway. I wish to understand, programmatically, and react to, that a REBOOT IS IMMINIENT.
My application gets sent TERM and HUP signals which is all good…

Mark Arnold
- 253
- 3
- 9
0
votes
1 answer
How many time does an application have to perform cleanup when a SIGABORT is received?
I've been testing a critical application against signals it might receive:
SIGTEMRM aka kill -15 can be ignored, so in this case I can take any time cleaning up everything before a graceful shutdown;
SIGKILL aka kill -9 cannot be caught by the…

Maf
- 696
- 1
- 8
- 23
0
votes
0 answers
How to get notified in SpringBoot about an initiated shutdown
since its 2.3 release, SpringBoot has the feature called "graceful shutdown". When a certain signal is received by the JVM, SpringBoot executes some code (because it registers a callback within the JVM) so that the application is shut down…

fml2
- 190
- 11
0
votes
0 answers
nodejs service is getting exit even after handling it using SIGTERM
I am trying for graceful shutdown of nodejs service(which is huge) and hence kept a listener as
`
process.on('SIGTERM',async ()=>{
console.log('EXITING');
})
`
As we can see I have not exit the nodejs instance but it exits with no errors when I…
0
votes
0 answers
Configure for hadoop yarn -stop to gracefully shutdown app
I need to use yarn application -stop to gracefully stop my Spark application. According to this thread we need to set
yarn.application.admin.client.class.SPARK
first. But (1) how and where to set it?
Also in the thread, some framework…

landau
- 41
- 1
- 6