当前位置:网站首页>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
边栏推荐
- 7-12 inventory code base
- [unsolved] 7-15 shout mountain
- (lightoj - 1349) Aladdin and the optimal invitation (greed)
- LeetCode 1550. There are three consecutive arrays of odd numbers
- ~84 form supplement
- LeetCode 1584. Minimum cost of connecting all points
- Chapter 6 datanode
- Research Report on market supply and demand and strategy of double drum magnetic separator industry in China
- Research Report on market supply and demand and strategy of Chinese table lamp industry
- How to insert mathematical formulas in CSDN blog
猜你喜欢
第五章 Yarn资源调度器
解决Intel12代酷睿CPU【小核载满,大核围观】的问题(WIN11)
新手必会的静态站点生成器——Gridsome
Detailed explanation of FLV format
LeetCode 1020. Number of enclaves
One hundred questions of image processing (11-20)
我在字节跳动「修电影」
字节跳动新程序员成长秘诀:那些闪闪发光的宝藏mentor们
Hbuilder X格式化快捷键设置
LeetCode 1557. The minimum number of points that can reach all points
随机推荐
China tetrabutyl urea (TBU) market trend report, technical dynamic innovation and market forecast
简单尝试DeepFaceLab(DeepFake)的新AMP模型
Hbuilder X格式化快捷键设置
(lightoj - 1349) Aladdin and the optimal invitation (greed)
Market trend report, technological innovation and market forecast of China's double sided flexible printed circuit board (FPC)
~68 Icon Font introduction
Submit several problem records of spark application (sparklauncher with cluster deploy mode)
I'm "fixing movies" in ByteDance
7-5 blessing arrived
Codeforces Round #771 (Div. 2)
SQL快速入门
Market trend report, technical innovation and market forecast of double-sided foam tape in China
MP4格式详解
两个礼拜速成软考中级软件设计师经验
string. How to choose h and string and CString
Market trend report, technological innovation and market forecast of desktop electric tools in China
~72 horizontal and vertical alignment of text
7-8 likes (need to continue to improve)
Usage of insert() in vector
Spark independent cluster dynamic online and offline worker node