-
Notifications
You must be signed in to change notification settings - Fork 0
Mirror of https://gerrit.wikimedia.org/g/mediawiki/services/poolcounter. Refer to https://www.mediawiki.org/wiki/Developer_account
License
wikimedia/mediawiki-services-poolcounter
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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.
About
Mirror of https://gerrit.wikimedia.org/g/mediawiki/services/poolcounter. Refer to https://www.mediawiki.org/wiki/Developer_account