]> Sergey Matveev's repositories - public-inbox.git/commit
www: add configurable limiters
authorEric Wong <e@80x24.org>
Sat, 9 Jul 2016 03:18:35 +0000 (03:18 +0000)
committerEric Wong <e@80x24.org>
Sat, 9 Jul 2016 03:20:25 +0000 (03:20 +0000)
commit2c972f3d70caf99488fff300341450e48be6ebf1
tree066ba4c048b2fb64c271de1bc8096cdca46551ec
parentf89bd1444a595b569606679293d2d01b0b7a049e
www: add configurable limiters

Currently only for git-http-backend use, this allows limiting
the number of spawned processes per-inbox or by group, if there
are multiple large inboxes amidst a sea of small ones.

For example, a "big" repo limiter could be used for big inboxes:
which would be shared between multiple repos:

[limiter "big"]
max = 4
[publicinbox "git"]
address = git@vger.kernel.org
mainrepo = /path/to/git.git
; shared limiter with giant:
httpbackendmax = big
[publicinbox "giant"]
address = giant@project.org
mainrepo = /path/to/giant.git
; shared limiter with git:
httpbackendmax = big

; This is a tiny inbox, use the default limiter with 32 slots:
[publicinbox "meta"]
address = meta@public-inbox.org
mainrepo = /path/to/meta.git
MANIFEST
lib/PublicInbox/Config.pm
lib/PublicInbox/GitHTTPBackend.pm
lib/PublicInbox/Inbox.pm
lib/PublicInbox/Qspawn.pm
t/config.t
t/config_limiter.t [new file with mode: 0644]