• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kyuupichan / aiorpcX / 170 / 4
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 10 Apr 2019 11:30AM UTC
Files 7
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Apr 2019 11:28AM UTC coverage: 99.782% (-0.07%) from 99.855%
170.4

push

travis-ci

kyuupichan
SessionBase: move to a generalized cost metric

I've long wanted a more generic cost metric for requests than
simply bandwidth.  SomberNight's https://github.com/kyuupichan/electrumx/pull/785
prompted me to implement something reasonably generic and configurable.

Features:

- generalized res_usage metric with time decay
- bandwidth consumption contributes to the resource consumption
- derived classes can add to the resource usage count freely, such as
  on a per-request basis
- derived classes can provide an extra "soft" cost.  This could come
  from IP address bucketing, session grouping, or anything.  This is
  soft because it is not counted as part of the session's recorded
  resource usage, it is only temporarily added for the purpose of
  calculating the throttling rate.
- soft and hard limits.  Once resource usage (including the soft amount)
  hits the soft limit, request concurrency for the session begins to reduce
  and each request sleeps a little.  As resource usage grows to the hard
  limit, the sleeps increase and the concurrency reduces further.  If the
  hard limit is exceeded the session is closed
- most limits and parameters are configurable

1374 of 1377 relevant lines covered (99.78%)

1.0 hits per line

Source Files on job 170.4
  • Tree
  • List 0
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 97
  • Travis Job 170.4
  • 2884b946 on github
  • Prev Job for on master (#169.1)
  • Next Job for on master (#171.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc