July 2005
Intermediate to advanced
1032 pages
27h 10m
English
Slony makes it very easy to change the topology of a replication cluster. Let's say that business at the Boomtown store is really booming (ouch) and you want to lighten the load on the boomtown server. boomtown pulls replication data from springfield and forwards the data to snoozeville. You can tell snoozeville to pull its replication data directly from springfield by re-subscribing snoozeville and specifying a different provider (see Listing 24.9).
#!/usr/local/bin/slonik
# File: changeProvider.sk
include <preamble.sk>;
subscribe set ( id = 1, provider = @SPRINGFIELD,
receiver = @SNOOZEVILLE, forward = no );
|
That's nearly identical to the previous ...
Read now
Unlock full access