-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
khepri_machine: Use
ra:key_metrics/2
instead of ra:member_overview/2
[Why] `ra:member_overview/2` is a very expensive call. [How] We just need the last index and the current term from the leader and `ra:key_metrics/2` provides this piece of information too. The difference is huge: in my benchmark, the query rate goes from 15 queries per second to 100k. This is in association with a related change in Ra; see rabbitmq/ra#462.
- Loading branch information
Showing
1 changed file
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters