{"id":2046,"date":"2023-04-01T20:52:24","date_gmt":"2023-04-01T12:52:24","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=2046"},"modified":"2023-04-07T06:07:21","modified_gmt":"2023-04-06T22:07:21","slug":"eureka-server-not-removing-nodes-that-have-been-shut-down","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/04\/01\/eureka-server-not-removing-nodes-that-have-been-shut-down\/","title":{"rendered":"\u89e3\u51b3Eureka Server\u4e0d\u5254\u9664\u5df2\u5173\u505c\u7684\u8282\u70b9\u7684\u95ee\u9898"},"content":{"rendered":"<p>\u80cc\u666f\uff1a\u7531\u4e8eEureka\u62e5\u6709\u81ea\u6211\u4fdd\u62a4\u673a\u5236\uff0c\u5f53\u5176\u6ce8\u518c\u8868\u91cc\u670d\u52a1\u56e0\u4e3a\u7f51\u7edc\u6216\u5176\u4ed6\u539f\u56e0\u51fa\u73b0\u6545\u969c\u800c\u5173\u505c\u65f6\uff0cEureka\u4e0d\u4f1a\u5254\u9664\u670d\u52a1\u6ce8\u518c\uff0c\u800c\u662f\u7b49\u5f85\u5176\u4fee\u590d\u3002\u8fd9\u662fAP\u7684\u4e00\u79cd\u5b9e\u73b0\u3002\u00a0<br \/>\n\u4e3a\u4e86\u8ba9\u5176\u6709\u7cbe\u51c6\u7684 CP\u5065\u5eb7\u68c0\u67e5\uff0c\u53ef\u4ee5\u91c7\u53d6\u8ba9\u5176\u5254\u9664\u4e0d\u5065\u5eb7\u8282\u70b9\u3002<\/p>\n<p><!-- more --><\/p>\n<pre><code>#Server\u7aef\neureka.server.enable-self-preservation=false \/\/\uff08\u8bbe\u4e3afalse\uff0c\u5173\u95ed\u81ea\u6211\u4fdd\u62a4\u4e3b\u8981\uff09\neureka.server.eviction-interval-timer-in-ms=4000 \/\/\u6e05\u7406\u95f4\u9694\uff08\u5355\u4f4d\u6beb\u79d2\uff0c\u9ed8\u8ba4\u662f60*1000\uff09\n\n#Client\u7aef\neureka.client.healthcheck.enabled=true \/\/\u5f00\u542f\u5065\u5eb7\u68c0\u67e5\uff08\u9700\u8981spring-boot-starter-actuator\u4f9d\u8d56\uff09\neureka.instance.lease-renewal-interval-in-seconds=10 \/\/\u79df\u671f\u66f4\u65b0\u65f6\u95f4\u95f4\u9694\uff08\u9ed8\u8ba430\u79d2\uff09\neureka.instance.lease-expiration-duration-in-seconds=30 \/\/\u79df\u671f\u5230\u671f\u65f6\u95f4\uff08\u9ed8\u8ba490\u79d2\uff09<\/code><\/pre>\n<pre><code class=\"language-yml\">#Server\u7aef\u914d\u7f6e\neureka:\n  server:\n    enableSelfPreservation: false\n    evictionIntervalTimerInMs: 4000\n#Client\u914d\u7f6e\neureka:\n  instance:\n    leaseRenewalIntervalInSeconds: 10\n    leaseExpirationDurationInSeconds: 30<\/code><\/pre>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u66f4\u6539Eureka\u66f4\u65b0\u9891\u7387\u5c06\u6253\u7834\u670d\u52a1\u5668\u7684\u81ea\u6211\u4fdd\u62a4\u529f\u80fd<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f\uff1a\u7531\u4e8eEureka\u62e5\u6709\u81ea\u6211\u4fdd\u62a4\u673a\u5236\uff0c\u5f53\u5176\u6ce8\u518c\u8868\u91cc\u670d\u52a1\u56e0\u4e3a\u7f51\u7edc\u6216\u5176\u4ed6\u539f\u56e0\u51fa\u73b0\u6545\u969c\u800c\u5173\u505c\u65f6\uff0cEureka\u4e0d\u4f1a\u5254 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[248],"class_list":["post-2046","post","type-post","status-publish","format-standard","hentry","category-spring-cloud","tag-eureka"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2046"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2046\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}