当前位置:网站首页>Eurake分区理解
Eurake分区理解
2022-07-01 12:22:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
Eurake分区理解 大型项目如果存在多个机房,例如北京机房,上海机房,杭州机房等,上千个服务注册在Eurake上面,我们的事例也分别部署在各个区域。这时候,由于机房存在不同的区域,北京的一个服务如果调用上海的一个服务,就可能发生延迟,服务的响应速度也会慢很多,这时候,我们可能期望,北京的服务生产者调用北京的服务消费着,这该怎么去操作? Eurake其实有个分区功能,什么是分区,就是北京有一个注册中心,上海,杭州也有,这里就需要提到一个配置eureka.instance.region,可以设置多个注册中心,在不同的机房,每个机房可以有多个服务,在eureka.instance.availability-zones,设置北京不同的机房区域,最后在service-url注册地址,如何设置从哪个注册地址获取服务实例, 有个配置是prefer-same-zone-eureka,它如果是true,会从availability-zones第一个区域注册,如果注册失败,则继续向其他服务注册,如果注册三次失败,过一个心跳开启重试 如果prefer-same-zone-eureka是false,他会从service-uri拉取一个list,从第一个开始注册,如果注册成功,维持心跳,如果失败,则继续往下取。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/131505.html原文链接:https://javaforall.cn
边栏推荐
- Emotion analysis based on IMDB comment data set
- 栈-------
- Fatal error: execution: there is no such file or directory
- Summary of JFrame knowledge points 1
- Onenet Internet of things platform - the console sends commands to mqtt product devices
- Joint Time-Frequency and Time Domain Learning for Speech Enhancement
- Ansible的playbook
- [Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 4
- 关于NAND FLASH解扣的认识
- Abbirb120 industrial robot mechanical zero position
猜你喜欢

Ansible相关内容梳理

GID:旷视提出全方位的检测模型知识蒸馏 | CVPR 2021

NOV Schedule for . Net to display and organize appointments and recurring events
![[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 8](/img/16/e1a0a52964c8a55eb729469114fc60.jpg)
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 8

【20211129】Jupyter Notebook远程服务器配置

被锡膏坑了一把

Virtualenv+pipenv virtual environment management

Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation

Seckill system 03 - redis cache and distributed lock

Sort out relevant contents of ansible
随机推荐
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 6
Unity XLua 协程封装
Onenet Internet of things platform - mqtt product devices send messages to message queues MQ
Mysql database knowledge collation
Ansible的playbook
谈思生物直播—GENOVIS张洪妍抗体特异性酶切技术助力抗体药物结构表征
Onenet Internet of things platform - mqtts product equipment connected to the platform
栈-------
Le semester manquant
[Suanli network] technological innovation of Suanli Network -- key technology of operation service
本科毕业四年:工作,辞职,结婚,买房
Virtualenv+pipenv virtual environment management
The Missing Semester
[JS advanced] promise explanation
Pandas reads MySQL data
巩固-C#运算符
Neo4j Chinese developer monthly - issue 202206
关于NAND FLASH解扣的认识
ASP.NET Core 6 从入门到企业级实战开发应用技术汇总
Leetcode (Sword finger offer) - 58 - ii Rotate string left