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
0
votes
1 answer

Golang etcd watcher panic

All! I've the code below: package main import ( "log" "github.com/coreos/go-etcd/etcd" ) func main() { client := etcd.NewClient( []string{ "http://172.20.20.10:2379", …
Alexander Vasilenko
  • 706
  • 1
  • 11
  • 24
0
votes
1 answer

etcd: change resilient recursive wait

etcd allows clients to safely wait for changes of individual k/v nodes, by supplying a last known index of a node to the wait command. etcd also allows to wait ("recursively") for any changes to child nodes under a certain parent node. Now, the…
oakad
  • 6,945
  • 1
  • 22
  • 31
0
votes
1 answer

How to change the hostname of a container before cretion?

I am looking for a way to change the hostname information in a container. I am running an application that looks for a specific host to connect to another container. Is there a way to achieve this from the Dockerfile?
user_mda
  • 18,148
  • 27
  • 82
  • 145
0
votes
0 answers

spring-cloud-etcd configure multiple clients for discovery

I am having difficulty configuring multiple clients for auto-discovery/configuration using spring-cloud-etcd. Is there common configuration I should be enabling to perform this? The goal is to assess how etcd can be used in place of Netflix OSS…
dmfrey
  • 1,230
  • 1
  • 17
  • 33
0
votes
1 answer

How does one install etcd in a cluster?

Newbie w/ etcd/zookeeper type services ... I'm not quite sure how to handle cluster installation for etcd. Should the service be installed on each client or a group of independent servers? I ask because if I'm on a client, how would I query the…
sdot257
  • 10,046
  • 26
  • 88
  • 122
0
votes
1 answer

How can I setup CoreOS cluster on across multiple data centers?

I thought it is as simple as using public ip instead of private ip so that the machines can see each other, but that is not the case. Here is my cloud-config file, which is very basic. #cloud-config coreos: etcd: # generate a new token for…
Khanetor
  • 11,595
  • 8
  • 40
  • 76
0
votes
1 answer

CoreOS/etcd cluster minimum hosts

I'm evaluating a strategy for implementing docker for a small company with 2 servers. We wanted to have them both working as a cluster, to load balance the work, but to work as a fail-safe for one another in case of failure. From what I understand,…
Alexandre Gomes
  • 393
  • 4
  • 12
0
votes
2 answers

how to pause/resume a fleet unit?

I have a vagrant coreos cluster setup in my computer. I could submit, load, start, stop, unload, destroy fleet units in different hosts in cluster. Are there fleetctl commands for pause/resume a unit that already been loaded/started? If there is no…
satheeshram
  • 161
  • 1
  • 9
0
votes
1 answer

Is there a fast way to reinitialize or clear etcd keyspace for testing?

I am writing a small ruby application that utilizes etcd via the etcd-ruby gem to coordinate activities across a cluster. One problem I have is how to write specs for it. My first approach was to attempt to mock out the etcd calls at the client…
gtd
  • 16,956
  • 6
  • 49
  • 65
0
votes
1 answer

Kubernetes scheduler: watch of *api.Pod ended with error: unexpected end of JSON input

Yesterday service worked fine. But today when i checked service's state i saw: Mar 11 14:03:16 coreos-1 systemd[1]: scheduler.service: main process exited, code=exited, status=2/INVALIDARGUMENT Mar 11 14:03:16 coreos-1 systemd[1]: Unit…
0
votes
1 answer

Can't use etcd in the cluster

I've read this guide about cluster architectures, and I've built a development cluster with this config: All machines are on the same subnet. One machine acts like a master, and runs etcd only (IP address is…
Matteo Pacini
  • 21,796
  • 7
  • 67
  • 74
0
votes
1 answer

etcd api on CoreOS - setting ip address configurations remotely

I am attempting to use etcd's remote api to configure a coreOS box remotely with static values like ip address, dns resolve address, gateway, ect. I theory I should be able to file something like: curl -X PUT…
Erik
  • 1
0
votes
1 answer

What's the semantics of ETCD_PEER_KEY_FILE in cloud-config

An etcd instance can have multiple peers. According to the CoreOS doc I can configure a parameter ETCD_PEER_KEY_FILE=/path/to/peers.key. If I interpret this parameter according to its name, I can put the private keys of a peer (or more peer_s_) in…
Steffo
  • 622
  • 5
  • 6
0
votes
1 answer

Confd error: ERROR 501: All the given peers are not reachable (Tried to connect to each peer twice and failed) [0]

While debugging I realised that confd doesn't pick up the keys and my journal looks like this: Sep 18 18:31:50 ip-10-171-54-76.ec2.internal docker[24891]: [nginx] waiting for confd to refresh nginx.conf Sep 18 18:31:56 ip-10-171-54-76.ec2.internal…
user1441287
  • 401
  • 2
  • 13
0
votes
1 answer

convert the binary data to readable text

when using the ETCD dashboard, we find a binary string like var _deps_js =…
user3231931
  • 331
  • 1
  • 2
  • 8