feature(all): 切换使用zookeeper作为注册中心

This commit is contained in:
2023-07-12 14:38:35 +08:00
parent 6e80985552
commit 09343e8efa
5 changed files with 28 additions and 6 deletions

View File

@@ -1,20 +1,19 @@
spring:
cloud:
zookeeper:
enabled: false
enabled: true
connect-string: 127.0.0.1:2181
discovery:
enabled: ${spring.cloud.zookeeper.enabled}
root: /hudi-services
instance-host: localhost
instance-id: ${spring.application.name}-${spring.cloud.zookeeper.discovery.instance-host}-${random.uuid}-${datetime:19700101}
instance-id: ${spring.application.name}-${hostname}-${random.uuid}-${datetime:19700101}
eureka:
instance:
hostname: localhost
prefer-ip-address: true
instance-id: ${spring.application.name}-${eureka.instance.hostname}-${random.uuid}-${datetime}
client:
enabled: true
enabled: false
service-url:
defaultZone: http://localhost:35670/eureka/
registry-fetch-interval-seconds: 10