Allow to restrict tag requests #15
No reviewers
Labels
No labels
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-qos#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-qos:feat/allow_to_deny_tag_requests"
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?
It is now possible to restrict requests for a specific tag.
A separate field in
TagInfo
is used to avoid comparing float64 values with zero.Closes #14
Regarding the commit message:
IOPS
is integral, so we could comparefloat64
with< 0.5
?What happens if this new flag contradicts others? The caller should still somehow convert numbers to bool, right, so why not do it here instead?
We can still have integers in public interface, but use float64 internally.
Imagine we have
0.0
in all fields, what would be the behaviour of the current code?TagInfo is provided once on queue construction? If so, it seems this change allows us only to return more precise error, or am I missing something?
@fyrchik wrote in #15 (comment):
float64
against 0. With raw integers it is not possible to set limit to 0.5 requests per second. It is still possible to use uint with some implicit multiplier, but I don't think it will be simpler than raw float64 values.ErrTagRequestsRestricted
error is returned now, this error returns only in case when tag operation are restricted.3b39023d45
tob5ed0b6eff