diff options
author | Eric Wong <e@80x24.org> | 2016-07-09 03:18:35 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-09 03:20:25 +0000 |
commit | 2c972f3d70caf99488fff300341450e48be6ebf1 (patch) | |
tree | 066ba4c048b2fb64c271de1bc8096cdca46551ec /t/config.t | |
parent | f89bd1444a595b569606679293d2d01b0b7a049e (diff) | |
download | public-inbox-2c972f3d70caf99488fff300341450e48be6ebf1.tar.gz |
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
Diffstat (limited to 't/config.t')
-rw-r--r-- | t/config.t | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -30,6 +30,7 @@ my $tmpdir = tempdir('pi-config-XXXXXX', TMPDIR => 1, CLEANUP => 1); 'url' => 'http://example.com/meta', -primary_address => 'meta@public-inbox.org', 'name' => 'meta', + -pi_config => $cfg, }, "lookup matches expected output"); is($cfg->lookup('blah@example.com'), undef, @@ -45,6 +46,7 @@ my $tmpdir = tempdir('pi-config-XXXXXX', TMPDIR => 1, CLEANUP => 1); 'domain' => 'public-inbox.org', 'name' => 'test', 'url' => 'http://example.com/test', + -pi_config => $cfg, }, "lookup matches expected output for test"); } |