Debugging
Debug your production environment
1. Create a debugging branch
- Create a branch and add debugging content throughout the code.
- Push the branch to your VCS.
2. Retrieve helm
values
- Retrieve the
helm
values of your production cluster:
3. Modify the values
Apply a specific version of a diracx package
- Edit the values.yaml
file, such as:
...
diracx:
pythonModulesToInstall:
- git+https://github.com/<YOUR_REPO>/diracx.git@<BRANCH_NAME>#&subdirectory=diracx-routers
- git+https://github.com/<YOUR_REPO>/diracx.git@<BRANCH_NAME>#&subdirectory=diracx-db
- ...
...
In this example, you install a specific version of diracx-routers
and diracx-db
.
Apply a specific version of diracx-web
- Edit the values.yaml
file, such as:
4. Upgrade the cluster
- Once done, upgrade your cluster:
A new pod will be deployed and will contain your changes.
5. Iteratively debug your environment
- Once your branch deployed, if you need to update your code, then make your changes, push the code to your VCS in the same branch, and restart the rollout of the pod.