Tag

Graceful Shutdown

1 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
Jun 3, 2025 · Backend Development

Graceful Shutdown of Spring Boot Applications: kill Commands, Signal Handlers, and Runtime Hooks

This article explains how to achieve graceful shutdown for Java applications by using Linux kill signals, JVM SignalHandler registration, Runtime.addShutdownHook, and Spring Boot's actuator shutdown endpoint, providing code examples and configuration details for safe resource cleanup.

Graceful ShutdownJavaKill Command
0 likes · 13 min read
Graceful Shutdown of Spring Boot Applications: kill Commands, Signal Handlers, and Runtime Hooks
Cloud Native Technology Community
Cloud Native Technology Community
Jun 3, 2025 · Cloud Native

Custom Stop Signals for Containers in Kubernetes v1.33 (Alpha Feature)

Starting with Kubernetes v1.33, the Alpha feature ContainerStopSignals introduces a Pod‑level lifecycle.stopSignal field that lets platform teams specify which Unix signal (e.g., SIGINT, SIGUSR1) should be sent to containers on termination, overcoming the previous reliance on image‑defined STOPSIGNAL and improving graceful shutdown control across Linux and Windows workloads.

Alpha FeatureContainerStopSignalsGraceful Shutdown
0 likes · 6 min read
Custom Stop Signals for Containers in Kubernetes v1.33 (Alpha Feature)
Java Captain
Java Captain
May 21, 2025 · Backend Development

Graceful Shutdown of Spring Boot Applications Using JVM Signals and Actuator

The article explains how to achieve graceful shutdown of Spring Boot services by handling Linux kill signals, registering JVM shutdown hooks, and exposing an Actuator REST endpoint that safely releases resources, stops beans, and terminates the JVM without data loss.

ActuatorGraceful ShutdownJVM
0 likes · 11 min read
Graceful Shutdown of Spring Boot Applications Using JVM Signals and Actuator
Raymond Ops
Raymond Ops
Mar 11, 2025 · Operations

Master Graceful Docker Container Shutdown: Signals, Exit Codes, and Go Example

This article explains how to achieve graceful shutdown of Docker containers by handling Linux signals, interpreting common Docker exit codes, and using a Go program that registers SIGTERM and SIGINT, while also covering docker stop, docker kill, and daemon signal handling.

Container ManagementDockerGraceful Shutdown
0 likes · 17 min read
Master Graceful Docker Container Shutdown: Signals, Exit Codes, and Go Example
Selected Java Interview Questions
Selected Java Interview Questions
Oct 11, 2024 · Backend Development

Graceful Thread Termination in Java: Strategies and Best Practices

The article explains why forcibly stopping a Java thread is unsafe, outlines common scenarios requiring thread exit, compares graceful and forced termination methods, and provides practical techniques such as flag checks and Thread.interrupt() with recommended interrupt‑handling strategies.

Graceful ShutdownInterruptJava
0 likes · 11 min read
Graceful Thread Termination in Java: Strategies and Best Practices
Go Programming World
Go Programming World
Aug 22, 2024 · Backend Development

Graceful Shutdown in Go: Using os/signal and net/http for Clean Process Termination

This article explains how to implement graceful shutdown for Go programs, covering signal handling with os/signal, closing HTTP servers without interrupting active connections, managing goroutine lifecycles, and providing complete example code for both the standard net/http package and the Gin framework.

Graceful ShutdownServerSignal Handling
0 likes · 44 min read
Graceful Shutdown in Go: Using os/signal and net/http for Clean Process Termination
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 18, 2024 · Backend Development

Graceful Shutdown in Go: Designing Robust Service Termination with the GS Library

This article describes a real‑world incident where rapid pod scaling caused order‑submission failures in a serverless e‑commerce platform, analyzes the root causes, and presents a Go‑based graceful‑shutdown solution—including ASyncClose, SyncClose, and ForceSyncClose modes—implemented in the open‑source GS library to help developers reliably terminate services.

