当前位置:网站首页>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)
边栏推荐
- 023 ([template] minimum spanning tree) (minimum spanning tree)
- 102. Sequence traversal of binary tree
- 2020-09_ Shell Programming Notes
- Jsup crawls Baidu Encyclopedia
- temp
- What is more elegant for flutter to log out and confirm again?
- Wechat applet - basic content
- Implement verification code verification
- 2.9 overview of databinding knowledge points
- Use of QT OpenGL camera
猜你喜欢

Integer string int mutual conversion

PHP export word method (one MHT)

QT OpenGL texture map

Use bloc to build a page instance of shutter

Flutter 退出登录二次确认怎么做才更优雅?

win10 上PHP artisan storage:link 出现 symlink (): Protocol error的解决办法

Kubernetes three dozen probes and probe mode
![[learning notes] DP status and transfer](/img/5e/59c64d2fe08b89fba2d7e1e6de2761.png)
[learning notes] DP status and transfer

Is BigDecimal safe to calculate the amount? Look at these five pits~~

云计算未来 — 云原生
随机推荐
(构造笔记)GRASP学习心得
elastic_ L04_ introduction. md
Lambda expression
云计算未来 — 云原生
Dart: view the dill compiled code file
2020-09_ Shell Programming Notes
[combinatorics] permutation and combination (summary of permutation and combination content | selection problem | set permutation | set combination)
temp
Dart: about Libraries
OpenGL draws colored triangles
pragma-pack语法与使用
257. All paths of binary tree
Develop plug-ins for idea
Atomic atomic operation
【附下载】密码获取工具LaZagne安装及使用
Optimize interface performance
Adult adult adult
Colleagues wrote a responsibility chain model, with countless bugs
Use of atomicinteger
Systemverilog-- OOP--对象的拷贝