作者: | 来源:互联网 | 2023-09-12 22:16
Whensendingoutaquery,e.g.
When sending out a query, e.g.
1 2 3 4 5 6 7
| serf query rabbitmq master
Query 'rabbitmq' dispatched
Ack from 'node2'
Ack from 'node1'
Response from 'node1': rabbit.foo.com
Total Acks: 2
Total Responses: 1 |
it should be possible to get the command output in json instead, e.g.
1 2
| serf query --json rabbitmq master
{"responses":[{"node1": "rabbit.foo.com"}], "acks": ["node2", "node1"]} |
该提问来源于开源项目:hashicorp/serf
Fixed in 0271ae846daf79e98880bacdc27e5c26aea3f395