Skip to content

about the connection load balancing #99

@1261385937

Description

@1261385937

hi ,
I found the load balancing of connections to slave is std::shuffle , this may be cause all connections to just one slave node if has a small number of slaves.
Actually, it happeds to me. I use sentinel mode , one master and two slaves. Master has 5 connections , slave 1 has 10 connections and slave 2 has no connections . slave 1 node cpu cost is high , but slave 2 node cpu is so free.

it is better if use round robin for valid slave nodes ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions