treasure-data / serverengine

A framework to implement robust multiprocess servers like Unicorn
Apache License 2.0
759 stars 86 forks source link

Add spawn worker-type to one server configurations block #130

Closed daipom closed 2 years ago

daipom commented 2 years ago

These configs can be used in "spawn" worker-type too.

- Multithread server and multiprocess server: available only when `worker_type` is thread or process
  - **workers** sets number of workers (default: 1) [dynamic reloadable]
  - **start_worker_delay** sets the delay between each worker-start when starting/restarting multiple workers at once (default: 0) [dynamic reloadable]
  - **start_worker_delay_rand** randomizes start_worker_delay at this ratio (default: 0.2) [dynamic reloadable]
  - **restart_worker_interval** sets wait time before restarting a stopped worker (default: 0) [dynamic reloadable]
ashie commented 2 years ago

:+1:

daipom commented 2 years ago

Thanks for the merge!