Slackbot
01/24/2023, 6:45 PMbastelfreak
01/24/2023, 6:47 PMbastelfreak
01/24/2023, 6:47 PMcdenneen
01/24/2023, 6:47 PMsh -c test $(find /etc/puppetlabs/code-staging -not -user pe-puppet -print | wc -l) -eq 0 ... any way to either speed these finds up or make them less disruptive?cdenneen
01/24/2023, 6:47 PMcdenneen
01/24/2023, 6:47 PMbastelfreak
01/24/2023, 6:48 PMbastelfreak
01/24/2023, 6:48 PMcdenneen
01/24/2023, 6:50 PMbastelfreak
01/24/2023, 6:51 PMbastelfreak
01/24/2023, 6:51 PMbastelfreak
01/24/2023, 6:51 PMcsharpsteen
01/24/2023, 7:12 PMpe-puppet causes File Sync to fail, which causes pe-puppetserver to shutdown and then fail to start up until it can enforce the content of the code directory (File Sync is very insistent about making a strong guarantee that an environment is not in a half-deployed state).
However, due to roving gangs of sysadmins, files in the codedir have a habit of ending up with root ownership. That exec allows puppet to fix any of those instances --- which means they get auto-solved before a human notices Puppet Server is having a problem.
Usually, if that exec times out it is a sign that some environment content needs to be pruned or the node needs more I/O throughput.bastelfreak
01/24/2023, 7:16 PMcsharpsteen
01/24/2023, 7:18 PMcsharpsteen
01/24/2023, 7:21 PMfind is far from the only place where PE does a walk over the /etc/puppetlabs/code-staging directory tree --- it just happens to be one with a visible timeout.csharpsteen
01/24/2023, 7:22 PMbastelfreak
01/24/2023, 7:22 PMbastelfreak
01/24/2023, 7:23 PMcsharpsteen
01/24/2023, 7:26 PMbastelfreak
01/24/2023, 7:27 PMcsharpsteen
01/24/2023, 7:28 PMfind is producing high I/O wait, then there are many other mechanisms that are going to produce the same pressure.bastelfreak
01/24/2023, 7:28 PMbastelfreak
01/24/2023, 7:29 PMcdenneen
01/25/2023, 2:58 AMcdenneen
01/25/2023, 3:00 AMbastelfreak
01/25/2023, 7:44 AMsimonhoenscheid
01/27/2023, 10:09 AM