Graceful ShutdownTerminateSignalbackend development
0 likes · 21 min read
Graceful Shutdown in Go: Designing Robust Service Termination with the GS Library
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 6, 2024 · Backend Development

Mastering Spring Boot ExitCodeGenerator: Custom Exit Codes & Graceful Shutdown

Learn how to implement Spring Boot's ExitCodeGenerator to define custom exit codes, handle various exceptions, register beans, intercept errors, and listen to exit events, enabling graceful application shutdown and improved reliability with practical code examples and configuration tips.

ExitCodeGeneratorGraceful ShutdownJava
0 likes · 8 min read
Mastering Spring Boot ExitCodeGenerator: Custom Exit Codes & Graceful Shutdown
Architect's Tech Stack
Architect's Tech Stack
May 18, 2024 · Operations

Graceful Shutdown in Kubernetes and Spring Boot Microservices: Best Practices and Optimizations

This article explains the concept of graceful shutdown, outlines essential steps, examines Kubernetes pod termination and Spring Boot integration with Nacos, and provides practical optimizations—including PreStop hooks, terminationGracePeriod settings, and actuator shutdown—to ensure reliable service termination without data loss.

Graceful ShutdownKubernetesNacos
0 likes · 11 min read
Graceful Shutdown in Kubernetes and Spring Boot Microservices: Best Practices and Optimizations
Top Architect
Top Architect
May 6, 2024 · Operations

Graceful Service Shutdown and Deployment Strategies for Java Applications

This article explains how to achieve graceful service startup and shutdown in Java projects, covering monolithic and microservice architectures, Spring and SpringBoot mechanisms, service registration with Eureka and Nacos, Kubernetes probes, thread‑pool and MQ graceful termination, and provides practical code examples for each scenario.

Graceful ShutdownJavaKubernetes
0 likes · 27 min read
Graceful Service Shutdown and Deployment Strategies for Java Applications
Architect's Guide
Architect's Guide
Mar 19, 2024 · Cloud Native

Graceful Shutdown in Kubernetes with Spring Boot and Nacos: Concepts, Cases, and Optimizations

This article explains the concept of graceful shutdown, demonstrates it with Kubernetes‑SpringBoot‑Nacos case studies, analyzes common issues, and provides optimization strategies such as adjusting terminationGracePeriodSeconds, using PreStop hooks, handling MQ and scheduled tasks, and leveraging actuator shutdown for reliable service termination.

Graceful ShutdownKubernetesNacos
0 likes · 10 min read
Graceful Shutdown in Kubernetes with Spring Boot and Nacos: Concepts, Cases, and Optimizations
Architect
Architect
Mar 7, 2024 · Cloud Native

Graceful Shutdown in Kubernetes: Concepts, Case Studies, and Optimizations

This article explains the concept of graceful shutdown, outlines the standard steps, and presents detailed Kubernetes, Spring Boot, and Nacos case studies, followed by optimization techniques, code examples, and practical recommendations for handling MQ, scheduled tasks, and traffic control during service termination.

Graceful ShutdownKubernetesNacos
0 likes · 12 min read
Graceful Shutdown in Kubernetes: Concepts, Case Studies, and Optimizations
Architecture Digest
Architecture Digest
Mar 3, 2024 · Operations

Graceful Shutdown in Microservices: Concepts, Kubernetes Example, and Optimizations

This article explains the concept of graceful shutdown, outlines general steps, presents a detailed Kubernetes‑SpringBoot‑Nacos case study, discusses common pitfalls, and provides practical optimization techniques for reliable service termination in cloud‑native environments.

Graceful ShutdownKubernetesNacos
0 likes · 10 min read
Graceful Shutdown in Microservices: Concepts, Kubernetes Example, and Optimizations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 31, 2023 · Backend Development

Graceful Shutdown Library for Go (G.S): Design, Usage, and Code Walkthrough

