This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Help us improve Python packaging - Donate today!
Project Description

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/
Release History

Release History

0.5

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
van.resumelb-0.5.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Jul 24, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting