Just for my reference, this is how I setup etcd on my ubuntu 12.04.


$ curl 'http://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz' > go1.2.1.linux-amd64.tar.gz

$ tar zxvf go1.2.1.linux-amd64.tar.gz

$ tail -3 ~/.bashrc
export GOROOT=~/go
export GOBIN=~/go/bin
export PATH=$PATH:~/go/bin

$ go version
go version go1.2.1 linux/amd64

$ git clone https://github.com/coreos/etcd

$ cd etcd

$ ./build

# Blink your eyes and the build is done. :)
# Golang is too good. Other than Apache Mesos,
# etcd is the only piece of software which has
# a dead-easy setup process.

$ ./bin/etcd

$ curl -L http://127.0.0.1:4001/v2/keys/mykey
{"errorCode":100,"message":"Key not found","cause":"/mykey","index":1}

$ curl -L http://127.0.0.1:4001/v2/keys/mykey -XPUT -d value="this is awesome"
{"action":"set","node":{"key":"/mykey","value":"this is awesome","modifiedIndex":2, "createdIndex":2}}

$ curl -L http://127.0.0.1:4001/v2/keys/mykey
{"action":"get","node":{"key":"/mykey","value":"this is awesome","modifiedIndex":2,"createdIndex":2}}

$ httperf --hog --server=127.0.0.1 --port=4002  --uri="/v2/keys/foo?value=test" --method=PUT --num-conn=500 --num-call=500 --rate=100

# The above load test produces 3100 updates per second.

The full api is explained here.