86 questions
Best practices
0
votes
2
replies
67
views
Python AsyncIO Graceful shutdown
No matter how much I search (or maybe I'm searching incorrectly), I can't find a decent way to terminate my tasks in Python AsyncIO.
I know what:
- I need to bind to signals (SIGINT, SIGTERM) using ...
2
votes
1
answer
80
views
Graceful shutdown fails in Node.js when HTTP request is used for Consul deregistration
I'm trying to implement a graceful shutdown in a Node.js app. It should deregister from Consul and close several resources (Redis, MySQL, etc.) when it receives a termination signal (SIGINT / SIGTERM)....
0
votes
0
answers
55
views
Why are Vert.x worker pools shut down by shutdownNow instead of shutdown?
I'm debugging graceful shutdown issues in my Quarkus 3.8.6 application and I see that io.vertx.core.impl.WorkerPool uses java.util.concurrent.ExecutorService#shutdownNow method call to stop the worker ...
0
votes
0
answers
45
views
Springboot graceful shudown if there is still something inside the queue
I have a very simple springboot application as follow :
import org.springframework.web.bind.annotation.*;
import java.util.LinkedList;
import java.util.Queue;
@RestController
public class ...
1
vote
0
answers
92
views
Graceful shutdown in Go application without console on windows
I have an application written in Go for Windows, and I'm trying to implement graceful shutdown while taking into account the specifics of my application.
The application is launched by another process ...
-1
votes
1
answer
412
views
How to properly handle shutdown in Rust
Below is a code snippet and I want to know how to gracefully handle the shutdown.
use std::{
io::{stdin, stdout, Write},
process::exit,
};
struct Admin {
_i: u128,
}
impl Drop for Admin {...
0
votes
1
answer
155
views
How to implement graceful shutdown and break loop when SIGTERM signal is sent?
I want to implement graceful shutdown for the following java service. when a SIGTERM signal is sent, I want the program to keep processing the current task, but exit the loop. How can I achieve this?
@...
0
votes
1
answer
353
views
Graceful shutdown of dotnet container instance
I'm running a .Net 8 console application in Azure as a container image on linux using .NET SDK (no dockerfile). The app consists in several hosted services.
When my app is stopping I need to handle ...
2
votes
1
answer
771
views
How to shutdown Go server that running in Docker container gracefully?
Now, a web server written in Go is running in docker container.
When stopping docker container executing docker stop command, I want to shutdown the web server gracefully.
In this case, is it possible ...
0
votes
1
answer
660
views
FATAL and Panic errors in PostgreSQL
Regarding PostgreSQL Documentation: https://www.postgresql.org/docs/current/protocol-error-fields.html, the Severity field contains one of this values: ERROR, FATAL, or PANIC.
Also here is a list of ...
0
votes
2
answers
328
views
Spring Integration Graceful Shutdown with TaskExecutor
I have a Spring Boot web application which shuts down gracefully after a timeout of 120secs.
Recently we have added a Spring Integration Flow to the same application to be able to process some files ...
2
votes
1
answer
3k
views
Rust & Tokio: How to handle more signals than just sigint i.e. sigquit?
Ok,
I have a working microservice that provides gRPC via tokio / tonic and exposes metrics via warp. Both http and gRPC services shutdown correctly when receiving a sigint signal i.e. kill via ...
3
votes
1
answer
302
views
Graceful decommissioning on Spot/Standard pre-emptible nodes in DataProc cluster in GCP
We are trying to setup a DataProc cluster in GCP.
While we do, we try to have secondary nodes which are either Spot VMs or Standard pre-emptible VMs (to note: spot VMs are also pre-emptible).
When we ...
0
votes
1
answer
5k
views
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 ...
0
votes
1
answer
138
views
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 ...
0
votes
1
answer
1k
views
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 ...
1
vote
1
answer
673
views
Reactor Kafka Graceful Shutdown and Pause Consumer
Spring Application uses Reactor Kafka to consume messages.
Question 1: Is there standard convention to pause message consumption and finish processing inflight messages during application shutdown?
...
0
votes
1
answer
514
views
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
319
views
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.
...
0
votes
1
answer
74
views
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;
...
1
vote
0
answers
79
views
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 ...
0
votes
0
answers
225
views
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?...
2
votes
1
answer
837
views
Is it safe to shutdown go application running inside a container this way on `docker kill --signal=SIGX`?
Context
There is an app running inside docker container. When docker stop %container_id% is sent the container receives SIGTERM. This signal is handled inside golang application via executing cleanup ...
0
votes
0
answers
423
views
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 ...
0
votes
0
answers
256
views
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 ...