When the app first starts it spawns zip processes to get all the contents of all files in the cache. If there are lots of cached files, the processes fail. Could be running out of memory or something?
The app starts when there are fewer (80 works), so I'm guessing that spawning the zip processes in batches will work. The server is only single core anyway, so while a little bit of parallel processing might help, it's not like running all of these at once was helping in the first place. It was just simple code to Promise.all(files.map(...))
When the app first starts it spawns zip processes to get all the contents of all files in the cache. If there are lots of cached files, the processes fail. Could be running out of memory or something?
The app starts when there are fewer (80 works), so I'm guessing that spawning the zip processes in batches will work. The server is only single core anyway, so while a little bit of parallel processing might help, it's not like running all of these at once was helping in the first place. It was just simple code to
Promise.all(files.map(...))