From b08b3211210a9a1052d7cba152d2964c71520c5a Mon Sep 17 00:00:00 2001 From: fredrikliu Date: Mon, 3 Jun 2024 10:51:44 +0800 Subject: [PATCH 1/4] add lossless function --- .../spring/cloud/interceptor/ConfigurationParserInterceptor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/interceptor/ConfigurationParserInterceptor.java b/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/interceptor/ConfigurationParserInterceptor.java index afa31b0a..5213a6ed 100644 --- a/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/interceptor/ConfigurationParserInterceptor.java +++ b/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/interceptor/ConfigurationParserInterceptor.java @@ -69,6 +69,7 @@ public ConfigurationParserInterceptor() { beanInjectors.add(new RouterBeanInjector()); beanInjectors.add(new LoadbalancerBeanInjector()); beanInjectors.add(new ConfigBeanInjector()); + beanInjectors.add(new LosslessBeanInjector()); } From 1d2ea293779b5c5f5dcb67bc8482e678498e0634 Mon Sep 17 00:00:00 2001 From: fredrikliu Date: Tue, 4 Jun 2024 01:15:02 +0800 Subject: [PATCH 2/4] change application.yml --- .../conf/plugin/spring-cloud-2023/application.properties | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties b/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties index 21b9c358..af9e2e17 100644 --- a/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties +++ b/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties @@ -41,4 +41,7 @@ spring.cloud.polaris.stat.port=0 # path for polaris stat spring.cloud.polaris.stat.path=/metrics -logging.level.root=INFO \ No newline at end of file +logging.level.root=INFO +spring.cloud.polaris.lossless.enabled=true +spring.cloud.polaris.lossless.port=28080 +spring.cloud.polaris.lossless.delayRegisterInterval=30000 \ No newline at end of file From 44ac3aa6ed3b74b643ee86932b5e015df689d155 Mon Sep 17 00:00:00 2001 From: fredrikliu <139424001+fredrikliu@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:04:27 +0800 Subject: [PATCH 3/4] Update application.properties --- .../plugin/spring-cloud-2023/application.properties | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties b/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties index af9e2e17..2b988618 100644 --- a/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties +++ b/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties @@ -34,14 +34,18 @@ spring.cloud.polaris.ratelimit.maxQueuingTime=1000 spring.cloud.tencent.rpc-enhancement.enabled=true # switch for rpc-enhancement reporter feature spring.cloud.tencent.rpc-enhancement.reporter.enabled=true +# switch for lossless feature +spring.cloud.polaris.lossless.enabled=true +# switch for lossless port feature +spring.cloud.polaris.lossless.port=28080 +# switch for lossless delayRegisterInterval feature +spring.cloud.polaris.lossless.delayRegisterInterval=30000 # switch for polaris stat feature spring.cloud.polaris.stat.enabled=false # port for polaris stat spring.cloud.polaris.stat.port=0 # path for polaris stat spring.cloud.polaris.stat.path=/metrics - +# log level feature logging.level.root=INFO -spring.cloud.polaris.lossless.enabled=true -spring.cloud.polaris.lossless.port=28080 -spring.cloud.polaris.lossless.delayRegisterInterval=30000 \ No newline at end of file + From d2c628cadca3439524c3e4fb5e9bd93a53705b2b Mon Sep 17 00:00:00 2001 From: fredrikliu Date: Tue, 4 Jun 2024 10:22:10 +0800 Subject: [PATCH 4/4] change application.propertities --- .../main/conf/plugin/spring-cloud-2023/application.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties b/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties index 2b988618..023d5faf 100644 --- a/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties +++ b/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2023-plugin/src/main/conf/plugin/spring-cloud-2023/application.properties @@ -35,7 +35,7 @@ spring.cloud.tencent.rpc-enhancement.enabled=true # switch for rpc-enhancement reporter feature spring.cloud.tencent.rpc-enhancement.reporter.enabled=true # switch for lossless feature -spring.cloud.polaris.lossless.enabled=true +spring.cloud.polaris.lossless.enabled=false # switch for lossless port feature spring.cloud.polaris.lossless.port=28080 # switch for lossless delayRegisterInterval feature