From e4136d432ccc851e3a83e8d0239427672eedb3e9 Mon Sep 17 00:00:00 2001 From: Duan Wei <75626015+Mkabaka@users.noreply.github.com> Date: Wed, 16 Jun 2021 15:26:19 +0800 Subject: [PATCH] optimize management.server.restlight.biz-threads.xxx configuration (#69) --- .../spring-configuration-metadata.json | 52 +++++++++++++++++-- 1 file changed, 48 insertions(+), 4 deletions(-) diff --git a/restlight-starter-actuator/src/main/resources/META-INF/spring-configuration-metadata.json b/restlight-starter-actuator/src/main/resources/META-INF/spring-configuration-metadata.json index 76e25e15..a5ef2160 100644 --- a/restlight-starter-actuator/src/main/resources/META-INF/spring-configuration-metadata.json +++ b/restlight-starter-actuator/src/main/resources/META-INF/spring-configuration-metadata.json @@ -91,33 +91,77 @@ "defaultValue": "1", "description": "Thread num of netty worker event loop group" }, + { + "name": "management.server.restlight.biz-threads.core", + "type": "java.lang.Integer", + "description": "Thread num of cor biz thread pool", + "sourceType": "esa.restlight.server.config.BizThreadsOptions", + "defaultValue": "2" + }, { "sourceType": "esa.restlight.server.config.ServerOptions", "name": "management.server.restlight.core-biz-threads", "type": "java.lang.Integer", "defaultValue": "2", - "description": "Thread num of cor biz thread pool" + "description": "Thread num of cor biz thread pool", + "deprecated": true, + "deprecation": { + "reason": "deprecated" + } + }, + { + "name": "management.server.restlight.biz-threads.max", + "type": "java.lang.Integer", + "description": "Thread num of max biz thread pool", + "sourceType": "esa.restlight.server.config.BizThreadsOptions", + "defaultValue": "4" }, { "sourceType": "esa.restlight.server.config.ServerOptions", "name": "management.server.restlight.max-biz-threads", "type": "java.lang.Integer", "defaultValue": "4", - "description": "Thread num of max biz thread pool" + "description": "Thread num of max biz thread pool", + "deprecated": true, + "deprecation": { + "reason": "deprecated" + } + }, + { + "name": "management.server.restlight.biz-threads.blocking-queue-length", + "type": "java.lang.Integer", + "description": "Length of blocking queue", + "sourceType": "esa.restlight.server.config.BizThreadsOptions", + "defaultValue": "128" }, { "sourceType": "esa.restlight.server.config.ServerOptions", "name": "management.server.restlight.blocking-queue-length", "type": "java.lang.Integer", "defaultValue": "128", - "description": "Length of blocking queue" + "description": "Length of blocking queue", + "deprecated": true, + "deprecation": { + "reason": "deprecated" + } + }, + { + "name": "management.server.restlight.biz-threads.keep-alive-time-seconds", + "type": "java.lang.Long", + "description": "Keepalive time of max biz thread pool", + "sourceType": "esa.restlight.server.config.BizThreadsOptions", + "defaultValue": "30L" }, { "sourceType": "esa.restlight.server.config.ServerOptions", "name": "management.server.restlight.keep-alive-time-seconds", "type": "java.lang.Long", "defaultValue": "30L", - "description": "Keepalive time of max biz thread pool" + "description": "Keepalive time of max biz thread pool", + "deprecated": true, + "deprecation": { + "reason": "deprecated" + } }, { "sourceType": "esa.restlight.server.config.ServerOptions",