From: Koichi S. <koi...@gm...> - 2013-08-19 02:26:25
|
gtm_ctl handles -m option in the same way as pg_ctl. With -m i, it sends SIGQUIT to the target GTM process. Unfortunately, this signal can be blocked (and is actually blocked in some of GTM situation). This is very similar to the other background and I suspect gtm standby is in such a situation. Gtm_ctl keeps checking if pid file exists for a while (default is 60sec and you can specify this value with -t option of gtm_ctl. Could you try to give larger value for -t option? At present, gtm_ctl checks if gtm.pid is available but not check if the process is alive. Checking if the process is alive, not gtm.pid file, will be more straightforward. Please understand that the current GTM implementation is very similar to pg_ctl and I don't think we have to change this code. Any more input to this? --- Koichi Suzuki 2013/8/12 Tomonari Katsumata <t.k...@gm...> > Hi, > > I found a odd behavior with gtm_standby(gtm_sby). > When the network to gtm_master is broken, gtm_ctl couldn't stop gtm_sby > even if I add an option "-m i". > > I simulates the situation with iptables command. > (gtm_sby access to gtm_master via eth1) > # iptables -I INPUT -i eth1 -j DROP > # iptables -I OUTPUT -o eth1 -j DROP > > And then, I start and stop immediately with these commands. > $ gtm_ctl -D <gtm_sby-PATH> -Z gtm start > $ gtm_ctl -D <gtm_sby-PATH> -Z gtm stop -m i > > The last command left below message. > ------- > waiting for server to shut > down............................................................... failed > gtm_ctl: server does not shut down > -------- > > But actually gtm_sby has stoped while the last command. > > In my opinion, stopping with "-m i" should stop gtm_sby immediately. > Because vanilla-PostgreSQL do so. > > Should we resolve this problem? > > regards, > -------- > NTT Software Corporation > Tomonari Katsumata > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > > |