Creating etcd keys in-order

60 views
Skip to first unread message

Karthik Jayaraman

unread,
Feb 17, 2015, 1:01:06 PM2/17/15
to coreo...@googlegroups.com
I have a requirement where in I need to created etcd keys in order. I read in the etcd documentation (https://github.com/coreos/etcd/blob/master/Documentation/api.md) about automatically creating in-order keys by posting to a directory but it did not work.

I tried with  curl http://127.0.0.1:4001/v2/keys/queue -XPOST -d value=Job1 but the key is not created.

Any help appreciated.

- JK

Karthik Jayaraman

unread,
Feb 17, 2015, 1:36:28 PM2/17/15
to coreo...@googlegroups.com
curl -L -X POST http://127.0.0.1:4001/v2/keys/queue -d value="Hello"

Worked 

Duff Qiu

unread,
Mar 18, 2015, 10:59:48 PM3/18/15
to coreo...@googlegroups.com
Hi,

what is use case you need to use this in-order keys?
(BTW, it is not working well in 0.4.x.  you need to update to 2.0.x)

在 2015年2月18日星期三 UTC+8上午2:01:06,Karthik Jayaraman写道:
Reply all
Reply to author
Forward
0 new messages