youzan / ZanRedisDB

Yet another distributed fault-tolerant key-value database Compatible with Redis written in Golang.
MIT License
388 stars 60 forks source link

add slow limiter to refuse slow write in sm while apply slowing #64

Closed absolute8511 closed 4 years ago

codecov[bot] commented 4 years ago

Codecov Report

Merging #64 into master will increase coverage by 0.07%. The diff coverage is 65.39%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #64      +/-   ##
==========================================
+ Coverage   46.45%   46.52%   +0.07%     
==========================================
  Files         159      160       +1     
  Lines       25277    25487     +210     
==========================================
+ Hits        11742    11858     +116     
- Misses      11715    11798      +83     
- Partials     1820     1831      +11     
Impacted Files Coverage Δ
node/node_cmd_reg.go 94.91% <0.00%> (-4.20%) :arrow_down:
node/namespace.go 38.55% <6.66%> (+1.05%) :arrow_up:
node/raft.go 39.90% <33.33%> (-0.03%) :arrow_down:
node/node.go 31.29% <43.75%> (-0.14%) :arrow_down:
node/slow_limiter.go 66.66% <66.66%> (ø)
server/server.go 57.86% <83.33%> (-2.14%) :arrow_down:
common/dynamic_conf.go 100.00% <100.00%> (ø)
node/state_machine.go 28.29% <100.00%> (+1.85%) :arrow_up:
server/httpapi.go 25.76% <100.00%> (-0.22%) :arrow_down:
server/queue.go 92.96% <100.00%> (+0.34%) :arrow_up:
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5f69e8b...9658e65. Read the comment docs.