Difference between stop container and kill process
search cancel

Difference between stop container and kill process

book

Article ID: 189153

calendar_today

Updated On:

Products

CA API Gateway CA Microgateway

Issue/Introduction

Two microgateway containers are processing requests from an API Gateway.
When one of the microgateways was stopped by the stop command, the API Gateway received 404 response and couldn't detect the termination of the microgateway for several seconds.
On the other hand, the API Gateway detected the failure of another microgateway immediately when the microgateway container process was killed.

Are they expected behaviors?

Environment

Release : 1.0

Component : Microgateway

Resolution

Yes, they are expected container behaviors.

When the microgateway is stopped by the stop command for the container, it takes some time for terminating the process gracefully. The 404 HTTP response can be returned at the time. Contrarily, the microgateway is terminated immediately when the process is killed forcibly.