Chinaunix

标题: Windows版的 Slony-I, slon.exe的配置文件如何写? [打印本页]

作者: oringe    时间: 2006-12-27 19:20
标题: Windows版的 Slony-I, slon.exe的配置文件如何写?
windows下用slony-I 做双机备份.
所有的配置都做好了, 现在就是需要启动 slon.exe 后台进程.

文档中说,win下跟linux下有些许不同,
不用master和slave机器上都 启动 slon进程,
而是用单一的 slon进程来管理, 通过添加 引擎来实现...

  1. 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 的在线帮助如下:


  1. C:\Program Files\PostgreSQL\8.2\bin>slon --help
  2. 2006-12-27 19:16:48 中国标准时间 CONFIG main: slon version 1.2.1 starting up
  3. usage: slon [options] clustername conninfo

  4. Options:
  5.     -d <debuglevel>       verbosity of logging (1..4)
  6.     -s <milliseconds>     SYNC check interval (default 10000)
  7.     -t <milliseconds>     SYNC interval timeout (default 60000)
  8.     -o <milliseconds>     desired subscriber SYNC processing time
  9.     -g <num>              maximum SYNC group size (default 6)
  10.     -c <num>              how often to vacuum in cleanup cycles
  11.     -p <filename>         slon pid file
  12.     -f <filename>         slon configuration file
  13.     -a <directory>        directory to store SYNC archive files
  14.     -x <command>          program to run after writing archive file
  15.     -q <num>              Terminate when this node reaches # of SYNCs
  16.     -r <num>              # of syncs for -q option
  17.     -l <interval>         this node should lag providers by this interval

  18. Windows service registration:
  19. slon -regservice [servicename]
  20. slon -unregservice [servicename]
  21. slon -listengines [servicename]
  22. slon -addengine [servicename] <configfile>
  23. slon -delengine [servicename] <configfile>
复制代码


很明显,用 slon -addengine [servicename] <configfile> 来添加引擎,
但是 <configfile> 怎么写啊?

谁有这方面的资料, 谢谢帮忙...
作者: oringe    时间: 2007-01-10 20:33
这么些天,还是没有找到答案...
按照 enterpriseDB 官方网站上的资料,也没有试验成功.
最后按照跟 linux 下配置一样, 在每个server 运行一个 slon.exe 进程.
可以实现 双机主从热备了...

比较郁闷的是, slon.exe 需要一直开着, 而且没有 后台进程,
得始终让那个 cmd 的黑乎乎的窗口开着,
真是别扭.
作者: piper1    时间: 2007-05-23 09:30
楼主,能不能提供一下详细的方案,最近我也在搞这个,我的msn
sardingking@hotmail.com
作者: wst77535534    时间: 2007-07-31 16:07
偶最近也在搞,翻烂了E文网站终于搞定了,整理的资料拿出来共享
如下:
http://blog.csdn.net/iori13/archive/2007/07/31/1719380.aspx




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2