-
Notifications
You must be signed in to change notification settings - Fork 50
Closed as not planned
Labels
I4No visible changesNo visible changesS3Minimally significantMinimally significantU3RegularRegularenhancementImproving existing functionalityImproving existing functionalityneofs-storageStorage node application issuesStorage node application issuesperformanceMore of something per secondMore of something per second
Description
* inspired by #2686 (comment)
Is your feature request related to a problem? Please describe.
in some scenarios ObjectService server of the storage node calculates list of container nodes again and again for fixed network map (epoch stays unchanged for some period of time) and container (e.g. data load into single container)
this is easy observable from profiles attached to #2686. Millions of objects may be uploaded into single container within one epoch, and node will do https://pkg.go.dev/github.com/nspcc-dev/neofs-sdk-go/netmap#NetMap.ContainerNodes millions of times
Describe the solution you'd like
cache the results. Cache should have limited size ofc (it's enough to start with fixed size LRU cache). For some placements like "the latest epoch" the cache must be invalidated on epoch switch
Describe alternatives you've considered
no other ideas for now
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
I4No visible changesNo visible changesS3Minimally significantMinimally significantU3RegularRegularenhancementImproving existing functionalityImproving existing functionalityneofs-storageStorage node application issuesStorage node application issuesperformanceMore of something per secondMore of something per second