1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
PoolCounter is a network daemon which provides mutex-like functionality,
with a limited wait queue length. If too many servers try to do the same
thing at the same time, the wait queue overflows and some configurable action
might be taken by subsequent clients, such as displaying an error message or
using a stale cache entry.
See <https://www.mediawiki.org/wiki/PoolCounter> for more details.
== Installation ==
You need libevent (libevent-dev on Debian-based systems).
$ make
$ sudo make install
There is no daemonize code, so you'll want to background it with something
like systemd.
=== Running tests ===
You will need to have pytest installed (python3-pytest on Debian-based
systems).
$ make test
If you want to test against an already built PoolCounter (like a packaged
version), you can set an environment variable:
$ POOLCOUNTERD=/usr/bin/poolcounterd pytest
To run the test suite as well as a Python linter to match what CI does, you
can use tox:
$ tox
== License ==
Released under the GPL v3, or any later version. See COPYING for more details.
|