当前位置:网站首页>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
边栏推荐
- MP4格式详解
- Codeforces Global Round 19
- LeetCode 1562. Find the latest group of size M
- Chapter 5 yarn resource scheduler
- Raspberry pie 4B installation opencv3.4.0
- Solve the problem of intel12 generation core CPU [small core full, large core onlookers] (win11)
- Spark独立集群Worker和Executor的概念
- CMake速成
- CMake Error: Could not create named generator Visual Studio 16 2019解决方法
- Summary of game theory
猜你喜欢

~Introduction to form 80

Gridhome, a static site generator that novices must know

字节跳动技术新人培训全记录:校招萌新成长指南

MP4格式详解

软通乐学-js求字符串中字符串当中那个字符出现的次数多 -冯浩的博客

Two weeks' experience of intermediate software designer in the crash soft exam

Native JS realizes the functions of all selection and inverse selection -- Feng Hao's blog

~84 form supplement

【锟斤拷】的故事:谈谈汉字编码和常用字符集

第6章 Rebalance详解
随机推荐
The concept of spark independent cluster worker and executor
第三章 MapReduce框架原理
Chapter 1 overview of MapReduce
SQL quick start
LeetCode 1558. Get the minimum number of function calls of the target array
LeetCode 1557. The minimum number of points that can reach all points
「博士毕业一年,我拿下 ACL Best Paper」
两个礼拜速成软考中级软件设计师经验
CMake速成
LeetCode 1641. Count the number of Lexicographic vowel strings
Cartesian tree (modified)
Market trend report, technical innovation and market forecast of tabletop dishwashers in China
(lightoj - 1354) IP checking (Analog)
Research Report on market supply and demand and strategy of China's four seasons tent industry
7-8 likes (need to continue to improve)
~75 background
Raspberry pie 4b64 bit system installation miniconda (it took a few days to finally solve it)
Chapter 5 namenode and secondarynamenode
Two weeks' experience of intermediate software designer in the crash soft exam
7-12 inventory code base