diff options
| author | chrislu <chris.lu@gmail.com> | 2024-08-21 10:55:39 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-08-21 10:55:39 -0700 |
| commit | 6ce27affa4c16dfbfaf84391d3e1f5ee1bc67175 (patch) | |
| tree | c7036f92335ca9fe25ebfc6123cf394ea29c5217 | |
| parent | b3696024d118fd13aff0fc5e94010ee3d17d4dc9 (diff) | |
| download | seaweedfs-6ce27affa4c16dfbfaf84391d3e1f5ee1bc67175.tar.xz seaweedfs-6ce27affa4c16dfbfaf84391d3e1f5ee1bc67175.zip | |
also use `/healthz` for most consistent health check
| -rw-r--r-- | weed/s3api/s3api_server.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/s3api/s3api_server.go b/weed/s3api/s3api_server.go index e0517ffb7..8c2c4f8f3 100644 --- a/weed/s3api/s3api_server.go +++ b/weed/s3api/s3api_server.go @@ -19,9 +19,9 @@ import ( "github.com/seaweedfs/seaweedfs/weed/s3api/s3err" "github.com/seaweedfs/seaweedfs/weed/security" "github.com/seaweedfs/seaweedfs/weed/util" - "google.golang.org/grpc" util_http "github.com/seaweedfs/seaweedfs/weed/util/http" util_http_client "github.com/seaweedfs/seaweedfs/weed/util/http/client" + "google.golang.org/grpc" ) type S3ApiServerOption struct { @@ -111,6 +111,7 @@ func (s3a *S3ApiServer) registerRouter(router *mux.Router) { // Readiness Probe apiRouter.Methods(http.MethodGet).Path("/status").HandlerFunc(s3a.StatusHandler) + apiRouter.Methods(http.MethodGet).Path("/healthz").HandlerFunc(s3a.StatusHandler) apiRouter.Methods(http.MethodOptions).HandlerFunc( func(w http.ResponseWriter, r *http.Request) { |
