当前位置:网站首页>Eureka high availability
Eureka high availability
2022-07-06 16:46:00 【Daily enlightenment】
High availability : You can run multiple Eureka server Instance and register with each other ,Server Nodes will incrementally synchronize information with each other , This ensures that the data in the node is consistent .
Steps to build :
(1) Get ready
Get ready 2 Node deployment eureka, It can also be deployed separately , Modify this machine host file , Bind a host name , For stand-alone deployment, use ip There will be a problem with the address .
(2) The configuration file
Node one :
# Whether to register yourself with other Eureka Server, The default is true need
eureka.client.register-with-eureka=true
# Whether from eureka server Get registration information , need
eureka.client.fetch-registry=true
# Set the URL, be used for client and server End to end communication
# This node should make requests to other nodes
eureka.client.serviceUrl.defaultZone=http://ek2.com:7902/eureka/
# Host name , Required
#hostname Used to find the host address ,appname Used to represent grouping
eureka.instance.hostname=ek1.com
management.endpoint.shutdown.enabled=true
#web port , The service is handled by this port rest Requested
server.port=7901
Node two :
# Whether to register yourself with other Eureka Server, The default is true need
eureka.client.register-with-eureka=true
# Whether from eureka server Get registration information , need
eureka.client.fetch-registry=true
# Set the URL, be used for client and server End to end communication
# This node should make requests to other nodes
eureka.client.serviceUrl.defaultZone=http://ek1.com:7901/eureka/
# Host name , Required
eureka.instance.hostname=ek2.com
management.endpoint.shutdown.enabled=true
#web port , The service is handled by this port rest Requested
server.port=7902
边栏推荐
- How to insert mathematical formulas in CSDN blog
- 业务系统兼容数据库Oracle/PostgreSQL(openGauss)/MySQL的琐事
- Research Report on market supply and demand and strategy of Chinese table lamp industry
- I'm "fixing movies" in ByteDance
- Spark的RDD(弹性分布式数据集)返回大结果集
- LeetCode 1640. Can I connect to form an array
- ~77 linear gradient
- Tencent interview algorithm question
- Chapter 6 rebalance details
- 这116名学生,用3天时间复刻了字节跳动内部真实技术项目
猜你喜欢
随机推荐
Codeforces Global Round 19
LeetCode 1558. Get the minimum number of function calls of the target array
MP4格式详解
~77 linear gradient
腾讯面试算法题
Research Report on hearing health care equipment industry - market status analysis and development prospect prediction
Market trend report, technological innovation and market forecast of China's double sided flexible printed circuit board (FPC)
Solve the problem that intel12 generation core CPU single thread only runs on small cores
China double brightening film (dbef) market trend report, technical dynamic innovation and market forecast
Audio and video development interview questions
~87 animation
~74 JD top navigation bar exercise
~79 Movie card exercise
7-8 likes (need to continue to improve)
Cartesian tree (modified)
~82 style of table
Codeforces Round #771 (Div. 2)
LeetCode 1545. Find the k-th bit in the nth binary string
Research Report on market supply and demand and strategy of China's tetraacetylethylenediamine (TAED) industry
LeetCode 1550. There are three consecutive arrays of odd numbers









