Browse Source
Make credential store use current active filer for HA
Make credential store use current active filer for HA
Update FilerEtcStore to use a function that returns the current active filer instead of a fixed address, enabling high availability. Changes: - Add SetFilerAddressFunc() method to FilerEtcStore - Store uses filerAddressFunc instead of fixed filerGrpcAddress - withFilerClient() calls the function to get current active filer - Keep SetFilerClient() for backward compatibility (marked deprecated) - Update S3ApiServer to pass FilerClient.GetCurrentFiler to store Benefits: - Credential store now uses currently active/healthy filer - Automatic failover when filer becomes unavailable - True HA for credential operations - Backward compatible with old SetFilerClient interface This addresses the credential store limitation - no longer pinned to first filer, uses FilerClient's tracked current active filer.pull/7550/head
5 changed files with 67 additions and 16 deletions
-
4weed/credential/filer_etc/filer_etc_identity.go
-
6weed/credential/filer_etc/filer_etc_policy.go
-
33weed/credential/filer_etc/filer_etc_store.go
-
29weed/s3api/auth_credentials.go
-
11weed/s3api/s3api_server.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue