8 Haziran 2020 Pazartesi

Readiness

Giriş
Açıklaması şöyle.
The readiness state determines whether the application is ready to accept and serve requests. For any reasons if the application is not ready to serve requests, then it should declare itself as busy until its back to serving requests. If the Readiness state is unready, the manager (orchestration engine) should not route traffic to this instance. For example, in case of Kubernetes, If the readiness probe fails, the endpoints controller removes the Pod’s IP address from the endpoints of all Services that match the Pod. The default state of readiness before the initial delay is Failure. If a Container does not provide a readiness probe, the default state is Success.

Spring boot has introduced the readiness states with the help of ReadinessState. The available states which could be maintained are.

- ACCEPTING_TRAFFIC: when the application is ready to receive traffic. This is the default value.
REFUSING_TRAFFIC: when s not willing to receive traffic.

Hiç yorum yok:

Yorum Gönder