class PowerdnsStatusService (View source)

Constants

private PROBE_PORT

Bounds on the blocking autoprimary probes, which run serially on page load.

private PROBE_TIMEOUT_SECONDS

private PROBE_BUDGET_SECONDS

Methods

__construct(LoggerInterface|null $logger = null)

No description

bool
isApiEnabled()

No description

array
getServerStatus()

No description

array
checkSlaveServerStatus(array $slaveServers)

No description

string|null
probeHost(string $host)

An autoprimary has to serve AXFR, which is TCP-only, so a TCP connect is a fair liveness proxy here even though it would not be for a resolver.

Details

__construct(LoggerInterface|null $logger = null)

No description

Parameters

LoggerInterface|null $logger

bool isApiEnabled()

No description

Return Value

bool

array getServerStatus()

No description

Return Value

array

array checkSlaveServerStatus(array $slaveServers)

No description

Parameters

array $slaveServers

Return Value

array

protected string|null probeHost(string $host)

An autoprimary has to serve AXFR, which is TCP-only, so a TCP connect is a fair liveness proxy here even though it would not be for a resolver.

Parameters

string $host

Return Value

string|null

The connection error, or null when the host answered.