The probe application includes built-in mechanisms for self-maintenance:
Node.js Auto-updates
If the current Node.js version does not match the WANTED_VERSION (currently v22.22.3), the probe attempts to update itself using nvm (Node Version Manager).
Requirements for auto-update:
- Memory: At least 250 MB of available memory.
- Disk Space: At least 1000 MB of available disk space.
- Environment: Must not be a hardware probe (detected via
GP_HOST_HW or hardware inspection).
If resources are insufficient, the probe will log a warning and skip the update.
Entrypoint Updates
The probe monitors its own entrypoint script. If a change is detected between the current entrypoint and the version in the package, the probe will replace the current script with a command to copy the new version and then restart the process.