- 论坛徽章:
- 0
|
windows下用slony-I 做双机备份.
所有的配置都做好了, 现在就是需要启动 slon.exe 后台进程.
文档中说,win下跟linux下有些许不同,
不用master和slave机器上都 启动 slon进程,
而是用单一的 slon进程来管理, 通过添加 引擎来实现...
- On Windows™ when running as a service things are slightly different. One slon service is installed, and a seperate configuration file registered for each node to be serviced by that machine. The main service then manages the individual slons itself.
复制代码
但是文档中对 win下如何启动slon进程没有过多描述,
slon.exe 的在线帮助如下:
- C:\Program Files\PostgreSQL\8.2\bin>slon --help
- 2006-12-27 19:16:48 中国标准时间 CONFIG main: slon version 1.2.1 starting up
- usage: slon [options] clustername conninfo
- Options:
- -d <debuglevel> verbosity of logging (1..4)
- -s <milliseconds> SYNC check interval (default 10000)
- -t <milliseconds> SYNC interval timeout (default 60000)
- -o <milliseconds> desired subscriber SYNC processing time
- -g <num> maximum SYNC group size (default 6)
- -c <num> how often to vacuum in cleanup cycles
- -p <filename> slon pid file
- -f <filename> slon configuration file
- -a <directory> directory to store SYNC archive files
- -x <command> program to run after writing archive file
- -q <num> Terminate when this node reaches # of SYNCs
- -r <num> # of syncs for -q option
- -l <interval> this node should lag providers by this interval
- Windows service registration:
- slon -regservice [servicename]
- slon -unregservice [servicename]
- slon -listengines [servicename]
- slon -addengine [servicename] <configfile>
- slon -delengine [servicename] <configfile>
复制代码
很明显,用 slon -addengine [servicename] <configfile> 来添加引擎,
但是 <configfile> 怎么写啊?
谁有这方面的资料, 谢谢帮忙... |
|