Skip to content

Commit 61fa983

Browse files
committed
fix(contrib): fix debug-etcd
Hitting the /v2/stats/leader endpoint would only work on the etcd leader. Instead, we hit /v2/stats/self which will always work.This doesn't show stats from the other members, but a user could start the service on all hosts.
1 parent bf94812 commit 61fa983

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contrib/coreos/user-data.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ coreos:
142142
[Service]
143143
ExecStartPre=/usr/bin/curl -sSL -o /opt/bin/jq http://stedolan.github.io/jq/download/linux64/jq
144144
ExecStartPre=/usr/bin/chmod +x /opt/bin/jq
145-
ExecStart=/usr/bin/bash -c "while true; do curl -sL http://127.0.0.1:4001/v2/stats/leader | /opt/bin/jq . ; sleep 1 ; done"
145+
ExecStart=/usr/bin/bash -c "while true; do curl -sL http://127.0.0.1:4001/v2/stats/self | /opt/bin/jq . ; sleep 1 ; done"
146146
- name: increase-nf_conntrack-connections.service
147147
command: start
148148
content: |

0 commit comments

Comments
 (0)