I've been blaming AWS Aurora Postgres for intermittent cases where our logs are showing the method used to instantiate our DB connection via
PDO::__construct() to take multiple seconds, even tens of seconds sometimes. However, adding the
PDO::ATTR_TIMEOUT setting in the constructor's additional params array with a small value made no difference: I still get occasional long init times. I also tried adding this right before the PDO instantiation, per another forum post I saw, but also with no effect:
$this-dbh = new PDO(/* bunch of args */);
Just wondering if anyone else ever had a problem like this, and if so -- and more importantly -- a solution?
PS: That's all that method does: set a few variables from the global config array, then use them to instantiate PDO.