[#325] node: Introduce unsafe_disable param to disable policer #383

Merged
fyrchik merged 1 commit from aarifullin/frostfs-node:feature/325-policer_off into master 2023-05-31 10:09:06 +00:00
Member

Signed-off-by: Airat Arifullin a.arifullin@yadro.com

Signed-off-by: Airat Arifullin a.arifullin@yadro.com
aarifullin added the
enhancement
label 2023-05-22 10:02:45 +00:00
aarifullin requested review from storage-core-developers 2023-05-22 10:02:58 +00:00
aarifullin requested review from storage-core-committers 2023-05-22 10:02:58 +00:00
acid-ant approved these changes 2023-05-22 10:07:19 +00:00
dstepanov-yadro approved these changes 2023-05-23 06:49:03 +00:00
fyrchik reviewed 2023-05-23 07:30:03 +00:00
@ -205,2 +205,4 @@
func addPolicer(c *cfg, keyStorage *util.KeyStorage, clientConstructor *cache.ClientCache) {
if policerconfig.UnsafeDisable(c.appCfg) {
c.log.Info(logs.FrostFSNodePolicerIsDisabled)
Owner

Can we do this with Warn level? It is probably a mistake, unless you know what you are doing, so can safely ignore the warning.

Can we do this with `Warn` level? It is probably a mistake, unless you know what you are doing, so can safely ignore the warning.
Author
Member

OK

OK
Author
Member

Fixed

Fixed
fyrchik marked this conversation as resolved
aarifullin force-pushed feature/325-policer_off from 5465717a86 to 6550968556 2023-05-23 16:09:02 +00:00 Compare
aarifullin requested review from acid-ant 2023-05-23 16:09:19 +00:00
aarifullin requested review from dstepanov-yadro 2023-05-23 16:09:19 +00:00
acid-ant approved these changes 2023-05-24 06:07:20 +00:00
dstepanov-yadro approved these changes 2023-05-24 06:44:40 +00:00
fyrchik reviewed 2023-05-24 07:38:33 +00:00
@ -455,6 +455,7 @@ const (
FrostFSNodeNotificatorFinishedProcessingObjectNotifications = "notificator: finished processing object notifications" // Debug in ../node/cmd/frostfs-node/notificator.go
FrostFSNodeCouldNotWriteObjectNotification = "could not write object notification" // Warn in ../node/cmd/frostfs-node/notificator.go
FrostFSNodeCouldNotGetMaxObjectSizeValue = "could not get max object size value" // Error in ../node/cmd/frostfs-node/object.go
FrostFSNodePolicerIsDisabled = "policer is disabled" // Info in ../node/cmd/frostfs-node/object.go
Owner

It's no longer Info

It's no longer `Info`
Owner
cc @aarifullin
Owner

Also, as let's omit level in new logs -- initially it was autogenerated, I think we may need it less now (and now the information can be easily obtained with grep).

Also, as let's omit level in new logs -- initially it was autogenerated, I think we may need it less now (and now the information can be easily obtained with grep).
Author
Member

Fixed

Fixed
fyrchik marked this conversation as resolved
aarifullin force-pushed feature/325-policer_off from 6550968556 to 8763e8aaf3 2023-05-26 09:26:37 +00:00 Compare
aarifullin requested review from acid-ant 2023-05-26 09:27:00 +00:00
aarifullin requested review from dstepanov-yadro 2023-05-26 09:27:04 +00:00
dstepanov-yadro approved these changes 2023-05-26 10:09:08 +00:00
acid-ant approved these changes 2023-05-26 11:21:22 +00:00
Owner

@aarifullin there are conflicts with the main branch

@aarifullin there are conflicts with the main branch
aarifullin force-pushed feature/325-policer_off from 8763e8aaf3 to 22da65ac9c 2023-05-29 09:05:50 +00:00 Compare
aarifullin requested review from dstepanov-yadro 2023-05-29 09:06:02 +00:00
aarifullin requested review from acid-ant 2023-05-29 09:06:04 +00:00
dstepanov-yadro reviewed 2023-05-29 09:49:41 +00:00
@ -479,2 +479,3 @@
FrostFSNodeCantListenGRPCEndpointControl = "can't listen gRPC endpoint (control)" // Error in ../node/cmd/frostfs-node/control.go
CommonApplicationStarted = "application started" // Info in ../node/cmd/frostfs-ir/main.go
FrostFSNodePolicerIsDisabled = "policer is disabled"
CommonApplicationStarted = "application started" // Info in ../node/cmd/frostfs-ir/main.go

Please delete // Info in ../node/cmd/frostfs-ir/main.go

Please delete `// Info in ../node/cmd/frostfs-ir/main.go`
aarifullin force-pushed feature/325-policer_off from 22da65ac9c to e4afe0a565 2023-05-30 08:48:10 +00:00 Compare
dstepanov-yadro approved these changes 2023-05-30 13:11:06 +00:00
acid-ant approved these changes 2023-05-30 19:04:03 +00:00
fyrchik merged commit a3e30062df into master 2023-05-31 10:09:06 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
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-node#383
No description provided.