Skip to main content

check-mem-size

Overview

Validates memory configuration by verifying the number of DIMMs and total memory size against expected values using dmidecode.

Command-Line Options

OptionTypeDefaultDescription
--dimmsIntegerAuto-detectedExpected number of memory DIMMs
--total-sizeIntegerAuto-detectedExpected total memory in GB
--timeoutInteger300Command execution timeout in seconds
--sinkStringdo_nothingTelemetry sink destination
--sink-optsMultiple-Sink-specific configuration
--verbose-outFlagFalseDisplay detailed output
--log-levelChoiceINFODEBUG, INFO, WARNING, ERROR, CRITICAL
--log-folderString/var/log/fb-monitoringLog directory
--heterogeneous-cluster-v1FlagFalseEnable heterogeneous cluster support

Exit Conditions

Exit CodeCondition
OK (0)Feature flag disabled (killswitch active)
OK (0)DIMMs and memory size match
WARN (1)dmidecode command failed
CRITICAL (2)Configuration mismatch

Usage Examples

check-mem-size - Auto-detect Configuration

health_checks check-processor check-mem-size \
--sink stdout \
[CLUSTER] \
app

check-mem-size - Explicit Configuration

health_checks check-processor check-mem-size \
--dimms 16 \
--total-size 512 \
--sink stdout \
[CLUSTER] \
app

check-mem-size - With Telemetry

health_checks check-processor check-mem-size \
--dimms 32 \
--total-size 1024 \
--sink otel \
--sink-opts "log_resource_attributes={'attr_1': 'value1'}" \
[CLUSTER] \
app

check-mem-size - Debug Mode

health_checks check-processor check-mem-size \
--dimms 24 \
--total-size 768 \
--log-level DEBUG \
--verbose-out \
--sink stdout \
[CLUSTER] \
app