carbonapi icon indicating copy to clipboard operation
carbonapi copied to clipboard

[FR] lbMethod , preferred server

Open gbin2265 opened this issue 1 year ago • 2 comments

Hello,

Currently, the options are broadcast and roundrobin as load-balancing method. Can an option be provided similar to roundrobin but in the order of the servers as specified in the config? It will always take the first server (preferred), and if it does not respond, it will going to the second and then the third...

The 2nd and 3rd servers are only as fallback servers if there are issues with the first one. They fallback servers do not have the same performance as the 1st."

regards, Geert

gbin2265 avatar Dec 07 '24 12:12 gbin2265

Wouldn't it be better to use broadcast then?

Hipska avatar Feb 19 '25 14:02 Hipska

When you do a broadcast, you're sending a query to all the carbon servers.

Why do we need to wait if the first one can give an answer quickly?

The second and third carbon servers are only there as failovers, in case there's a problem with the first (fast) carbon server.

gbin2265 avatar Apr 09 '25 20:04 gbin2265