Closed MrOrz closed 4 years ago
PM2 always spins up 2 instances of rumors-api
PM2 will respect WEB_CONCURRENCY env var to determine its concurrency, which is consistent with cofacts/rumors-site.
WEB_CONCURRENCY
This can be helpful if we want to scale up / down API servers on production server.
Coverage remained the same at 88.582% when pulling 784d6dcc70a4ed08f11c0f533a211c48163ec004 on web-concurrency into a9a68b9d1d5a3b75a32b021c8b799dd58c1fb01c on master.
As-is
PM2 always spins up 2 instances of rumors-api
To-be
PM2 will respect
WEB_CONCURRENCY
env var to determine its concurrency, which is consistent with cofacts/rumors-site.This can be helpful if we want to scale up / down API servers on production server.