Merge lp:~stub/launchpad/replication into lp:launchpad
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email: mp+78914@code.launchpad.net |
Commit message
[no-qa] [r=stub] Slony-I 2.0 compatibility and migration script for staging tests.
Description of the change
= Summary =
We are migrating to Slony-I 2.0
== Proposed fix ==
Generate slonik scripts to do migration.
Migration process:
• Run generate_
• Inspect mig_* slonik scripts for correctness
• Put SSO into read-only mode (no db access or standalone db?).
• Shutdown pgbouncer
• Confirm no connections to any databases apart from slony
• slonik mig_uninstall.sk
• Shutdown slon daemons
• Shutdown PostgreSQL on all servers
• Update slon packages on all servers
• Startup PostgreSQL on all servers
• Start slon daemons on wildcherry
• slonik mig_rebuild.sk
• Startup pgbouncer
• Restore SSO server
== Pre-implementation notes ==
== Implementation details ==
== Tests ==
Testing of generated scripts done locally, next up staging.
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
database/
database/
database/
./database/
13: '_pythonpath' imported but unused
./database/
188: local variable 'origin_node' is assigned to but never used
13: '_pythonpath' imported but unused
19: 'config' imported but unused
65: E261 at least two spaces before inline comment
121: E231 missing whitespace after ','
159: E225 missing whitespace around operator
176: E225 missing whitespace around operator
Run-once script