<div dir="ltr">Hi Peter,<div><br></div><div>That's great, I've always wanted an Erlang implementation of etcd :-)</div><div><br></div><div>That said, what are your reasons for developing this when we already have etcd?</div><div><br></div><div>cheers,</div><div>Chandru</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 May 2016 at 11:48, Peter Morgan <span dir="ltr"><<a href="mailto:peter.james.morgan@gmail.com" target="_blank">peter.james.morgan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello -<br>
<br>
Tansu is a distributed key/value store designed to maintain configuration and other data that must be highly available. It uses the Raft consensus algorithm for leadership and distribution of state amongst its members. Node discovery is via mDNS and will automatically form a mesh of nodes sharing the same environment. It provides a simple REST based KV and lock API.<br>
<br>
Tansu is available as a Docker image - starting a 5 node cluster is as simple as:<br>
<br>
for i in {1..5}; do<br>
    docker run \<br>
        --name tansu-$(printf %03d $i) \<br>
        -d shortishly/tansu;<br>
done<br>
<br>
Setting a value with a TTL of 10 seconds on a random node:<br>
<br>
curl \<br>
    -H "Content-Type: application/json" \<br>
    -H "ttl: 10" \<br>
    -i \<br>
    http://$(docker inspect \<br>
        --format={{.NetworkSettings.IPAddress}} \<br>
        tansu-$(printf %03d $[1 + $[RANDOM % 5]]))/api/keys/hello \<br>
    --data-binary '{"ephemeral": true}'<br>
<br>
Getting a value from a random node:<br>
<br>
curl \<br>
    -i \<br>
    -s \<br>
    http://$(docker inspect \<br>
            --format={{.NetworkSettings.IPAddress}} \<br>
            tansu-$(printf %03d $[1 + $[RANDOM % 5]]))/api/keys/hello<br>
<br>
Locks, event streams and more details are available at <a href="https://github.com/shortishly/tansu" rel="noreferrer" target="_blank">https://github.com/shortishly/tansu</a>.<br>
<br>
Thanks,<br>
Peter.<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>