Open juliolugo96 opened 1 year ago
I do not personally use AWS but in any hosting setup you need to configure/allow for websocket proxying similar to http/https. In a regular NGINX or Apache setup those proxy configurations are straight forward but for AWS you'll have to consult their docs https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html
Sorry must have been sleepy and responded hastily this morning 😇 Can't say im sure why the extension would cause the cpu to spin up like that 🤔 Do you have any logs that could shed light on the situation?
Hi, man! No worries :smile: . AWS Cloudwatch didn't show me too much in the logs, just that my container was dropped:
GET /admin/login 200 4ms
GET /admin/login 200 4ms
GET /admin/login 200 4ms
GET /admin/login 200 4ms
GET /admin/login 200 4ms
# No more health-checks during 6 minutes, then the container is dropped
npm ERR! path /directus
npm ERR! command failed
npm ERR! signal SIGINT
npm ERR! command sh -c -- npx directus start
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-02-01T21_04_18_424Z-debug-0.log
Reviewing the target groups, it seems to be working ok during a couple minutes, then it basically drops everything. After I checked the CloudWatch dashboard, I found CPU and memory peaks.
Could you try setting LOG_LEVEL=trace
for the container? perhaps that will log a bit more in depth
Hi, @br41nslug !
Your extension is awesome and it's working perfectly fine for me locally (before and after dockerization). However, right after I deploy it to an AWS fargate-managed ECS cluster, the task is launched but after some minutes, the container goes to a CPU max usage and it basically gets stuck:
Here's the environment configuration:
And here's the Dockerfile
I tried increasing the task memory to 2 vCPU and 8 GBs of memory. Still unresponsive.
Removing the package with the same configuration previously shown worked, even reducing memory and vCPUs to its minimal.
Do you have any idea why is it failing? Is there any specific configuration that's necessary in order to run this extension inside a serverless environment like AWS ECS Fargate? Thanks in advance, pal