From 79308456525050f7560730fe764e79173c0ecd5c Mon Sep 17 00:00:00 2001 From: fredrikliu Date: Tue, 14 May 2024 19:44:54 +0800 Subject: [PATCH] change example --- .../src/main/resources/bootstrap.yml | 86 +++++++++---------- .../src/main/resources/bootstrap.yml | 84 +++++++++--------- .../caller-service/pom.xml | 3 + .../spring-cloud-hoxton-examples/pom.xml | 1 + 4 files changed, 89 insertions(+), 85 deletions(-) diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/callee-service-a/src/main/resources/bootstrap.yml b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/callee-service-a/src/main/resources/bootstrap.yml index 265a218b..ad3c8262 100644 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/callee-service-a/src/main/resources/bootstrap.yml +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/callee-service-a/src/main/resources/bootstrap.yml @@ -3,46 +3,46 @@ server: spring: application: name: QuickstartCalleeService -# cloud: -# polaris: -# address: grpc://127.0.0.1:8091 -# namespace: default -## enabled: true -# discovery: -# enabled: true -# register: true -# contract: -# exposure: true -# report: -# enabled: false -# stat: -# enabled: true -# port: 28083 -# # pushgateway: -# # enabled: true -# # address: 127.0.0.1:9091 -# config: -# address: grpc://127.0.0.1:8093 -# auto-refresh: true -# groups: -# - name: ${spring.application.name} -# files: [ "config/callee.properties" ] -# ratelimit: -# enabled: true -# rejectRequestTipsFilePath: reject-tips.html -# maxQueuingTime: 500 -# tencent: -# metadata: -# content: -# label1: value1 -# region: huanan -#management: -# endpoints: -# web: -# exposure: -# include: -# - polaris-discovery -# - polaris-ratelimit -# - polaris-config -#label: -# key-value: user:zhangsan + cloud: + polaris: + address: grpc://127.0.0.1:8091 + namespace: default + enabled: true + discovery: + enabled: true + register: true + contract: + exposure: true + report: + enabled: false + stat: + enabled: true + port: 28083 + # pushgateway: + # enabled: true + # address: 127.0.0.1:9091 + config: + address: grpc://127.0.0.1:8093 + auto-refresh: true + groups: + - name: ${spring.application.name} + files: [ "config/callee.properties" ] + ratelimit: + enabled: true + rejectRequestTipsFilePath: reject-tips.html + maxQueuingTime: 500 + tencent: + metadata: + content: + label1: value1 + region: huanan +management: + endpoints: + web: + exposure: + include: + - polaris-discovery + - polaris-ratelimit + - polaris-config +label: + key-value: user:zhangsan diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/callee-service-b/src/main/resources/bootstrap.yml b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/callee-service-b/src/main/resources/bootstrap.yml index a5a38326..381eb216 100644 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/callee-service-b/src/main/resources/bootstrap.yml +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/callee-service-b/src/main/resources/bootstrap.yml @@ -3,45 +3,45 @@ server: spring: application: name: QuickstartCalleeService -# cloud: -# polaris: -# address: grpc://127.0.0.1:8091 -# namespace: default -# enabled: true -# discovery: -# enabled: true -# register: true -# contract: -# exposure: true -# report: -# enabled: false -# stat: -# enabled: true -# port: 28084 -# # pushgateway: -# # enabled: true -# # address: 127.0.0.1:9091 -# config: -# address: grpc://127.0.0.1:8093 -# auto-refresh: true -# groups: -# - name: ${spring.application.name} -# files: [ "config/callee.properties" ] -# ratelimit: -# enabled: true -# maxQueuingTime: 500 -# tencent: -# metadata: -# content: -# label1: value2 -# region: huanan -#management: -# endpoints: -# web: -# exposure: -# include: -# - polaris-discovery -# - polaris-ratelimit -# - polaris-config -#label: -# key-value: user2:lisi + cloud: + polaris: + address: grpc://127.0.0.1:8091 + namespace: default + enabled: true + discovery: + enabled: true + register: true + contract: + exposure: true + report: + enabled: false + stat: + enabled: true + port: 28084 + # pushgateway: + # enabled: true + # address: 127.0.0.1:9091 + config: + address: grpc://127.0.0.1:8093 + auto-refresh: true + groups: + - name: ${spring.application.name} + files: [ "config/callee.properties" ] + ratelimit: + enabled: true + maxQueuingTime: 500 + tencent: + metadata: + content: + label1: value2 + region: huanan +management: + endpoints: + web: + exposure: + include: + - polaris-discovery + - polaris-ratelimit + - polaris-config +label: + key-value: user2:lisi diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/caller-service/pom.xml b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/caller-service/pom.xml index 726a8da3..ea379aaf 100644 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/caller-service/pom.xml +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/circuitbreaker-examples/caller-service/pom.xml @@ -11,8 +11,11 @@ + jar + 1.7.0 caller-service Quickstart Caller Service + Hoxton.SR12 1.14.0-Hoxton.SR12-SNAPSHOT diff --git a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/pom.xml b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/pom.xml index ade6f974..17680dcd 100644 --- a/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/pom.xml +++ b/polaris-agent-examples/spring-cloud-plugins-examples/spring-cloud-hoxton-examples/pom.xml @@ -17,6 +17,7 @@ quickstart-examples gray-release-examples + circuitbreaker-examples \ No newline at end of file