Skip to content

Longer retry timeout #392

@borekb

Description

@borekb

Currently, the startup scripts tries to connect to MySQL for 30 seconds:

$maxTries = 10;
do {
$mysql = new mysqli($host, $user, $pass, '', $port, $socket);
if ($mysql->connect_error) {
fwrite($stderr, "\n" . 'MySQL Connection Error: (' . $mysql->connect_errno . ') ' . $mysql->connect_error . "\n");
--$maxTries;
if ($maxTries <= 0) {
exit(1);
}
sleep(3);
}
} while ($mysql->connect_error);

On older hardware, that's not always enough, especially if MySQL starts from a clean state (no volume created).

It would be great to have a way to configure the timeout, or maybe just prolong it: it would not affect the majority of users and those with slower hardware would just wait a bit longer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions