I would like to have yellow shards for one of my backend configs. Right now I have this one:
backend blabla
mode tcp
balance roundrobin
option httpchk get /_cat/indices
http-check expect rstring \b(green|yellow)\b
server s1 someip1:9222 check port 9201 inter 12000 rise 2 fall 2
server s2 someip2:9222 check port 9201 inter 12000 rise 2 fall 2
server s3 someip3:9222 check port 9201 inter 12000 rise 2 fall 2
I want something like /indices/health=yellow (i know it's wrong this way) but I can't find anything like this through the dox. Any help is much appreciated!
Actually, can i do the same for /_cluster/health but instead of the whole json I would like to receive whether it is green or yellow? I can't use stuff like cut or awk ..
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.