Re: [PATCH] better systemd integration
От | Pavel Stehule |
---|---|
Тема | Re: [PATCH] better systemd integration |
Дата | |
Msg-id | CAFj8pRC_ZUixbsoaJpGTuaDZO_Tx-hq8OwPS7DvBSSGePBGwdQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [PATCH] better systemd integration (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: [PATCH] better systemd integration
|
Список | pgsql-hackers |
<p dir="ltr">Hi<p dir="ltr">> index 2e7f1d7..d983a50 100644<br /> > --- a/src/backend/postmaster/postmaster.c<br />> +++ b/src/backend/postmaster/postmaster.c<br /> > @@ -4933,6 +4933,11 @@ sigusr1_handler(SIGNAL_ARGS)<br /> > if (XLogArchivingAlways())<br /> > PgArchPID = pgarch_start();<br /> ><br /> > +#ifdef USE_SYSTEMD<br/> > + if (!EnableHotStandby)<br /> > + sd_notify(0, "READY=1");<br /> > +#endif<br/> > +<br /> > pmState = PM_RECOVERY;<br /> > }<br /> > if (CheckPostmasterSignal(PMSIGNAL_BEGIN_HOT_STANDBY)&&<br /> ><p dir="ltr">I cannot to check it this week, but thisshould to work. "ready" state for standby only mode starting when slave is able to get wal records or segments from server.I will test it next week.<p dir="ltr">regards<p dir="ltr">Pavel<br /><p dir="ltr">> > Default timeout on FCis 90 sec - it is should not to be enough for<br /> > > large servers with large shared buffers and high checkpointsegments. It<br /> > > should be mentioned in service file.<br /> ><br /> > Good point. I think weshould set TimeoutSec=0 in the suggested service file.<br /> ><br />
В списке pgsql-hackers по дате отправления: