getServerLoads

Get all servers.

Waiting up to timeout for servers to be added. This handles the case where a daemon have been spawned in the background.

@trusted
Tuple!(HostLoad[], "online", HostLoad[], "unused")
getServerLoads
(
ref Miniorm db
,
const Host[] filterBy_
,
const Duration timeout
,
const Duration maxAge
)

Parameters

db Miniorm

database instance to read from

filterBy_ Host[]

only hosts that are among these are added to the online set

timeout Duration

max time to wait for the online set to contain at least one host

maxAge Duration

only hosts that have a status newer than this is added to online

Meta