Questions tagged [etcd]

etcd is a highly-available key value store for shared configuration and service discovery, inspired by Apache ZooKeeper and doozer.

etcd is a highly-available key value store for shared configuration and service discovery, inspired by Apache ZooKeeper and doozer, with a focus on being:

  • Simple: curl'able user facing API (HTTP+JSON)
  • Secure: optional SSL client cert authentication
  • Fast: benchmarked 1000s of writes/s per instance
  • Reliable: properly distributed using Raft

etcd is written in Go and uses the Raft consensus algorithm to manage a highly-available replicated log.

426 questions
44
votes
4 answers

Using etcd as primary store/database?

Can etcd be used as reliable database replacement? Since it is distributed and stores key/value pairs in a persistent way, it would be a great alternative nosql database. In addition, it has a great API. Can someone explain why this is not a thing?
Plus Ultra
  • 762
  • 1
  • 6
  • 15
18
votes
1 answer

Automatic self-configuration of an etcd cluster as a Docker swarm service

I want to find a way to deploy an etcd cluster as a Docker Swarm service that would automatically configure itself without any interaction. Basically, I think of something in spirit of this command: docker service create --name etcd --replicas 3…
drdaeman
  • 9,968
  • 6
  • 53
  • 103
18
votes
3 answers

How to configure dynamic properties while using spring boot?

I'm planning to use Spring Boot for my assignment. Its a typical server application with connection to database. I know I can use Spring Configuration to externalize my properties e.g. db connection details. But I also have other dynamic properties…
eton dolittle
  • 201
  • 1
  • 2
  • 4
18
votes
2 answers

Why bother with service discovery when message oriented middleware does the job?

I get the problem that etcd/consul/$whatever are trying to solve. Service consumers need to talk to service providers, a hugely fluid distributed system needs a mechanism to marry the two. However, the problem of "where do service consumers go with…
Susan Barr
  • 181
  • 4
15
votes
1 answer

docker-swarm and docker-compose how to dynamically add nodes and have them resolvable by the services

I have been playing with docker-compose and have cobbled together a project from the docker hub website. One thing that eludes me is how I can scale individual services up (by adding more instances) AND have existing instances somehow made aware of…
bryan hunt
  • 584
  • 3
  • 19
14
votes
2 answers

Hazelcast (Java) and ETCD (golang) differences/similarities?

Now we building a realtime analytics system and it should be highly distributed. We plan to use distributed locks and counters to ensure data consistency, and we need a some kind of distributed map to know which client is connected to which…
The Architect
  • 605
  • 8
  • 19
13
votes
4 answers

How to access kubernetes keys in etcd

Question How to get the Kubernetes related keys from etcd? Tried to list keys in etcd but could not see related keys. Also where is etcdctl installed? $ etcdctl bash: etcdctl: command not found.. $ sudo netstat -tnlp Active Internet connections…
mon
  • 8,766
  • 4
  • 52
  • 87
13
votes
1 answer

Is it safe to use etcd across multiple data centers?

Is it safe to use etcd across multiple data centers? As it expose etcd port to public internet. Do I have to use client certificates in this case or etcd has some sort of authification?
Alex Yusupov
  • 866
  • 1
  • 8
  • 12
10
votes
3 answers

how do I get etcd values into my systemd service on coreOS?

I have two services A and B. A sets a value in etcd as it's being started, say the public IP address which it gets from an environment file: ExecStartPost=/usr/bin/etcdctl set /A_ADDR $COREOS_PUBLIC_IPV4 B needs that value as it starts up, as well…
Mike Dewar
  • 10,293
  • 13
  • 46
  • 59
9
votes
2 answers

etcdctl throws Error: context deadline exceeded error

I'm trying to create a one node etcd cluster on AWS using coreos cloud-config. I have created a Route53 recordset with value etcd.uday.com which has a alias to the ELB which points to the ec2 instance. Etcd is running successfully but when I run the…
Uday Vishwakarma
  • 322
  • 5
  • 14
9
votes
3 answers

Systemd string escaping

If I run this command /bin/bash -c 'while true;do /usr/bin/etcdctl set my-container "{\"host\": \"1\", \"port\": $(/usr/bin/docker port my-container 5000 | cut -d":" -f2)}" --ttl 60;sleep 45;done' I get back from etcd what I expect {"host":"1",…
MParker
  • 305
  • 2
  • 3
  • 9
8
votes
1 answer

minikube : not able to connect a locally deployed nginx service

I have installed minikube on my ubuntu 16.04 machine and have started a cluster, with a message "Kubernetes is available at https://192.168.99.100:443" Next, I deployed nginx service with the following command > kubectl.sh run my-nginx…
soupybionics
  • 3,510
  • 3
  • 23
  • 38
8
votes
1 answer

Flannel and docker don't start

I'm trying to set up a kubernetes cluster on 2 nodes , centos 7.1 using this guide. However when I attempt to start the services on the minion like so: for SERVICES in kube-proxy kubelet docker flanneld; do systemctl restart $SERVICES …
Jonathan
  • 8,558
  • 3
  • 46
  • 70
8
votes
3 answers

How to run an etcd cluster among pod replicas?

I have a pod/service running an application that consumes etcd as a synchronization system and datastore. I want to run etcd within the pod, such that all of the replicas form a coherent cluster. In other words, so the application in replica #1 can…
bk0
  • 1,100
  • 8
  • 12
8
votes
1 answer

Unable to discover docker containers

I am following this tutorial for service discovery http://jasonwilder.com/blog/2014/07/15/docker-service-discovery Briefly: I created an etcd host running at x.y.z.d:4001 docker run -d --name etcd -p 4001:4001 -p 7001:7001 coreos/etcd Created a…
user_mda
  • 12,733
  • 17
  • 62
  • 111
1
2 3
28 29