Skip to content

Conversation

cthulhu-rider
Copy link
Contributor

i stick to the proposed change in cost/benefit ratio

at the same time, the explicit context of request forwarding is lost. I dont see a problem with this for now. If the need arises, I'd consider more lightweight approach than recursive headers

Previously, when proxy SN forwarded read object requests to the
container, it updated the request as follows:
 1. meta header was wrapped into the new one with decremented TTL;
 2. verification header was wrapped into to the new one with added
   signatures for original parts.

This resulted in the following costs:
 - additional calculation of two signatures on proxy SN;
 - more expensive request serialization, more data over the network;
 - more expensive request deserialization on container SN;
 - additional verification of two signatures on container SN.

At the same time, apart from the mentioned actions, container SN did not
use additional data for processing. So if a node doesn't update TTL and
add signatures, then it's just reduces the resources spent without
changing the behavior.

This makes proxy SN to not resign object GET/HEAD/RANGE requests on
forwarding.

Signed-off-by: Leonard Lyubich <[email protected]>
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 21.16%. Comparing base (fce19b7) to head (fcc9187).

Files with missing lines Patch % Lines
pkg/services/object/server.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3413   +/-   ##
=======================================
  Coverage   21.16%   21.16%           
=======================================
  Files         708      708           
  Lines       52881    52842   -39     
=======================================
- Hits        11191    11185    -6     
+ Misses      40895    40861   -34     
- Partials      795      796    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant