Questions tagged [leader-election]

55 questions
0
votes
0 answers

Delayed Unauthorized responses from AKS

We use AKS's kube-apiserver for leader-election from a VM, external to k8s cluster but in the same VNET. We use a k8s client from the client-go package. The client tries to get/update the lease object every 2 sec. We observe occasional failures…
0
votes
0 answers

Leader election kubernetes

I have 2 application with 3 replica each deployed within the same namespace in same cluster. Both of these application can have singleton instance running at a time. Can i use leader elector kubernetes in any way to have one leader for each…
0
votes
1 answer

Restrict servers to participate in leader election on a zookeeper path /election

I have multiple k8 pods where my service is running where the logic to make a connection to zookeeper (running as a cluster) and then participate in leader election on path /election is present. Now, because there are multiple apps : App1, App2,…
0
votes
1 answer

Spring Cloud Kubernetes Leader Election Not Updating When Pod is Killed

I have a Spring Boot web application, packaged as a container that I am deploying in Kubernetes. The application has a scheduled job that must run periodically only on one of the running pods. I'm using Spring Cloud Kubernetes's leader election…
Mark
  • 4,970
  • 5
  • 42
  • 66
0
votes
1 answer

Multiple Consensus in Simple Paxos

How does a group have multiple consensus at different point of time. Let me try to explain the question with an example. Let us assume that there 10 process, among them 3 are proposers(P0, P1, P2). A Paxos round concludes and every body agrees on…
0
votes
1 answer

Is Etcd membership tied to IP Address?

Will etcd work with a Config that has different IPs for different nodes? Say node A and node B see different IPs for node C as C.1 and C2. respectively and they can't be interchanged i.e Node A can't use C.2. Would this work?
Marit
  • 1
0
votes
1 answer

Leader election process with Timestamps

trying to create a leader election protocol with my specifications but i fail. Let me describe more detail. Let's imagine we have 5 nodes A,B,C,D,E and let's also assume that all of them compete to solve a puzzle something like PoW but for our…
0
votes
0 answers

Maintain status history leader or not leader using Apache Curator ( or any other way)

Background Deployment system uses minimum 2 instances to deploy job. But only 1 is needed. So planning to use Apache Curator for leader election. So only 1 instance will launch the job and other will be blocked Problem Default behavior is the that…
0
votes
1 answer

Make .net core service run in multiple machines to make it highly available but do the work by only one node

I have a .Net core application that consists of some background tasks (hosted services) and WEB APIs (which controls and get statuses of those background tasks). Other applications (e.g. clients) communicate with this service through these WEB API…
0
votes
0 answers

Is it possible to sync leader election in two containers in the same pod?

I have one pod with 2 containers 1 . default scheduler containers: - name: my-scheduler image: >- build-releases-external.common.cdn.repositories.cloud.sap/google_containers/kube-scheduler-amd64:v1.19.0-rc.1 command: …
user1365697
  • 5,819
  • 15
  • 60
  • 96
0
votes
1 answer

what happens when a node elected as leader goes down?

My question is related to Leader Latch recipe. I want to use Leader latch to implement a mutex for a scheduled job. There's another requirement: if the scheduled job starts at 1:00:00.005 PM and ends at 1:00:00.015 PM then no other job/instance…
tzortzik
  • 4,993
  • 9
  • 57
  • 88
0
votes
0 answers

How to build a scene where zookeeper jitter cause to multiple rapid elections

I have two program, fc(failoverController) and web(webServer). And I use zookeeper to ensure high reliability. fc will deploy on two server, two fc use apache-curator LeaderSelector to elect master, and the master will start a web process, and web…
0
votes
1 answer

Can this leader election algorithm for two-nodes system with tolerating of the link failure be considered a major innovation?

My team and I invented a method to solve the split-brain problem of the two-node system in engineering and published a paper. We are not a well-known team, but we think this method is very new and practical, so we want to discuss it with everyone to…
F Jiang
  • 1
  • 2
0
votes
1 answer

How to use Consul to perform synchronize task on one machine at a time?

I have a system with 10 machines where I need to perform a certain task on each machine one by one in synchronize order. Basically only one machine should do that task at a particular time. We already use Consul for some other purpose but I was…
user1950349
  • 4,738
  • 19
  • 67
  • 119
0
votes
1 answer

NetLogo : getting turtles to direct-link if a condition is true

I'm trying to implement YOYO leader election algorithm in netlogo first step in this algorithm is to orient links ( direct link )from the minimum to the maximumbut between neighbors only ! I tried the command [`ask turtles with [ [ who ] of self…
Safa Lola
  • 1
  • 1