Over the past few months we've seen an increases in aborted connections to databases:
Error connecting to 10.64.48.15: Can't connect to MySQL server on '10.64.48.15' (4)
They appear in surges from multiple app servers to mulitple db slaves with no apparent direct link to shard or wiki or mariadb version. Note that this is aborts occurring during initial TCP connection phase, not disconnects during query execution.
Mediawiki core databases classes try to set DB connection timeout to 3 seconds, DatabaseMysqli with MYSQLI_OPT_CONNECT_TIMEOUT and DatabaseMysql with php's ini mysql.connect_timeout. It isn't clear whether HHVM respects either of these.
HHVM php_mysql_do_connect_on_link() defaults to mysqlExtension::ConnectTimeout which is 1 second. That is just a little fragile during traffic spikes or near-outage conditions.
Update: The underlying issue seems to have been resolved by augmenting the hhvm.mysql.connect_timout parameter, but we may want to compile it in as default.