- 論壇徽章:
- 0
|
windows下用slony-I 做雙機備份.
所有的配置都做好了, 現(xiàn)在就是需要啟動 slon.exe 后臺進程.
文檔中說,win下跟linux下有些許不同,
不用master和slave機器上都 啟動 slon進程,
而是用單一的 slon進程來管理, 通過添加 引擎來實現(xiàn)...
- 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.
復(fù)制代碼
但是文檔中對 win下如何啟動slon進程沒有過多描述,
slon.exe 的在線幫助如下:
- C:\Program Files\PostgreSQL\8.2\bin>slon --help
- 2006-12-27 19:16:48 中國標(biāo)準(zhǔn)時間 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>
復(fù)制代碼
很明顯,用 slon -addengine [servicename] <configfile> 來添加引擎,
但是 <configfile> 怎么寫啊?
誰有這方面的資料, 謝謝幫忙... |
|