nodevoto icon indicating copy to clipboard operation
nodevoto copied to clipboard

Question: How does load-balancing work for voting service?

Open qusc opened this issue 4 years ago • 1 comments

I'm trying to understand how load balancing works for the votes service within this example. As voting data is stored in memory for the voting nodes, how is it synchronized with other nodes? Or stated differently: how are votes for the same poll that are handled by different instances of the voting service on different nodes being counted once the poll is evaluated? Is there a mechanism that makes sure that voting requests for any given poll always are handled by the same node? If not, how could it be built? Any hint would be much appreciated.

qusc avatar Nov 24 '21 09:11 qusc

For me, it doesn't work. With linkerd 2.11.4 I've scaled vote-bot to 35 instances and voting to 3 instances. As a result I see all the payload at the single voting pod. chrome_7Hyblq2itd g

prog76 avatar Aug 05 '22 09:08 prog76