소스 검색

nacos持久化

master
wangjx 3 년 전
부모
커밋
356b6d928a
2개의 변경된 파일76개의 추가작업 그리고 2개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

@@ -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

Loading…
취소
저장