# Readiness Health Check

The sample readiness probe is provided by the `ready.sh` script that is configured in the deployment object.

              ...
              readinessProbe:
                exec:
                  command:
                  - ready.sh
                  - '-spawnTimeout'
                  - '4'
                  - '-responseTimeout'
                  - '4'
                  - '--'
                  - '-server'
                  - tcp://localhost:${EMS_INTERNAL_PORT}
                  - '-user'
                  - 'probeuser'
                  - '-password'
                  - 'probepassword'
                initialDelaySeconds: 1
                timeoutSeconds: 5
                periodSeconds: 6
              ...

Here the cluster will perform a periodic readiness check based on the `ready.sh` script and the corresponding parameters.

The `-spawnTimeout` and `-responseTimeout` parameters are internal timeouts used by the probe that should be set relative to the probe's `periodSeconds` setting ).

The above example matches the EMS server sample configuration. Just as with the liveness health check, it should be tailored to your target configuration using the same parameters.

Copyright © Cloud Software Group, Inc. All rights reserved.