-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hybrid) allow graceful exit of cp and dp nodes (#6306)
### Summary Starting control plane with: ``` KONG_ROLE=control_plane \ KONG_CLUSTER_CERT=cluster.crt \ KONG_CLUSTER_CERT_KEY=cluster.key \ ./bin/kong start -p cp ``` Then connecting data plane to it with: ``` KONG_ROLE=data_plane \ KONG_CLUSTER_CONTROL_PLANE=cp.test:8005 \ KONG_CLUSTER_CERT=cluster.crt \ KONG_CLUSTER_CERT_KEY=cluster.key \ KONG_LUA_SSL_TRUSTED_CERTIFICATE=cluster.crt \ KONG_DATABASE=off \ ./bin/kong start -p dp ``` And then gracefully stopping control plane with: ``` KONG_ROLE=control_plane \ KONG_CLUSTER_CERT=cluster.crt \ KONG_CLUSTER_CERT_KEY=cluster.key \ ./bin/kong quit -p cp ``` Will result (after 10 secs): ``` Timeout, Kong stopped forcefully ``` This PR is to fix that so that what happens is this instead (after around 1 sec): ``` Kong stopped (gracefully) ```
- Loading branch information
Showing
2 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters