JFrog's Helm Charts project offer a variety of Xray on Kubernetes deployment options, including different values and resources for Xray services and its third-party software (PostgreSQL and MongoDB).
To work properly and operate efficiently, during XRay's initialization process, it must execute a full database sync. For the sync to progress smoothly, your MongoDB must have sufficient resources available to it. Otherwise, the MongoDB server pod will not be able to function as it should and might even freeze (which might necessitate a restart of your MongoDB and Xray server pods). By default and per the official MongoDB chart, XRay's MongoDB sets itself up with the following resources values:
Note: The values above are insufficient to achieve successful DB syncing and, therefore, must be modified to the following values:
These values can be added by:
- Creating a mongodb-values.yaml file with the new values.
Upgrading the Helm chart: helm upgrade <helm_release_name> –install jfrog/xray -f mongodb-values.yaml