| There were a lot of multi-day queries stuck in Postgres which cause Postgreql gone into maintenance mode. Like for pid 18987: 16398 | pe-puppetdb | 18987 | 16387 | pe-puppetdb | PostgreSQL JDBC Driver | 10.0.168.34 | | 58688 | 2022-10-12 01:01:40.424688+00 | 2022-10-12 01:22:43.228219+00 | 2022-10-12 01:22:43.228888+00 | 2022-10-12 01:22:43.228952+00 | Client | ClientRead | idle in transaction | 17902765 | 17896313 | insert into certnames (certname) values ($1) on conflict (certname) do update set deactivated=null, expired=null where (certnames.deactivated < $2 or certnames.expired < $3) 2022-10-06 23:40:32.795 UTC [db:pe-puppetdb,sess:633f59a0.4a2b,pid:18987,vtid:131/16035,tid:11303402] LOG: process 18987 still waiting for ShareLock on transaction 11303387 after 1000.085 ms 2022-10-06 23:40:32.840 UTC [db:pe-puppetdb,sess:633f59a0.4a2b,pid:18987,vtid:131/16035,tid:11303402] LOG: process 18987 acquired ShareLock on transaction 11303387 after 1045.411 ms 2022-10-12 01:02:49.273 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11320,tid:0] LOG: process 18987 still waiting for ShareLock on transaction 17880045 after 1000.109 ms 2022-10-12 01:02:53.733 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11320,tid:0] LOG: process 18987 acquired ShareLock on transaction 17880045 after 5459.988 ms 2022-10-12 01:04:55.270 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11383,tid:0] LOG: process 18987 still waiting for ShareLock on transaction 17881345 after 1000.071 ms 2022-10-12 01:04:58.734 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11383,tid:0] LOG: process 18987 acquired ShareLock on transaction 17881345 after 4464.075 ms 2022-10-12 01:06:40.901 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11442,tid:0] LOG: process 18987 still waiting for ShareLock on transaction 17882875 after 1000.073 ms 2022-10-12 01:07:22.328 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11442,tid:0] LOG: process 18987 acquired ShareLock on transaction 17882875 after 42427.311 ms 2022-10-12 01:08:33.497 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11553,tid:0] LOG: process 18987 still waiting for ShareLock on transaction 17884491 after 1000.185 ms 2022-10-12 01:08:36.558 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11553,tid:0] LOG: process 18987 acquired ShareLock on transaction 17884491 after 4061.484 ms 2022-10-12 01:10:34.212 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11612,tid:0] LOG: process 18987 still waiting for RowExclusiveLock on relation 17473 of database 16398 after 1000.052 ms at character 13 2022-10-12 01:10:39.878 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11612,tid:0] LOG: process 18987 acquired RowExclusiveLock on relation 17473 of database 16398 after 6665.157 ms at character 13 2022-10-12 01:20:29.989 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11950,tid:0] LOG: process 18987 still waiting for ShareLock on transaction 17898305 after 1000.116 ms 2022-10-12 01:20:41.309 UTC [db:pe-puppetdb,sess:634611f4.4a2b,pid:18987,vtid:245/11950,tid:0] LOG: process 18987 acquired ShareLock on transaction 17898305 after 12320.454 ms * Please see Zendesk Support tab for further comments and attachments. |