Consider config reload on SIGHUP #76

Closed
opened 2025-12-28 17:36:03 +00:00 by sami · 0 comments
Owner

Originally created by @alexvanin on GitHub (Sep 6, 2022).

Originally assigned to: @KirillovDenis on GitHub.

It will be nice to reload and update app on the go.

Reload whole app

The easiest way is to restart application and therefore re-read config. This is acceptable but we don't want to close all connections and terminate all sessions. So consider more innocent approach

Reload some config sections

  • 🔴 Update wallet: key is used in the client, not sure we can safely re-read that
  • 🟢 Restart pprof + metrics servers
  • 🟢 Update logger config
  • 🟡 Update cert files: if possible without server termination
  • 🔴 Update NeoFS peers: pretty sure it is not possible. Consider weight update feature issue in SDK.
  • 🟡 Update buffer sizes: if possible without server termination
  • 🟢 Update resolve order
  • 🔴 Update pool timers: pretty sure it is not possible. Consider feature issue in SDK.
  • 🟢 Timestamp header parameter
  • 🟢 Enable / disable compression

Check if all 🟢 sections are re-readable.
Investigate 🟡 sections
Discuss if 🔴 sections are mandatory to update without restart /cc @realloc

Originally created by @alexvanin on GitHub (Sep 6, 2022). Originally assigned to: @KirillovDenis on GitHub. It will be nice to reload and update app on the go. ## Reload whole app The easiest way is to restart application and therefore re-read config. This is acceptable but we don't want to close all connections and terminate all sessions. So consider more innocent approach ## Reload some config sections - :red_circle: Update wallet: key is used in the client, not sure we can safely re-read that - :green_circle: Restart pprof + metrics servers - :green_circle: Update logger config - :yellow_circle: Update cert files: if possible without server termination - :red_circle: Update NeoFS peers: pretty sure it is not possible. Consider weight update feature issue in SDK. - :yellow_circle: Update buffer sizes: if possible without server termination - :green_circle: Update resolve order - :red_circle: Update pool timers: pretty sure it is not possible. Consider feature issue in SDK. - :green_circle: Timestamp header parameter - :green_circle: Enable / disable compression Check if all :green_circle: sections are re-readable. Investigate :yellow_circle: sections Discuss if :red_circle: sections are mandatory to update without restart /cc @realloc
sami 2025-12-28 17:36:03 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
nspcc-dev/neofs-http-gw#76
No description provided.