Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Distributed Autotuning with PostgreSQL

Project Description

For all of this, you’ll need authentication details for a PostgreSQL server, in a bunch of environment variables. Perhaps you might set those like this:

export TUNE_DBHOST=tuning-database.example.com
export TUNE_DBNAME=disttune
export TUNE_DBUSER=sampleuse
export TUNE_DBPASSWORD=Yeizah2u

Create jobs for an autotuning run:

python -m disttune enum exampletune.Run

The dotted name exampletune.Run is actually the name of the class that’s driving the run.

Actually run jobs:

python -m disttune run --stop -v --filter run_class=exampletune.Run "it_type~list"

The filter expression can be used to limit what jobs are run.

Run interactive Python shell with database connection:

python -m disttune console
>>> .q select * from run;
Release History

Release History

This version
History Node

2015.1

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