-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:fix agent 2023/2022 could not statrt by double registry (#198)
- Loading branch information
1 parent
bb79967
commit da1b614
Showing
14 changed files
with
80 additions
and
34 deletions.
There are no files selected for viewing
24 changes: 21 additions & 3 deletions
24
...-cloud-2022-examples/quickstart-examples/consumer/src/main/resources/bootstrap.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
server.port=65002 | ||
spring.application.name=service-consumer-2022 | ||
management.endpoints.web.exposure.include=* | ||
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 | ||
spring.cloud.nacos.discovery.enabled=false | ||
spring.cloud.nacos.config.enabled=false | ||
spring.main.allow-bean-definition-overriding=true | ||
spring.cloud.nacos.discovery.fail-fast=true | ||
|
||
spring.cloud.nacos.username=nacos | ||
spring.cloud.nacos.password=nacos | ||
|
||
feign.sentinel.enabled=true | ||
|
||
spring.cloud.sentinel.transport.dashboard=localhost:8080 | ||
spring.cloud.sentinel.eager=true | ||
|
||
spring.cloud.sentinel.datasource.ds1.file.file=classpath: flowrule.json | ||
spring.cloud.sentinel.datasource.ds1.file.data-type=json | ||
spring.cloud.sentinel.datasource.ds1.file.rule-type=flow | ||
|
||
spring.cloud.sentinel.datasource.ds2.file.file=classpath: degraderule.json | ||
spring.cloud.sentinel.datasource.ds2.file.data-type=json | ||
spring.cloud.sentinel.datasource.ds2.file.rule-type=degrade | ||
spring.cloud.loadbalancer.nacos.enabled=true | ||
# use feign client in GraalVM environment need to set below config | ||
spring.cloud.refresh.enabled=false | ||
spring.main.allow-circular-references=true |
14 changes: 10 additions & 4 deletions
14
...loud-2022-examples/quickstart-examples/provider-a/src/main/resources/bootstrap.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
server.port=65001 | ||
spring.application.name=service-provider-2022 | ||
spring.cloud.nacos.config.server-addr=127.0.0.1:8848 | ||
spring.cloud.nacos.config.enabled=false | ||
spring.cloud.nacos.discovery.enabled=false | ||
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 | ||
spring.cloud.nacos.discovery.enabled=true | ||
#spring.cloud.nacos.discovery.instance-enabled=true | ||
#only register IPv4 instance | ||
#spring.cloud.nacos.discovery.ip-type=IPv4 | ||
#only register IPv6 instance | ||
#spring.cloud.nacos.discovery.ip-type=IPv6 | ||
|
||
spring.cloud.nacos.username=nacos | ||
spring.cloud.nacos.password=nacos | ||
|
||
management.endpoints.web.exposure.include=* | ||
management.endpoint.health.show-details=always | ||
spring.main.allow-bean-definition-overriding=true | ||
spring.main.allow-circular-references=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 22 additions & 3 deletions
25
...ud-hoxton-examples/quickstart-examples/consumer/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
server.port=65002 | ||
spring.application.name=service-consumer-hoxton | ||
server.port=18083 | ||
management.endpoints.web.exposure.include=* | ||
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 | ||
spring.cloud.nacos.discovery.enabled=false | ||
spring.cloud.nacos.config.enabled=false | ||
spring.cloud.nacos.discovery.fail-fast=true | ||
|
||
spring.cloud.nacos.username=nacos | ||
spring.cloud.nacos.password=nacos | ||
|
||
feign.sentinel.enabled=true | ||
|
||
spring.cloud.sentinel.transport.dashboard=localhost:8080 | ||
spring.cloud.sentinel.eager=true | ||
|
||
spring.cloud.sentinel.datasource.ds1.file.file=classpath: flowrule.json | ||
spring.cloud.sentinel.datasource.ds1.file.data-type=json | ||
spring.cloud.sentinel.datasource.ds1.file.rule-type=flow | ||
|
||
spring.cloud.sentinel.datasource.ds2.file.file=classpath: degraderule.json | ||
spring.cloud.sentinel.datasource.ds2.file.data-type=json | ||
spring.cloud.sentinel.datasource.ds2.file.rule-type=degrade | ||
spring.cloud.loadbalancer.nacos.enabled=true | ||
# use feign client in GraalVM environment need to set below config | ||
spring.cloud.refresh.enabled=false |
14 changes: 10 additions & 4 deletions
14
...-hoxton-examples/quickstart-examples/provider-a/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
server.port=65001 | ||
server.port=0 | ||
spring.application.name=service-provider-hoxton | ||
spring.cloud.nacos.config.server-addr=127.0.0.1:8848 | ||
spring.cloud.nacos.config.enabled=false | ||
spring.cloud.nacos.discovery.enabled=false | ||
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 | ||
spring.cloud.nacos.discovery.enabled=true | ||
#spring.cloud.nacos.discovery.instance-enabled=true | ||
#only register IPv4 instance | ||
#spring.cloud.nacos.discovery.ip-type=IPv4 | ||
#only register IPv6 instance | ||
#spring.cloud.nacos.discovery.ip-type=IPv6 | ||
|
||
spring.cloud.nacos.username=nacos | ||
spring.cloud.nacos.password=nacos | ||
|
||
management.endpoints.web.exposure.include=* | ||
management.endpoint.health.show-details=always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters