From: Koichi S. <koi...@gm...> - 2013-03-07 11:45:35
|
Hello, I'm pleased to publish C version of pgxc_ctl in progress in https://github.com/postgres-xc/postgres-xc/tree/pgxc_ctl/contrib/pgxc_ctl This needs much more improvement but it just works fine for basic configuration, without slave, so far. Good features to this version are: 1. Maintains configuration file in bash. 2. More flexible environment, including log. 3. If possible, shell scripts including scp and ssh will be done in parallel. C version is quite faster than bash version mainly for this reason. 4. Log is improved much. Now more than one pgxc_ctl session can write to the same log and the log will be controlled by advisory lock so that log lines will not be messed up by another pgxc_ctl session. 5. Utilities to clean up gtm (unregister failed node) is now integrated into pgxc_ctl. pgxc_monitor was also integrate so that pgxc_ctl can run without any other modules in contrib. Because original bash version was more than 5k lines, C version is even bigger. I think I should maintain bash version as well for people to learn what to do in various XC cluster operation. Further, now Abbas is implementing node addition/removal which should be supported by pgxc_ctl as well. Sorry, no document is available so far. It is very similar to bash version but be a bit different. After I do necessary work, I'd like to add this to contrib. Regards; ---------- Koichi Suzuki |