Graceful shutdown for container based gateway pod and Appliance based gateway.
search cancel

Graceful shutdown for container based gateway pod and Appliance based gateway.

book

Article ID: 427448

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway CA Mobile API Gateway Layer7 API Security

Issue/Introduction

This article provides the recommended procedure for performing a graceful shutdown or reboot of CA API Gateway nodes (Appliance and Container) to prevent request failures during maintenance activities such as patching or configuration changes. 

Environment

  • CA API Gateway (Appliance and Container)
  • All Versions

Cause

standard system reboot commands or service restarts (ssg service restart) terminate the Gateway process immediately. Because the Gateway does not natively drain active connections before shutting down, any requests in flight or arriving during the shutdown window will fail.

Resolution

To ensure  graceful shutdown  during maintenance, use the following procedure:

  1. Identify the target node for maintenance.
  2. Disable or remove the target node from the Load Balancer rotation.
  3. Monitor active connections on the node and wait for existing traffic to "drain" (reach zero).
  4. Perform the required maintenance (e.g., OS patching, ssgconfig changes).
  5. Reboot the node or restart the ssg service.
  6. Verify the Gateway service is fully initialized and healthy.
  7. Add the node back into the Load Balancer rotation.

Note: Repeat these steps sequentially for each node in the cluster.

Targeted Fix: Engineering is evaluating a native graceful shutdown feature for future implementation.