Image service considerations

Updated at:

1. Container health check methods

When you add an online service application for a custom image service, you must provide a health check method. The image container must support the specified method.

Supported methods include HTTP and shell scripts.

  • HTTP: The service provides a /health API on the external service port of the container. A return value of 200 indicates that the service is normal. Any other value indicates a failure.

  • SHELL: This method performs a health check using a script that you create. The script typically checks the return value of a service API for validation. A checkhealth.sh file must be in the root directory. When sh checkhealth.sh is executed, a return value of 200 indicates that the service is normal. Any other value indicates a failure.

2. Parameter retrieval

  • You can configure environment variables on the page to pass parameters.

  • If you configure input and output parameters in Data Development, you can retrieve them using the ZERG_APP_PARAM environment variable.

3. Image service deployment logs

  • For log output during service deployment, direct the logs to stdout/stderr. This displays the logs on the deployment log page to help with troubleshooting. You should also control the log volume.