当前位置:网站首页>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)
边栏推荐
- Kubernetes three dozen probes and probe mode
- Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
- (construction notes) learn the specific technology of how to design reusable software entities from three levels: class, API and framework
- PHP get the file list and folder list under the folder
- Differences between MySQL Union and union all
- Kubectl_ Command experience set
- Wechat applet development - page Jump transfer parameters
- Shutter: overview of shutter architecture (excerpt)
- If you can't learn, you have to learn. Jetpack compose writes an im app (II)
- Self made pop-up input box, input text, and click to complete the event.
猜你喜欢

Integer string int mutual conversion

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

Php Export word method (One MHT)

2.7 overview of livedata knowledge points

PHP export word method (phpword)

实现验证码验证

Shardingsphere sub database and sub table < 3 >

Fluent: Engine Architecture
![[download attached] password acquisition tool lazagne installation and use](/img/21/eccf87ad9946d4177b600d96e17322.png)
[download attached] password acquisition tool lazagne installation and use

为什么我的mysql容器启动不了呢
随机推荐
2020-09_ Shell Programming Notes
repo Manifest Format
Dart: about Libraries
网络通讯之Socket-Tcp(一)
Wechat applet - basic content
Pragma pack syntax and usage
Shutter widget: centerslice attribute
SystemVerilog -- OOP -- copy of object
PHP導出word方法(一mht)
(構造筆記)從類、API、框架三個層面學習如何設計可複用軟件實體的具體技術
Flutter: self study system
网上炒股开户安不安全?谁给回答一下
LeetCode 0556.下一个更大元素 III - 4步讲完
(构造笔记)从类、API、框架三个层面学习如何设计可复用软件实体的具体技术
PHP get the file list and folder list under the folder
Applet wxss introduction
Slf4j log facade
Lambda表达式
adb push apk
Jsup crawls Baidu Encyclopedia