Processes in ECS container go to sleep mode

0

Here is what we want to do: We want to establish a WebSocket with our Market Maker. Through this WebSocket we receive a stream of price quotes. These quotes should be batched to batches of 1KB and written into TimeStream.

Here is our architecture set-up: We created a NodeJS application running on an ECS container. This app opens the WebSocket, listens to all new price quotes and batches them to arrays of 1KB and writes them to TimeStream.

Here is our problem:

  • Container has been running for about 20 hours and it is in healthy state, but all processes are in sleep mode which caused an issue because data are no longer fetch from web socket
  • Attaching to container and hitting healthcheck endpoint by curl localhost:3000/health return OK. I assume that this server process is the only thing that keeps container alive
  • What is the entrypoint/cmd of your container? Is your NodeJS app running as a server listening for outside requests or it is running a client that connects to the outside source to retrieve some data and process it?

질문됨 2년 전45회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