Retrying after attempt 6, due to: org.postgresql.util.PSQLException: This connection has been closed.
And on the postgres side :
LOG: incomplete message from client
Having turned up the logging on postgres, it appears that the query
DELETE FROM fact_paths fp
WHERE fp.id in ( $some_ids ) AND NOT EXISTS (SELECT 1 FROM facts f
WHERE f.fact_path_id in ( $some_more_ids ) AND f.fact_path_id = fp.id
AND f.factset_id <> $26355)
is the cuplrit. This query is absolutely massive, with over 26000 id's specified as parameters - as soon as the query is executed, postgres returns incomplete message from client and drops the connection.
puppetdb is 2.3.7-1puppetlabs1
postgres is 9.3
Does anyone have any clues what's going on here ?
Thanks
Matt
DataCentred Limited registered in England and Wales no. 05611763 --Hey Matt,
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5fe3bad3-71a7-4348-a9ff-24d8a0284a1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
count | name
-------+-------------------------------------------------
1 | macaddress_qvb34470225_cd
1 | mtu_qbr2fb476b3_ff
1 | speed_qvbfa2ec4e3_15
1 | macaddress_qvo547572f9_14
1 | speed_qvo2e200191_c0
1 | mtu_qbr5eaffca5_fb
1 | macaddress_qbr0d4ed278_e3
1 | mtu_qvb8166a899_d1
1 | speed_qvb4e0d1069_13
1 | speed_qvbb2d99f31_86
1 | mtu_qbr65afa39a_9a
1 | speed_qvb336884d1_12
1 | speed_qvbf81c2831_4f
1 | mtu_qbr6d9cbcfc_82
1 | mtu_qbr441a8d9c_9e
1 | macaddress_qbrb400a4cf_a3
1 | mtu_qbr0bdbfadc_6a
1 | macaddress_qbrf9e0c7d4_7b
1 | macaddress_qbr3fe74368_2f
1 | macaddress_qvoc943cbcd_c3
1 | macaddress_qvb7e04f0db_2b
1 | mtu_qbrb42e4516_13
1 | macaddress_qvbefdec85e_5b
1 | mtu_qbr4575c981_84
1 | speed_qvbb771b00f_b4
1 | speed_qvo04f9f59c_d2
1 | macaddress_qbre4308db4_12
1 | speed_qvb997d8a21_72
1 | mtu_qvo699d2518_05
1 | mtu_qvbc5dcb18f_8b
1 | mtu_qvb766c608d_7a
1 | speed_qvo137786a3_ce
1 | speed_qvo02ec32fd_28
1 | macaddress_qbr3b6455da_f1
1 | mtu_qvb993a2dfb_5e
1 | macaddress_qvo14369bd5_d3
Is that enough of that query result ? We're an OpenStack public cloud provider, so in our cluster we have many network interfaces changing a lot when new virtual networks and machines are created - those are all related to virtual interfaces. Looks like the majority of that table is full of them.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/81433280-72d8-4c9d-983d-f4c5227eb1e6%40googlegroups.com.