Tools / Apache HertzBeat Interview Questions
Why does HertzBeat use consistent hashing for job assignment?
Consistent hashing lets the manager assign monitoring jobs across the collector cluster so that when a collector is added or removed, only a small proportion of jobs need to move to a different node — not the entire job set.
With a naive hashing scheme (like a plain modulo over collector count), adding or removing even one collector could reshuffle almost every job's assignment, causing a large spike of reconnections and data gaps. Consistent hashing keeps that churn minimal, which matters most in a cluster that scales up and down or experiences occasional node failures.
More Related questions...