mirror of
https://github.com/pgsty/minio.git
synced 2026-10-07 18:25:58 +03:00
readiness returns error quickly if any of the set is down (#9662)
This PR adds a new configuration parameter which allows readiness check to respond within 10secs, this can be reduced to a lower value if necessary using ``` mc admin config set api ready_deadline=5s ``` or ``` export MINIO_API_READY_DEADLINE=5s ```
This commit is contained in:
@@ -56,7 +56,7 @@ func (p *posixDiskIDCheck) Close() error {
|
||||
}
|
||||
|
||||
func (p *posixDiskIDCheck) GetDiskID() (string, error) {
|
||||
return p.diskID, nil
|
||||
return p.storage.GetDiskID()
|
||||
}
|
||||
|
||||
func (p *posixDiskIDCheck) SetDiskID(id string) {
|
||||
|
||||
Reference in New Issue
Block a user