Node.js app has periodic slowness and/or timeouts (does not accept incoming requests)

前端 未结 7 474
眼角桃花
眼角桃花 2021-01-30 02:08

This problem is killing the stability of my production servers.

To recap, the basic idea is that my node server(s) sometimes intermittently slow down, sometimes resultin

7条回答
  •  梦毁少年i
    2021-01-30 03:05

    Many months after I first asked this question, I found the answer.

    In a nutshell, the problem was that I was not piping a big asset when transferring it from one server to another. In other words, I was downloading an image from one server, before uploading it to a S3 bucket. Instead of streaming the download into the upload, I downloaded the file into memory, and then uploaded it.

    I'm not sure why this did not show up as a memory spike, or elsewhere in my statistics.

提交回复
热议问题