Fix readiness to return 200 for read-only mode (#8728)

- We should declare a cluster ready even if read quorum is achieved (atleast n/2 disks are online).
- Such that, all the zones should have enough read quorum. Thus making the cluster ready for reads.
This commit is contained in:
Praveen raj Mani
2020-01-02 18:35:01 +05:30
committed by kannappanr
parent 97d799b9f0
commit 157721f694
2 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ import (
// ReadinessCheckHandler -- Checks if the quorum number of disks are available.
// For FS - Checks if the backend disk is available
// For Zones - Checks if all the zones have enough quorum
// For Zones - Checks if all the zones have enough read quorum
func ReadinessCheckHandler(w http.ResponseWriter, r *http.Request) {
ctx := newContext(r, w, "ReadinessCheckHandler")