v0.2.0-rc3
Pre-release
Pre-release
This release sees a variety of bug fixes and new features that should get us close to a final 0.2.0 release. There have also been a few minor adjustments to the v2 API in this release to solve problems people were seeing.
etcd
- New leader election module (see https://github.com/coreos/etcd#leader-election)
- Documentation added for the lock module (see https://github.com/coreos/etcd#lock)
- Flags added to adjust heartbeat and election timeouts
- Remove the PrevValue field from the Node object (see http://thread.gmane.org/gmane.comp.distributed.etcd/56)
- Add a dir parameter for explicitly creating, updating and deleting directories (see #349)
- Dashboard module had a variety of bug fixes
- Added directory TTL API documentation
etcdctl
etcdctl --debug
dumps the cluster peers to ease debuggingetcdctl ls --recursive
prints out the key space recursively nowetcdctl --peers
is parsed identically to the etcd flag
Getting Started
CoreOS / Docker
To run it it in a docker container on CoreOS:
docker run -i -t -p 4002:4001 coreos/etcd
curl -L http://127.0.0.1:4002/v2/keys/mykey -XPUT -d value="this is awesome"
curl -L http://127.0.0.1:4002/v2/keys/mykey
OS X
To get started on OSX run the following in a terminal:
curl -L https://github.com/coreos/etcd/releases/download/v0.2.0-rc3/etcd-v0.2.0-rc3-Darwin-x86_64.tar.gz -o etcd-v0.2.0-rc3-Darwin-x86_64.tar.gz
tar xzvf etcd-v0.2.0-rc3-Darwin-x86_64.tar.gz
cd etcd-v0.2.0-rc3-Darwin-x86_64
./etcd
Open another terminal:
# Press enter to background etcd
./etcdctl set mykey "this is awesome"
./etcdctl get mykey