Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement openio cluster incident HOST #1389

Open
jfsmig opened this issue Mar 19, 2018 · 0 comments
Open

Implement openio cluster incident HOST #1389

jfsmig opened this issue Mar 19, 2018 · 0 comments

Comments

@jfsmig
Copy link
Contributor

jfsmig commented Mar 19, 2018

We need an easy and efficient way to mark down all the services known to be hosted on the given host.
Currently, this could be implemented like this:

( PROXY=127.0.0.1:6000 ; IP=127.0.0.2 ; oio-cluster -r "$OIO_NS" \
 | awk -F\| "/$IP:/{print \$3,\$2}" \
 | while read IP TYPE ; do
     curl -v -XPOST "http://${PROXY}/v3.0/${OIO_NS}/conscience/lock" \
          -d "{\"addr\":\"${IP}\",\"type\":\"${TYPE}\",\"score\":0,\"tags\":{\"tag.up\":false}}"
   done )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant