tl-its-umich-edu / canvas-course-manager-next

Canvas Course Manager Next: A redesign of the existing CCM application. It extends Canvas features, makes cumbersome features easier to use, and adds new features.
8 stars 9 forks source link

Make number of `pm2` threads configurable #375

Closed ssciolla closed 2 years ago

ssciolla commented 2 years ago

For flexibility in testing and deployment related to memory limits and performance, it makes sense to make the number of threads per pod or container. This is set in ecosystem.config.js, and we can use a similar pattern as we already do for PM2_MEM_LIMIT.

pushyamig commented 2 years ago

I will QA this

pushyamig commented 2 years ago

I have tested this ccm-test. I added the configuration variable. The default seems to be 4 threads. I changed value to 3 and app launches fine. Currently it is set to 4 might change it later. Test passes