Slony-I Administration

The PostgreSQL Global Development Group

Christopher Browne


1. Slony-I "Best Practices"

It is common for managers to have a desire to operate systems using some available, documented set of "best practices." Documenting that sort of thing is essential to ISO 9000, ISO 9001, and other sorts of organizational certifications.

It is worthwhile to preface a discussion of "best practices" by mentioning that each organization that uses Slony-I is unique, and there may be a need for local policies to reflect unique local operating characteristics. It is for that reason that Slony-I does not impose its own policies for such things as failover ; those will need to be determined based on the overall shape of your network, of your set of database servers, and of your usage patterns for those servers.

There are, however, a number of things that early adopters of Slony-I have discovered which can at least help to suggest the sorts of policies you might want to consider.

It may be worth considering turning the PostgreSQL fsync functionality off during the copying of data, as this will improve performance, and if the database "falls over" during the COPY_SET event, you will be restarting the copy of the whole replication set.