Details
-
Bug
-
Resolution: Fixed
-
Critical
-
7.0.0, 7.0.2
-
None
-
Untriaged
-
1
-
Unknown
Description
In 7.0, Projector added support for throttling mutations based on available system memory. This seems like difficult behavior to get right when the memory information you have is accurate and mostly up-to-date, but certainly becomes impossible if the memory measurements being taken are not giving the information you think they're giving.
This happens in memory limited containers. Memory limits are typically expressed by the memory.limit_in_bytes file in the appropriate cgroup and interpreting the information found there isn't straightforward and it's not something that sigar does at all currently.
Currently sigar returns system memory. If the container in which the Couchbase Server indexer node is running is not memory limited, the memory numbers returned by sigar should accurately reflect system total memory and (slightly out of date) accurate free, buffers and cached memory. If the container is memory limited, the numbers from sigar aren't meaningful for the container.
Attachments
Issue Links
- relates to
-
MB-48247 Account for container memory and cpu limits in plasma storage
- Closed
-
MB-49382 [CBSE][sigar] Indexer CPU and memory monitoring doesn't work correctly in CPU limited containers
- Closed
-
MB-47591 Incorrect cgroup resource detection (core/memory) when running in Container / K8S
- Closed
- links to