Troubleshooting Memory Leak Issue on Rancher 2.7.2+
This document (000021094) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Resolution
To resolve the memory leak problem, it is recommended to upgrade to Rancher 2.7.5, which contains a fix for this issue. If this is not possible, please proceed with the steps below as a workaround.
Step 1: Check Environment Variables
1.1. For the local cluster:
- Verify if the environment variable
CATTLE_REQUEST_CACHE_DISABLED
is set totrue
in the Rancher deployment of the local cluster.
1.2. For downstream clusters with high memory usage:
- Check the
cattle-cluster-agent
deployment of any downstream clusters experiencing high memory usage. - Confirm if the environment variable
CATTLE_REQUEST_CACHE_DISABLED
is set totrue
in thecattle-cluster-agent
deployment.
Step 2: Set Memory Limits on Deployments (if necessary). If the memory leak issue persists after adjusting the environment variables, you can try setting memory limits on the deployments as an additional measure. Here's how to do it:
2.1. For the local cluster:
- Access the Rancher deployment of the local cluster.
- Set the memory limit for the Rancher deployment to 2Gi.
2.2. For downstream clusters with high memory usage:
- Access the
cattle-cluster-agent
deployment of the affected downstream clusters. - Set the appropriate memory limit to 2Gi.
By following these steps, including checking and adjusting the environment variables, setting memory limits if necessary, and upgrading to Rancher 2.7.5, you can effectively address the memory leak issue in Rancher 2.7.2 - 2.7.4 deployments.
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021094
- Creation Date: 07-Jun-2023
- Modified Date:19-Jul-2023
-
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com