mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[revert this] added some logging again
This commit is contained in:
parent
7ae3e3978e
commit
d21e8080e1
1 changed files with 4 additions and 0 deletions
|
@ -21,8 +21,12 @@ export function systemHasInsufficientMemory(
|
|||
cloud: undefined | CloudSetup,
|
||||
logger: Logger
|
||||
): boolean {
|
||||
logger.fatal(`isCloudEnabled ${Boolean(cloud?.isCloudEnabled)}`);
|
||||
logger.fatal(`hasDeploymentId ${Boolean(cloud?.deploymentId)}`);
|
||||
logger.fatal(`has cloud ${Boolean(cloud?.isCloudEnabled || cloud?.deploymentId)}`);
|
||||
if (!Boolean(cloud?.isCloudEnabled || cloud?.deploymentId)) return false;
|
||||
const limit = readMemoryLimit();
|
||||
logger.fatal(`memory limit from cgroups ${limit}`);
|
||||
logger.info(`Memory limit from cgroup (in bytes): ${limit}`);
|
||||
return limit < MIN_CLOUD_OS_MEM_BYTES;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue