45a4057f60
Using the newly provided state store methods, we periodically emit usage metrics from the servers. We decided to emit these metrics from all servers, not just the leader, because that means we do not have to care about leader election flapping causing metrics turbulence, and it seems reasonable for each server to emit its own view of the state, even if they should always converge rapidly. |
||
---|---|---|
.. | ||
usagemetrics.go | ||
usagemetrics_oss.go | ||
usagemetrics_oss_test.go | ||
usagemetrics_test.go |