Support reloading service pool sizes on SIGHUP #956
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#956
Loading…
Reference in a new issue
No description provided.
Delete branch "fyrchik/frostfs-node:reload-pools"
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?
Restarting services is very slow (and induces effects on other nodes), supporting SIGHUP is easy.
Tested on dev-env:
e6574ed569
tob3e7d50be6
@ -1288,0 +1293,4 @@
return nil
}
func (c *cfg) reloadPool(p *ants.Pool, newSize int, name string) {
I am not a fan of such small functions, but it helps to avoid forgetting to change something after copypaste
b3e7d50be6
to4e33b4a417