одноранговые узлы confd недоступны

Бег

confd -debug=true -verbose -onetime -node 172.17.0.61:4001 -confdir ./confd

дает мне следующее

2014-08-08T10:57:25+02:00 HAL75 confd[20762]: WARNING Skipping confd config file.
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: NOTICE Starting confd
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: NOTICE etcd nodes set to http://172.17.0.61:4001
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: DEBUG Loading template resources from confdir ./confd
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: DEBUG Processing template resource confd/conf.d/test.toml
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: DEBUG Loading template resource from confd/conf.d/test.toml
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: DEBUG Retrieving keys from etcd
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: DEBUG Key prefix set to /
2014-08-08T10:57:26+02:00 HAL75 confd[20762]: ERROR 501: All the given peers are not reachable (Tried to connect to each peer twice and failed) [0]

однако, если я делаю запрос curl к тому же серверу и паре ключ/значение, что и шаблон confd и conf, я правильно получаю ответ json от etcd. Не уверен, почему confd не работает?

У кого-нибудь есть идеи?


person daemonza    schedule 08.08.2014    source источник
comment
Вы заставили его работать? У меня такая же проблема.   -  person user1441287    schedule 19.09.2014
comment
Нет, в конце концов я написал небольшую утилиту на Go, которая запрашивает etcd, а затем записывает сегмент файла конфигурации, который мне нужно обновить.   -  person daemonza    schedule 22.10.2014


Ответы (1)


Вам нужно настроить -addr и -bind-addr на etcd.

person Marshall Anschutz    schedule 16.09.2014