Support reloading service pool sizes on SIGHUP #956

Merged
fyrchik merged 4 commits from fyrchik/frostfs-node:reload-pools into master 2024-02-08 15:49:45 +00:00

Restarting services is very slow (and induces effects on other nodes), supporting SIGHUP is easy.

Tested on dev-env:

2024-02-02T17:40:58.632Z        info    frostfs-node/config.go:1299     adjust pool configuration      {"field": "object.put.local_pool_size", "old": 10, "new": 123}
2024-02-02T17:40:58.632Z        info    frostfs-node/config.go:1299     adjust pool configuration      {"field": "object.put.remote_pool_size", "old": 10, "new": 321}
Restarting services is very slow (and induces effects on other nodes), supporting SIGHUP is easy. Tested on dev-env: ``` 2024-02-02T17:40:58.632Z info frostfs-node/config.go:1299 adjust pool configuration {"field": "object.put.local_pool_size", "old": 10, "new": 123} 2024-02-02T17:40:58.632Z info frostfs-node/config.go:1299 adjust pool configuration {"field": "object.put.remote_pool_size", "old": 10, "new": 321} ```
fyrchik force-pushed reload-pools from e6574ed569 to b3e7d50be6 2024-02-02 17:43:58 +00:00 Compare
fyrchik reviewed 2024-02-02 17:46:31 +00:00
@ -1288,0 +1293,4 @@
return nil
}
func (c *cfg) reloadPool(p *ants.Pool, newSize int, name string) {
Poster
Owner

I am not a fan of such small functions, but it helps to avoid forgetting to change something after copypaste

I am not a fan of such small functions, but it helps to avoid forgetting to change something after copypaste
fyrchik force-pushed reload-pools from b3e7d50be6 to 4e33b4a417 2024-02-02 17:58:07 +00:00 Compare
fyrchik requested review from storage-core-committers 2024-02-02 17:58:12 +00:00
fyrchik requested review from storage-core-developers 2024-02-02 17:58:14 +00:00
acid-ant approved these changes 2024-02-05 06:13:42 +00:00
aarifullin approved these changes 2024-02-08 09:13:31 +00:00
dstepanov-yadro approved these changes 2024-02-08 13:00:47 +00:00
fyrchik merged commit 805862f4b7 into master 2024-02-08 15:49:45 +00:00
fyrchik deleted branch reload-pools 2024-02-08 15:49:45 +00:00
Sign in to join this conversation.
No Milestone
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#956
There is no content yet.