minio/cmd/gateway/s3
Anis Elleuch d4dcf1d722
metrics: Use StorageInfo() instead to have consistent info (#9006)
Metrics used to have its own code to calculate offline disks.
StorageInfo() was avoided because it is an expensive operation
by sending calls to all nodes.

To make metrics & server info share the same code, a new
argument `local` is added to StorageInfo() so it will only
query local disks when needed.

Metrics now calls StorageInfo() as server info handler does
but with the local flag set to false.

Co-authored-by: Praveen raj Mani <praveen@minio.io>
Co-authored-by: Harshavardhana <harsha@minio.io>
2020-02-20 09:21:33 +05:30
..
gateway-s3_test.go Update go mod with sem versions of our libraries (#7687) 2019-05-29 16:35:12 -07:00
gateway-s3-metadata_test.go Avoid using jsoniter, move to fastjson (#8063) 2019-08-19 08:35:52 -10:00
gateway-s3-metadata.go Avoid using fastjson parser pool, move back to jsoniter (#8190) 2019-09-06 04:21:27 +05:30
gateway-s3-sse.go Use const slashSeparator instead of "/" everywhere (#8028) 2019-08-06 12:08:58 -07:00
gateway-s3-utils.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
gateway-s3.go metrics: Use StorageInfo() instead to have consistent info (#9006) 2020-02-20 09:21:33 +05:30