http端点在akka群集中关闭了无法访问的节点

问题描述 投票:0回答:1

我试图根据页面(https://doc.akka.io/docs/akka-management/current/cluster-http-management.html#api-definition)断开http终结点无法访问的节点,但是我的尝试没有成功。您能否提供一个答案,说明如何通过http端点从群集中关闭无法访问的节点。

当前集群状态为下一个:

请求:

 curl  10.1.0.124:8558/cluster/members/

响应:

{"leader":"akka://[email protected]:25520","members":[{"node":"akka://[email protected]:25520","nodeUid":"-7768515516228898368","roles":["dc-default"],"status":"Up"},{"node":"akka://[email protected]:25520","nodeUid":"2194424415667308056","roles":["dc-default"],"status":"Up"}],"oldest":"akka://[email protected]:25520","oldestPerRole":{"dc-default":"akka://[email protected]:25520"},"selfNode":"akka://[email protected]:25520","unreachable":[{"node":"akka://[email protected]:25520","observedBy":["akka://[email protected]:25520"]}]}

尝试关闭无法访问的节点并收到错误。

请求:

curl 10.1.0.124:8558/cluster/members/[email protected]:25520 -X PUT -d 'operation=DOWN'

响应:

 A request was made of a resource using a request method not supported by that resource;
akka akka-cluster
1个回答
0
投票

我已通过在lightbend论坛https://discuss.lightbend.com/t/down-unreachable-node-by-http/6023/3上提问解决了这个问题。 akka.management.http.route-providers-read-only属性的默认值存在问题。

© www.soinside.com 2019 - 2024. All rights reserved.