当前位置:网站首页>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-5 blessing arrived
- Chapter 6 datanode
- (lightoj - 1354) IP checking (Analog)
- 7-10 punch in strategy
- ByteDance new programmer's growth secret: those glittering treasures mentors
- LeetCode1556. Thousand separated number
- Spark's RDD (elastic distributed data set) returns a large result set
- Market trend report, technical innovation and market forecast of tabletop dishwashers in China
- LeetCode 1447. Simplest fraction
- 这116名学生,用3天时间复刻了字节跳动内部真实技术项目
猜你喜欢
CMake速成
LeetCode 1637. The widest vertical area between two points without any point
「博士毕业一年,我拿下 ACL Best Paper」
Simply try the new amp model of deepfacelab (deepfake)
视频压缩编码和音频压缩编码基本原理
Spark independent cluster dynamic online and offline worker node
~73 other text styles
业务系统从Oracle迁移到openGauss数据库的简单记录
Story of [Kun Jintong]: talk about Chinese character coding and common character sets
~83 form introduction
随机推荐
~77 linear gradient
Spark's RDD (elastic distributed data set) returns a large result set
Research Report on market supply and demand and strategy of China's four flat leadless (QFN) packaging industry
Simply try the new amp model of deepfacelab (deepfake)
JS time function Daquan detailed explanation ----- AHAO blog
~Introduction to form 80
MP4格式详解
Detailed explanation of FLV format
~86m rabbit practice
7-7 ring the stupid bell
~72 horizontal and vertical alignment of text
(lightoj - 1236) pairs forming LCM (prime unique decomposition theorem)
~87 animation
LeetCode 1584. Minimum cost of connecting all points
Tert butyl hydroquinone (TBHQ) Industry Research Report - market status analysis and development prospect forecast
CMake Error: Could not create named generator Visual Studio 16 2019解决方法
Market trend report, technical innovation and market forecast of tabletop dishwashers in China
第2章 HFDS的Shell操作
这116名学生,用3天时间复刻了字节跳动内部真实技术项目
Spark独立集群动态上线下线Worker节点