[ Please keep conversation on the list. ]
Pratik wrote:
He is using it to throttle by CPU, but it's easy to make it use number of connections within a time window instead.
But I am more interested in restricting parallel connections rather than request/rate.
You can store simple +1/-1 values if you want to. The interesting part is that it packs the data into a small fixed-size chunk which makes appends atomic without flocking. However, Cache::FastMmap is very fast, so I'm not sure it would be worthwhile for you to change things.
- Perrin