bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

[BCN] Config Refresh

Open MicahMaphet opened this issue 4 months ago • 0 comments

Reload config files bitcore-node bitcore-node workers reload their configs on SIGUSR1 Use the scripts/reloadConfig.sh to send SIGUSR1 to pids contained in new pids directory Reload all workers:

$ ./scripts/reloadConfig.sh
Reload configs for all workers: 264191 242416

List active workers:

$ ./scripts/reloadConfig.sh list
all
api

Reload configs for specified workers:

$ ./scripts/reloadConfig.sh all api
Sent reload signal(s) SIGUSR1 to 'all api'
pids: 264191 242416

Not all of the config options reload properly, e.g. numWorkers. What is known to work:

  • changing peer connections
  • disabling and enabling peers
  • RPC connections (at least for the purposes of the /fee route)
  • API port

MicahMaphet avatar Nov 10 '25 20:11 MicahMaphet