function _acquia_purge_diagnostics_capacity in Acquia Purge 7
Capacity.
Parameters
string $t: Name of the t() function to call.
AcquiaPurgeService $service: The Acquia Purge service.
Return value
array Associative array with the following elements:
- title: The name of the requirement.
- value: The current value (e.g., version, time, level, etc).
- description: The description of the requirement/status.
- severity:
- ACQUIA_PURGE_SEVLEVEL_INFO
- ACQUIA_PURGE_SEVLEVEL_OK
- ACQUIA_PURGE_SEVLEVEL_WARNING
- ACQUIA_PURGE_SEVLEVEL_ERROR <-- blocks Acquia Purge from executing!
1 string reference to '_acquia_purge_diagnostics_capacity'
File
- ./
acquia_purge.diagnostics.inc, line 873 - Diagnostic self-tests and reports that aim to prevent runtime misery.
Code
function _acquia_purge_diagnostics_capacity($t, $service) {
$capacity = $service
->capacity();
$maxitems = $capacity
->queueClaimsLimit();
$factor = $capacity
->httpRequestsFactor();
$test = array(
'title' => $t('Capacity'),
'severity' => ACQUIA_PURGE_SEVLEVEL_OK,
'value' => $t('@items items/batch, slowdown factor=@factorX', array(
'@items' => $maxitems,
'@factor' => $factor,
)),
);
return $test;
}