当前位置:网站首页>Eureka自我保护
Eureka自我保护
2022-07-03 11:53:00 【只因为你而温柔】
Eureka自我保护
故障现象
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-qdLkNhES-1654355596457)(/Users/xiaoge/Downloads/assests/02C3F3E4-A64A-4347-9CB4-9E5A836B9473.png)]](/img/a1/e130bd4a78e6f7f4c577c236e5c4cc.png)
导致原因
一句话:某时刻 一个微服务不可用了,Eureka不会立刻清理,依旧会对该服务的信息进行保存
属于CAP里面的AP分支
禁止自我保护—EurekaServer端
出产默认,自我保护机制是开启的
eureka.server.enable-self-preservation=true使用eureka.server.enable-self-preservation=false 可以禁用自我保护模式
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-wbJ7QZE4-1654355596459)(/Users/xiaoge/Downloads/assests/0C62312C-F235-4A49-AE6C-14113B4C182E.png)]](/img/94/f24fac83001fdb3c4926495c16500e.png)
关闭效果
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-MZaLVJcv-1654355596460)(/Users/xiaoge/Downloads/assests/A5FF5BFC-35E6-434D-83D3-BD2B3E3D4AED.png)]](/img/27/3182f18006d1731ed4ec54ed7721ed.png)
在eurekaServer端7001处设置关闭自我保护机制
EurekaClient端
默认
eureka.instance.lease-renewal-interval-in-seconds=30 单位为秒(默认是30秒) eureka.instance.lease-expiration-duration-in-seconds=90 单位为秒(默认是390秒)配置
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-AA9AQbya-1654355596467)(/Users/xiaoge/Downloads/assests/2004DCF3-002E-43EB-B292-D7E29E715A28.png)]](/img/97/88a0e2740e075d0642c4c8591b35d4.png)
测试
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-r8WsrQU8-1654355596468)(/Users/xiaoge/Downloads/assests/9AC279FE-4292-4E08-BF67-FB5E72670203.png)]](/img/76/facdecc052d74b7721f93c8ff83544.png)
边栏推荐
- DEJA_VU3D - Cesium功能集 之 053-地下模式效果
- [download attached] password acquisition tool lazagne installation and use
- How to convert a numeric string to an integer
- Introduction to concurrent programming (I)
- laravel 时区问题timezone
- Jsup crawls Baidu Encyclopedia
- (construction notes) grasp learning experience
- 1-1 token
- 手机号码变成空号导致亚马逊账号登陆两步验证失败的恢复网址及方法
- Optimize interface performance
猜你喜欢

Basic knowledge of OpenGL (sort it out according to your own understanding)

OpenGL index cache object EBO and lineweight mode

Shutter: add gradient stroke to font

【附下载】密码获取工具LaZagne安装及使用

laravel 时区问题timezone

PHP export word method (phpword)
![[MySQL special] read lock and write lock](/img/ac/e01c26882cc664ea2e5e731c5a8bab.png)
[MySQL special] read lock and write lock

If you can't learn, you have to learn. Jetpack compose writes an im app (I)

During FTP login, the error "530 login incorrect.login failed" is reported

ES6新特性
随机推荐
257. All paths of binary tree
Use of atomicinteger
023(【模板】最小生成树)(最小生成树)
LeetCode 0556. Next bigger element III - end of step 4
4000字超详解指针
Unicode查询的官方网站
4000 word super detailed pointer
Colleagues wrote a responsibility chain model, with countless bugs
Is BigDecimal safe to calculate the amount? Look at these five pits~~
网络通讯之Socket-Tcp(一)
Is it OK to open an account for online stock speculation? Is the fund safe?
Php Export word method (One MHT)
LeetCode 0556.下一个更大元素 III - 4步讲完
145. Post order traversal of binary tree
temp
OpenGL draws colored triangles
How to convert a numeric string to an integer
DEJA_VU3D - Cesium功能集 之 054-模拟火箭发射全过程
Lambda表达式
Applet wxss introduction