Browse Source
Support multiple filers for S3 and IAM servers with automatic failover
Support multiple filers for S3 and IAM servers with automatic failover
This change adds support for multiple filer addresses in the 'weed s3' and 'weed iam' commands, enabling high availability through automatic failover. Key changes: - Updated S3ApiServerOption.Filer to Filers ([]pb.ServerAddress) - Updated IamServerOption.Filer to Filers ([]pb.ServerAddress) - Modified -filer flag to accept comma-separated addresses - Added getFilerAddress() helper methods for backward compatibility - Updated all filer client calls to support multiple addresses - Uses pb.WithOneOfGrpcFilerClients for automatic failover Usage: weed s3 -filer=localhost:8888,localhost:8889 weed iam -filer=localhost:8888,localhost:8889 The underlying FilerClient already supported multiple filers with health tracking and automatic failover - this change exposes that capability through the command-line interface.pull/7550/head
12 changed files with 83 additions and 44 deletions
-
20weed/command/iam.go
-
23weed/command/s3.go
-
21weed/iamapi/iamapi_server.go
-
7weed/s3api/auth_credentials.go
-
8weed/s3api/filer_multipart.go
-
6weed/s3api/s3api_bucket_handlers.go
-
3weed/s3api/s3api_circuit_breaker.go
-
2weed/s3api/s3api_handlers.go
-
2weed/s3api/s3api_object_handlers.go
-
2weed/s3api/s3api_object_handlers_multipart.go
-
2weed/s3api/s3api_object_handlers_postpolicy.go
-
31weed/s3api/s3api_server.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue