Questions tagged [graceful-shutdown]

66 questions
0
votes
0 answers

How to shutdown gracefully with Reactor schedulers?

Unlike ExecutorService with awaitTermination(), dispose() in Scheduler in Reactor just invokes shutdownNow() when disposing; so how to shutdown Scheduler gracefully? Sometimes we want to terminate our executorService with all submitted tasks…
0
votes
0 answers

How to graceful shutdown tomcat

I want Tomcat graceful shut down. with spring boot 2.2.2 version with external tomcat 9.x (not embedded tomcat) I tried as below. kill -TERM $(tomcat PID) Apply spring actuator -> call localhost:8080/actuactor/shutdown application.yml…
henry-jo
  • 283
  • 1
  • 3
  • 14
0
votes
1 answer

stopping multiple containers gracefully, is the docker stop `--time` option for each container or for all containers?

I'm trying to stop all containers gracefully. So I want to give each container 60 seconds. I see that you can do: docker stop --time=60 $(docker container ls -q) is the --time=60 for each container or do all the containers only get 60 seconds? for…
Trevor Boyd Smith
  • 18,164
  • 32
  • 127
  • 177
0
votes
1 answer

Why kill -15 does not gracefully kill my Golang gRPC service?

I have used signal handler to handle SIGTERM, SIGINT signals. When grpc server is up and running I issue sudo kill -15 [PID] command and I don’t see my graceful shutdown log reports and also I get: [1] 41983 terminated go run mypkg/main.go Now…
Alireza
  • 6,497
  • 13
  • 59
  • 132
0
votes
2 answers

Channels and Graceful shutdown deadlock

Run the below program and run CTRL + C, the handle routine gets blocked as it is trying to send to a channel but the process routine has shutdown. What is a better concurrency design to solve this? Edited the program to describe the problem applying…
Alok Kumar Singh
  • 2,331
  • 3
  • 18
  • 37
1 2 3 4
5