Use more retries in tree pool in case of failures #172

Closed
opened 2023-10-05 11:48:11 +00:00 by alexvanin · 1 comment
Owner

There is a case, when put request to tree service happens on one node and get request happens on another node in the same container. Tree replication can not be immediate, so temporary client returns empty result or even Tree Not Found error.

Pool should try its best to receive node for tree services, so it's better to repeat request for different endpoints in this case.

Describe the solution you'd like

Use more retries in case of bad and unexpected responses.

Describe alternatives you've considered

Offload retries to storage node.

Additional context

This was highlighted during failover tests with nginx as load-balancer and some sort of round-robin

## Is your feature request related to a problem? Please describe. There is a case, when put request to tree service happens on one node and get request happens on another node in the same container. Tree replication can not be immediate, so temporary client returns empty result or even `Tree Not Found` error. Pool should try its best to receive node for tree services, so it's better to repeat request for different endpoints in this case. ## Describe the solution you'd like Use more retries in case of bad and unexpected responses. ## Describe alternatives you've considered Offload retries to storage node. ## Additional context This was highlighted during failover tests with nginx as load-balancer and some sort of round-robin
alexvanin self-assigned this 2023-10-05 11:48:11 +00:00
Author
Owner

Need some fixes to work it properly.

Need some fixes to work it properly.
Sign in to join this conversation.
No milestone
No project
No assignees
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#172
No description provided.