From c0218ada67784a7d5c3a488303bcbab2b3dce5b5 Mon Sep 17 00:00:00 2001 From: PatrikBuhr Date: Mon, 28 Nov 2022 09:40:36 +0100 Subject: A1-PMS, graceful shutdown Support for granceful shutdown via signal "SIGTERM" and via calling REST POST /actuator/shutdown Issue-ID: CCSDK-3830 Signed-off-by: PatrikBuhr Change-Id: Ibc71cd8a2c9f44ec844ab49c8f225ae128549776 --- a1-policy-management/config/application.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'a1-policy-management/config') diff --git a/a1-policy-management/config/application.yaml b/a1-policy-management/config/application.yaml index 2bd8d83d..8f37aaa5 100644 --- a/a1-policy-management/config/application.yaml +++ b/a1-policy-management/config/application.yaml @@ -31,7 +31,12 @@ management: web: exposure: # Enabling of springboot actuator features. See springboot documentation. - include: "loggers,logfile,health,info,metrics,threaddump,heapdump" + include: "loggers,logfile,health,info,metrics,threaddump,heapdump,shutdown" + endpoint: + shutdown: + enabled: true +lifecycle: + timeout-per-shutdown-phase: "20s" springdoc: show-actuator: true logging: @@ -53,6 +58,7 @@ server: # See springboot documentation. port : 8433 http-port: 8081 + shutdown: "graceful" ssl: key-store-type: JKS key-store-password: policy_agent -- cgit 1.2.3-korg