Merge pull request #4 from ericchiang/coc automated PR: update CoC
Merge pull request #4 from ericchiang/coc
automated PR: update CoC
A consul “personality” for etcd. Point a consul client at cetcd to dispatch the operations on an etcd cluster.
Forwarding consul requests on :8500 to an etcd server listening on localhost:2379:
:8500
localhost:2379
go install github.com/coreos/cetcd/cmd/cetcd cetcd -etcd localhost:2379 -consuladdr 0.0.0.0:8500
Cross-checking consul emulation with a native consul server on 127.0.0.1:8501:
127.0.0.1:8501
cetcd -etcd localhost:2379 -consuladdr 0.0.0.0:8500 -oracle 127.0.0.1:8501
Simple testing with curl:
curl
goreman start curl -X PUT -d 'test' http://127.0.0.1:8500/v1/kv/testkey?flags=42 curl http://127.0.0.1:8500/v1/kv/testkey
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
cetcd
A consul “personality” for etcd. Point a consul client at cetcd to dispatch the operations on an etcd cluster.
Usage
Forwarding consul requests on
:8500to an etcd server listening onlocalhost:2379:Cross-checking consul emulation with a native consul server on
127.0.0.1:8501:Simple testing with
curl: