From 7a18a859ef4f7c77d96f4ce8eeba4d1faafca710 Mon Sep 17 00:00:00 2001 From: fredrikliu Date: Fri, 17 May 2024 15:00:36 +0800 Subject: [PATCH] add example.yml --- .../plugin/spring-cloud-hoxton/application.properties | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-hoxton-plugin/src/main/conf/plugin/spring-cloud-hoxton/application.properties b/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-hoxton-plugin/src/main/conf/plugin/spring-cloud-hoxton/application.properties index 5f8f2517..4c757a94 100644 --- a/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-hoxton-plugin/src/main/conf/plugin/spring-cloud-hoxton/application.properties +++ b/polaris-agent-plugins/spring-cloud-plugins/spring-cloud-hoxton-plugin/src/main/conf/plugin/spring-cloud-hoxton/application.properties @@ -1,7 +1,7 @@ # the application name for spring cloud, register as the service name in registry center -spring.application.name=service-consumer-H +spring.application.name=service-consumer-hoxton # polaris server address -spring.cloud.polaris.address=grpc\://111.230.207.241\:8091 +spring.cloud.polaris.address=grpc\://127.0.0.1\:8091 # switch for spring cloud polaris all features spring.cloud.polaris.enabled=true # switch for spring cloud discovery feature @@ -22,6 +22,9 @@ spring.cloud.polaris.router.rule-router.enabled=true spring.cloud.polaris.router.metadata-router.enabled=true # switch for polaris router(nearby-router) feature spring.cloud.polaris.router.nearby-router.enabled=true +# switch for circuitbreaker +spring.cloud.polaris.circuitbreaker.enabled=true +feign.hystrix.enabled=true # switch for polaris ratelimit feature spring.cloud.polaris.ratelimit.enabled=false # rejectHttpCode for polaris ratelimit, will be returned as limited @@ -39,4 +42,4 @@ spring.cloud.polaris.stat.port=0 # path for polaris stat spring.cloud.polaris.stat.path=/metrics -logging.level.root=DEBUG \ No newline at end of file +logging.level.root=INFO \ No newline at end of file