Questions tagged [leader]

The leader is a software application in a distributed system which provides the global coordination necessary for servers to perform transactions safely and to ensure clients are not oversubscribed.

A file server, time server, or central lock coordinator server can be known as a leader. A combination of central locks on remote procedure calls and explicit locks on file server or time server processes may be necessary to ensure data integrity in a distributed system.

References

44 questions
2
votes
1 answer

In raft leader election,how live leader response to RequestVote rpc from a candidate?

i am reading the raft paper. To the requestvote rpc, Receiver implementation: 1. Reply false if term < currentTerm (§5.1) 2. If votedFor is null or candidateId, and candidate’s log is at least as up-to-date as receiver’s log, grant vote…
zhu wang
  • 139
  • 5
2
votes
0 answers

Consul back up strategy (service discovery, consensus)

I am interested in creating backups (snapshots) for data being stored in consul. I am using it as my backend storage for my service. I found few tools like consulate, consul-backup which take snapshots for the data which consul stores on the disk.…
psbits
  • 1,787
  • 5
  • 19
  • 34
2
votes
0 answers

Elixir Leader Election?

I am building a project in which I need a way to elect a leader between a group of processes. When the leader fails, a new leader must be elected. This must support processes which are in different nodes. After a couple of web searches I did not…
jbernardo
  • 155
  • 1
  • 3
  • 9
2
votes
1 answer

How can pods within a kubernetes replica set discover and talk to each other without the kubernetes API?

I have an application that uses raft to elect a leader out of multiple instances. These instances use the gossip protocol, so it just needs to know another instance to discover the rest. I plan to run each instance as a kubernetes pod, with…
F21
  • 32,163
  • 26
  • 99
  • 170
2
votes
1 answer

XML - XSL - FO XML Dot Leaders Mutliple Occurances

I have hundreds of lines of text, being formatted in an XML doc that I need to output to a PDF and display as: LEFT TEXT.......................................................................RIGHT TEXT I discovered how to do this in the XSL, but it…
BSailor
  • 21
  • 3
1
vote
1 answer

How does etcd propagate writes to non-leader members?

From both the visualisation on the raft.github.io page and The Secret Lives of Data shows that write requests in Raft must be sent through the leader. When I am running etcd, which uses Raft, I can send a etcdctl put request to any of the etcd…
dayuloli
  • 16,205
  • 16
  • 71
  • 126
1
vote
1 answer

Leader dots separating columns in an HTML table

I want to create a table of contents in three columns with dots connecting them: song.title......... author........... page I tried to follow the example given by catchmyfame in Create leading dots in CSS but it's not working the way I expect. In…
A. P. Damien
  • 376
  • 2
  • 10
1
vote
1 answer

redshift leader node using up 100% of disk

we have a 50 node redshift cluster, and we run vacuum periodically. and currently we are running a pipeline where we are moving some data onto S3 and deleting it from redshift. after about 2 weeks of processing. our disk usage on 49 nodes ( except…
bhavin
  • 122
  • 7
1
vote
2 answers

Does raft leader deal with client requests synchronously or asynchronously?

In raft, the leader receipt requests, escape log entries, send RPCs, apply to state machine and finally response the clients. this process need some time,so ,how to deal with next requests?refuse them ?
zhu wang
  • 139
  • 5
1
vote
1 answer

MPI Ring Leader Election returns segmentation fault

This is what I am trying to achieve. Blue is the message. Yellow is when the specific node changes the leader known to it. Green is the final election of each node. The code seems correct to me but it's always stuck inside the while loop no matter…
quelotic
  • 64
  • 10
1
vote
1 answer

Akka don't elect existing worker node as seed node, once the seed node is killed

I am a newbie with akka. Having a very simple configuration of one seed node and one non-seed node. Please find below, sequence of operation :- Seed node started :- val pConfig =…
mogli
  • 1,549
  • 4
  • 29
  • 57
1
vote
1 answer

Can I remap the "," command in VIM before using it as the leader key?

I like the way of working with "," as a leader key, but don't want to lose the original "," functionality, because it is very powerful with the "f" and "t" command. Is there a way I can remap the original "," key, maybe invoking some internal low…
Simon Lischka
  • 155
  • 12
1
vote
1 answer

Solr 4.7.2 not recovering - "ClusterState says we are the leader, but locally we don't think so"

One morning my Solr server broke with this message below, it didn't recover on its own - had to restart it - Is that a 4.7.2 known issue? My topology is very simple: single Solr with a single shard replica, and an embedded ZK (-zkrun). Could it be…
Guy
  • 11
  • 1
  • 6
1
vote
1 answer

How to have different machines running different task?

I have an application in which I have five different tasks. Each of those five tasks runs at different period of time in a particular day. I will be deploying this application in 4 different machines. In general I was running all those five…
john
  • 11,311
  • 40
  • 131
  • 251
1
vote
2 answers

Copying current Vim buffer into clipboard

I am trying to copy Vim's buffer to clipboard and I did the following: :!cat %|pbcopy # It works perfectly Then I tried to map this with the leader key (its my first attempt to map something, so please excuse if something silly is found). :map…
Jikku Jose
  • 18,306
  • 11
  • 41
  • 61