If you ever have it that the connection to puppet-db is refused or you find the daemon died.
Even if trawling through the puppetdb logs reveal nothing.
It might be that PuppetDB is running out of heap? Check
/var/log/puppetdb for the presence of the file 'puppetdb-oom.hprof' for an indication
that this is happening.
You may find the following to help.