Pool for zc.resumelb to divide workers by version
This module contains a pool class which uses the classifier to route requests to multiple sub-pools of workers. Each sub-pool works like a normal zc.resumelb pool but only on workers of a single version.
The classifier will decide which of the sub-pools will serve the request by returning a tuple (version, classifier). This request will be served by a sub-pool containing only workers of a matching version.
Usage
At the current time, the only way is to monkey patch the zc.resumelb.lb.Pool class Like this:
>>> from van.resumelb import Pool >>> import zc.resumelb.lb >>> zc.resumelb.lb.Pool = Pool
WARNING: you must pass –single-version to the loadbalancer startup script. If you do not, all the workers will have a version of None.
In the future it should be possible to set the Pool class on the command line. The code to enable command-line overriding of the pool is awaiting merging at:
http://zope3.pov.lt/trac/browser/zc.resumelb/branches/jinty-external-pool/
Metadata
Release files for van.resumelb 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| van.resumelb-0.5.tar.gz | 3.9 kB | Without provenance | Details for van.resumelb-0.5.tar.gz |
Release files / van.resumelb-0.5.tar.gz
| Download URL | van.resumelb-0.5.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d381331718080b396486c01782f0c8514c663ef2129df100aa5396c8914d311
|
|
BLAKE2b-256 checksum How to use checksums |
34a67acdd5c5a62b46211c2705f85a360ea16da6527da400599f414c7d0d0433
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for van.resumelb 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.