Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!
Starting with MOSK 25.2, the MOSK documentation set will cover all product layers, including MOSK management (formerly MCC). This means everything you need will be in one place. The separate MCC documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.
Tune StackLight for long-term log retention¶
Available since MCC 2.24.0 (Cluster release 14.0.0)
If you plan to switch to a long log retention period (months), tune StackLight
by increasing the cluster.max_shards_per_node
limit. This configuration
enables OpenSearch to successfully accept new logs and prevents the
maximum open shards
error.
To tune StackLight for long-term log retention:
Increase the
cluster.max_shards_per_node
limit:logging: extraConfig: cluster.max_shards_per_node: 10000
If you increase the limit to more than double the default value, increase the memory and CPU limit for
opensearch
to preventMaxHeapUsage
warnings.For example, if you set
cluster.max_shards_per_node: 20000
, configure theresources:opensearch:limits
section as follows:resources: opensearch: limits: cpu: "8" memory: "45Gi"