schneems / puma_auto_tune

Puma performance without all the (T)pain
227 stars 19 forks source link

Maximum number of workers option? #5

Closed jonastemplestein closed 10 years ago

jonastemplestein commented 10 years ago

My application depends on a few other resources, such as database connections, that are limited. Is there a way to cap the number of puma_auto_tune workers to make sure I don't consume too many of those other resources?

Other than that, thanks for making this excellent gem, Richard. It looks really well done.

schneems commented 10 years ago

You can implicitly limit this number via limiting RAM yes? You can also over-write the default algorithm :)

Thanks for trying this gem out. Please try this on your own https://github.com/schneems/puma_auto_tune#customizing-the-algorithm and let me know if you have any questions. If you find it really helps your use case we can consider adding it as an option.