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.

543 questions
4
votes
1 answer

Kubernetes deployment on local Ubuntu cluster

I'm simply trying to install Kubernetes on local Ubuntu cluster using the original documentation.(http://kubernetes.io/docs/getting-started-guides/ubuntu/). The problem is that when i try the kube-up, after creating the binaries, i get the following…
4
votes
1 answer

Etcd cluster setup failure

I am trying to setup 3 node etcd cluster on Ubuntu machines as docker data store for networking. I successfully created etcd cluster using etcd docker image. Now when I am trying to replicate it, the steps fail on one node. Even after removing the…
pmann
  • 629
  • 2
  • 9
  • 17
4
votes
2 answers

How would you implement a working queue in etcd

I have just started to look into etcd and one of the use cases that is mentioned in the talks given by the creators, is a work queue system. But how would you actually implement this? Basic pattern would be something like this. 1 process…
PEtter
  • 806
  • 9
  • 22
4
votes
0 answers

etcd - Is it possible to setup pubsub using etcd?

I would like to setup etcd / redis to store configuration params, applicable to all the docker containers (right now, only within a single host). Would very much also need pub/sub mechanism - so that issuing certain commands is easy (like 'do git…
rsmoorthy
  • 2,284
  • 1
  • 24
  • 27
4
votes
1 answer

CoreOS, Fleet and Etcd2 fault tolerance

I have a 23 node cluster running CoreOS Stable 681.2.0 on AWS across 4 availability zones. All nodes are running etcd2 and flannel. Of the 23 nodes, 8 are dedicated etcd2 nodes, the rest are specifically designated as etcd2 proxies. Scheduled to the…
4
votes
1 answer

how do i do an atomic update with etcd

I am trying to understand what an 'atomic' update is in terms on etcd. When I think 'atomic', I think there is a 'before' and an 'after' (there isn't a during, and if the update fails, it is still 'before'). Here is an example: curl -s -XPUT…
Greg
  • 6,571
  • 2
  • 27
  • 39
4
votes
2 answers

How can I get the IP address of a unit started on a machine and use it in another unit with fleet?

I'm new to CoreOS and Docker and I'm facing with a problem with fleet. I have a standard unit launching a POSTGRES container and I would like to know the IP address of the machine where this unit is started. I have actually a cluster of 3 machines…
Paul Rey
  • 1,270
  • 1
  • 15
  • 26
4
votes
2 answers

Enable etcd service auto start in CoreOS via systemd

I have deployed a CoreOS standealone server with VMware image follow this guide to experience CoreOS. After deploy success, I found that my CoreOS only enable Docker service, without etcd and fleet service running. Although I know how to use…
Yang Lifan
  • 445
  • 6
  • 15
3
votes
1 answer

Can't connect to Milvus using Pymilvus inside docker. MilvusException: (code=2, message=Fail connecting to server on localhost:19530. Timeout)

I'm trying to connect to a Milvus server using Pymilvus. The server is up and running but I can't connect to it: MilvusException: (code=2, message=Fail connecting to server on localhost:19530. Timeout) I'm running both using docker compose: version:…
3
votes
0 answers

Rancher RKE2 Etcd Backup and Restore infinit loop

I have a Rancher (RKE2) cluster, where I want to restore the previous etcd snapshot. I followed the (official description) but it doesn't work for me. The process gets stuck in an infinite loop. On the other hand, I see a directory called etcd-old-…
AA AA
  • 31
  • 1
  • 2
3
votes
1 answer

Understanding etcd Leader election APIs

I am trying to understand various functions provided by etcd election api and what they mean semantically. In their official documentation very briefly mentioned about what each function does, and no examples are provided. For example we have…
3
votes
1 answer

What if log replication out-of-order of etcd raft?

I'm the newbie in etcd and have some confusion points about log replication: For example, leader send out {term:2,index:3} and then {term:2,index:4}, the majority respond in order too. But due to network delay, leader receive the responses out of…
3
votes
2 answers

etcd: Strong, linear and sequential consistency

I read the following on the front page in etcd: etcd is a strongly consistent, distributed key-value store that provides a reliable way to store data that needs to be accessed by a distributed system or cluster of machines. It gracefully handles…
Josh
  • 11,979
  • 17
  • 60
  • 96
3
votes
0 answers

Kubespray etcdctl: "Error: client: etcd cluster is unavailable or misconfigured; error #0: no route to host

Configuring Kubespray on 4 nodes, with 2(node1, node2) master nodes and installing etcd on node1 node2 node3, and node3-4 are worker nodes. I get this following error, fatal: [node1]: FAILED! => {"attempts": 8, "changed": false, "cmd":…
3
votes
2 answers

Simple leader election (Stateless leader election)

I am building an app in golang that I would like to be fault-tolerant. I looked at different algorithms like RAFT and Paxos and their implementations in golang (etcd's raft, hashicorp's raft), but I feel like they might be an overkill for my…
Aibek
  • 318
  • 3
  • 11