Skip to content

Commit

Permalink
policer: use 1s as the default replicaton cooldown (#2617)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Oct 9, 2023
2 parents 1e568b6 + d2ad04c commit 1006609
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/neofs-node/config/policer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (

// ReplicationCooldownDefault is a default cooldown time b/w replication tasks
// submitting.
ReplicationCooldownDefault = time.Duration(0)
ReplicationCooldownDefault = 1 * time.Second
// ObjectBatchSizeDefault is a default replication's objects batch size.
ObjectBatchSizeDefault = 10
// MaxWorkersDefault is a default replication's worker pool's maximum size.
Expand Down
2 changes: 1 addition & 1 deletion docs/storage-node-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ policer:
| Parameter | Type | Default value | Description |
|------------------------|------------|---------------|-----------------------------------------------------|
| `head_timeout` | `duration` | `5s` | Timeout for performing the `HEAD` operation. |
| `replication_cooldown` | `duration` | `0s` | Cooldown time between replication tasks submitting. |
| `replication_cooldown` | `duration` | `1s` | Cooldown time between replication tasks submitting. |
| `object_batch_size` | `int` | `10` | Replication's objects batch size. |
| `max_workers` | `int` | `20` | Replication's worker pool's maximum size. |

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/policer/policer.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func defaultCfg() *cfg {
log: zap.L(),
batchSize: 10,
rebalanceFreq: 1 * time.Second,
repCooldown: 0,
repCooldown: 1 * time.Second,
}
}

Expand Down

0 comments on commit 1006609

Please sign in to comment.