l.t.f.PGBouncerFixture(pgbouncer.fixture.PGBouncerFixture) : class documentation

Part of lp.testing.fixture View In Hierarchy

Inserts a controllable pgbouncer instance in front of PostgreSQL.

The pgbouncer proxy can be shutdown and restarted at will, simulating database outages and fastdowntime deployments.

Method __init__ Undocumented
Method setUp Undocumented
Method start Start PGBouncer, waiting for it to accept connections if neccesary.
Method _maybe_reconnect_stores Force Storm Stores to reconnect if they are registered.
def __init__(self):
Undocumented
def setUp(self):
Undocumented
def _maybe_reconnect_stores(self):
Force Storm Stores to reconnect if they are registered.

This is a noop if the Component Architecture is not loaded, as we are using a test layer that doesn't provide database connections.

def start(self, retries=20, sleep=0.5):
Start PGBouncer, waiting for it to accept connections if neccesary.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.