pool: Do not reconnect to storage node in maintenance mode #278
Labels
No labels
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#278
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by @dkirillov
Storage node in a maintenance mode returns errors on object storage operations. Pool component will switch connection to different storage node eventually.
Expected Behavior
During connection re-balance, storage node in a maintenance mode will not be marked as healthy node.
Current Behavior
Storage in maintenance mode is marked as healthy and connection is re-established with this node.
Possible Solution
As far as I understand, maintenance mode is explicitly declared in a node info status. If so, then we can check it during healthcheck.
Steps to Reproduce (for bugs)
Context
Maintenance mode is a complemetely valid state for node and it should not dramatically affect performance when SDK Pool tries to work with node in this state.
Regression
No
Your Environment
SDK Pool from frostfs-s3-gw v0.31.0-rc.2 (
1b67ab9608
)