This article introduces the Go‑based G.S library for graceful application shutdown, analyzes common container‑related pitfalls, explains its lightweight architecture with TerminateSignal and WaitingUnit modules, provides installation steps, a complete usage example, and detailed code explanations to help developers implement reliable signal handling.

Graceful ShutdownSignal Handlingbackend
0 likes · 12 min read
Graceful Shutdown Library for Go (G.S): Design, Usage, and Code Walkthrough
Selected Java Interview Questions
Selected Java Interview Questions
Dec 14, 2023 · Operations

Graceful Shutdown for Kubernetes‑Based Spring Boot Microservices with Nacos

This article explains the concept of graceful shutdown, outlines the essential steps, and demonstrates a practical Kubernetes‑Spring Boot‑Nacos case study, including PreStopHook handling, terminationGracePeriodSeconds tuning, and further optimizations for message queues, scheduled tasks, and traffic control.

Graceful ShutdownKubernetesNacos
0 likes · 13 min read
Graceful Shutdown for Kubernetes‑Based Spring Boot Microservices with Nacos
Selected Java Interview Questions
Selected Java Interview Questions
Dec 3, 2023 · Backend Development

Understanding JVM Exit Mechanisms and Graceful Shutdown in Spring Boot Applications

This article explains the three JVM termination modes, how to use shutdown hooks and Spring's lifecycle events to implement graceful shutdown of HTTP, RPC and MQ entry points, manage thread‑pool termination, and avoid resource‑leak or inconsistent state during service redeployment.

Graceful ShutdownJVMSpring Boot
0 likes · 18 min read
Understanding JVM Exit Mechanisms and Graceful Shutdown in Spring Boot Applications
Selected Java Interview Questions
Selected Java Interview Questions
Nov 4, 2023 · Backend Development

Graceful Thread Termination in Java: Principles and Practices

The article explains why forcibly stopping a Java thread is unsafe, outlines common scenarios that require thread exit, compares graceful and forced termination, and presents practical techniques such as flag checks and Thread.interrupt() to achieve safe and predictable thread shutdown.

Graceful ShutdownInterruptJava
0 likes · 12 min read
Graceful Thread Termination in Java: Principles and Practices
Architecture Digest
Architecture Digest
Oct 13, 2023 · Backend Development

Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 and Using Actuator, Custom Configurations, and PreDestroy

This article explains why using kill -9 to terminate Linux processes can cause data loss, demonstrates how to gracefully stop Spring Boot services with kill -15, the Actuator shutdown endpoint, and custom shutdown configurations, and shows how to add pre‑destroy hooks for backup tasks.

ActuatorGraceful ShutdownJava
0 likes · 19 min read
Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 and Using Actuator, Custom Configurations, and PreDestroy
Cognitive Technology Team
Cognitive Technology Team
Oct 11, 2023 · Fundamentals

Gracefully Stopping a Java Thread and the Difference Between isInterrupted() and interrupted()

The deprecated Thread.stop method should never be used; instead, Java threads are stopped gracefully by using a volatile stop flag or interrupting blocked threads, handling InterruptedException, and distinguishing between Thread.isInterrupted() (read‑only) and Thread.interrupted() (clears the flag).

Graceful ShutdownInterruptJava
0 likes · 4 min read
Gracefully Stopping a Java Thread and the Difference Between isInterrupted() and interrupted()
Architecture Digest
Architecture Digest
Jul 19, 2023 · Backend Development

Graceful Shutdown of Spring Boot Applications Using Linux Signals and Actuator

The article explains how to achieve graceful shutdown of Spring Boot services by handling Linux signals, registering JVM shutdown hooks, using Spring's ContextClosedEvent and Actuator endpoint, and provides practical code examples for safely terminating thread pools, sockets, and other resources.

ActuatorGraceful ShutdownJVM
0 likes · 11 min read
Graceful Shutdown of Spring Boot Applications Using Linux Signals and Actuator