Skip to content

Commit

Permalink
pingserver-rs: add rusage metrics (#319)
Browse files Browse the repository at this point in the history
Adds rusage metrics to pingserver to address #314

Replaces the current metrics library with one being developed for
twemcache-rs. It removes overhead of a hash lookup for each metric
increment by using a fixed indexing from the metric enum into a
vec of channels.

On a test host this is giving ~4-5% gain in peak throughput.
  • Loading branch information
brayniac authored Feb 4, 2021
1 parent 4799016 commit ced7d4e
Show file tree
Hide file tree
Showing 11 changed files with 209 additions and 327 deletions.
156 changes: 20 additions & 136 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/server/pingserver-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ harness = false
boring = "1.0.3"
chrono = "0.4.11"
config = { path = "../../rust/config" }
libc = "0.2.83"
log = { version = "0.4.8", features = ["std"] }
mio = { version = "0.7.0", features = ["os-poll", "tcp"] }
rustcommon-buffer = { git = "https://github.com/twitter/rustcommon" }
rustcommon-logger = { git = "https://github.com/twitter/rustcommon" }
rustcommon-metrics = { git = "https://github.com/twitter/rustcommon" }
rustcommon-fastmetrics = { git = "https://github.com/twitter/rustcommon" }
slab = "0.4.2"
strum = "0.20.0"
strum_macros = "0.20.1"
Expand Down
Loading

0 comments on commit ced7d4e

Please sign in to comment.