Bladeren bron

nacos持久化

master
wangjx 3 jaren geleden
bovenliggende
commit
356b6d928a
2 gewijzigde bestanden met toevoegingen van 76 en 2 verwijderingen
  1. +38
    -1
      sentinel-dashboard/src/main/resources/bootstrap-test.yaml
  2. +38
    -1
      sentinel-dashboard/src/main/resources/bootstrap.yaml

+ 38
- 1
sentinel-dashboard/src/main/resources/bootstrap-test.yaml Bestand weergeven

@@ -12,9 +12,46 @@ spring:
dashboard: 172.19.192.44:8098
port: 8098
datasource:
- nacos:
#- nacos:
# server-addr: 172.19.42.44:8848
# data-id: ${spring.application.name}-sentinel-flow
# group-id: DEFAULT_GROUP
# data-type: json
# rule-type: flow
flow:
nacos:
server-addr: 172.19.42.44:8848
data-id: ${spring.application.name}-sentinel-flow
group-id: DEFAULT_GROUP
data-type: json
# 规则类型,取值见:
# org.springframework.cloud.alibaba.sentinel.datasource.RuleType
rule-type: flow
degrade:
nacos:
server-addr: 172.19.42.44:8848
data-id: ${spring.application.name}-sentinel-degrade
group-id: DEFAULT_GROUP
data-type: json
rule-type: degrade
system:
nacos:
server-addr: 172.19.42.44:8848
data-id: ${spring.application.name}-sentinel-system
group-id: DEFAULT_GROUP
data-type: json
rule-type: system
authority:
nacos:
server-addr: 172.19.42.44:8848
data-id: ${spring.application.name}-sentinel-authority
group-id: DEFAULT_GROUP
data-type: json
rule-type: authority
param-flow:
nacos:
server-addr: 172.19.42.44:8848
data-id: ${spring.application.name}-sentinel-param-flow
group-id: DEFAULT_GROUP
data-type: json
rule-type: param-flow

+ 38
- 1
sentinel-dashboard/src/main/resources/bootstrap.yaml Bestand weergeven

@@ -11,9 +11,46 @@ spring:
transport:
dashboard: 172.19.192.44:8098
datasource:
- nacos:
#- nacos:
# server-addr: 172.19.42.44:8848
# data-id: ${spring.application.name}-sentinel-flow
# group-id: DEFAULT_GROUP
# data-type: json
# rule-type: flow
flow:
nacos:
server-addr: 172.19.42.44:8848
data-id: ${spring.application.name}-sentinel-flow
group-id: DEFAULT_GROUP
data-type: json
# 规则类型,取值见:
# org.springframework.cloud.alibaba.sentinel.datasource.RuleType
rule-type: flow
degrade:
nacos:
server-addr: 172.19.42.44:8848
data-id: ${spring.application.name}-sentinel-degrade
group-id: DEFAULT_GROUP
data-type: json
rule-type: degrade
system:
nacos:
server-addr: 172.19.42.44:8848
data-id: ${spring.application.name}-sentinel-system
group-id: DEFAULT_GROUP
data-type: json
rule-type: system
authority:
nacos:
server-addr: 172.19.42.44:8848
data-id: ${spring.application.name}-sentinel-authority
group-id: DEFAULT_GROUP
data-type: json
rule-type: authority
param-flow:
nacos:
server-addr: 172.19.42.44:8848
data-id: ${spring.application.name}-sentinel-param-flow
group-id: DEFAULT_GROUP
data-type: json
rule-type: param-flow

Laden…
Annuleren
Opslaan