pool: Immediately mark maintenance node as unhealthy #283

Closed
opened 2024-10-11 10:07:15 +00:00 by alexvanin · 0 comments
Owner

Expected Behavior

When active client receives maintenance mode error from object service, immediately switch to another healthy client in next request.

Current Behavior

Maintenance mode error considered as any other network error and increments threshold counter by one.

Possible Solution

Increment threshold variable to a threshold limit value, so it overflows the limit.

Steps to Reproduce (for bugs)

  1. Put node in a maintenance mode
  2. Send object.Put request with SDK Pool component
  3. Send one more object.Put request

Context

This is similar to #278
Maintenance mode error is not an accident error, so we can rely on this status and switch client.
Otherwise we are having performance penalty when SDK Client has to decline multiple requests until threshold value has been reached or rebalance interval has been passed.

Regression

No

Your Environment

SDK Pool from frostfs-s3-gw v0.31.0-rc.2 (1b67ab9608)

## Expected Behavior When active client receives maintenance mode error from object service, immediately switch to another healthy client in next request. ## Current Behavior Maintenance mode error considered as any other network error and increments threshold counter by one. ## Possible Solution Increment threshold variable to a threshold limit value, so it overflows the limit. ## Steps to Reproduce (for bugs) 1. Put node in a maintenance mode 2. Send object.Put request with SDK Pool component 3. Send one more object.Put request ## Context This is similar to #278 Maintenance mode error is not an accident error, so we can rely on this status and switch client. Otherwise we are having performance penalty when SDK Client has to decline multiple requests until threshold value has been reached or rebalance interval has been passed. ## Regression No ## Your Environment SDK Pool from frostfs-s3-gw v0.31.0-rc.2 (1b67ab9608)
alexvanin added the
bug
pool
labels 2024-10-11 10:07:15 +00:00
alexvanin self-assigned this 2024-10-11 10:07:15 +00:00
dkirillov self-assigned this 2024-10-16 11:47:07 +00:00
dkirillov referenced this issue from a commit 2024-10-17 13:28:04 +00:00
Sign in to join this conversation.
No milestone
No project
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#283
No description provided.