-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension not working in AWS ECS environment #15
Comments
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 😄 . AWS Cloudwatch didn't show me too much in the logs, just that my container was dropped:
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 |
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
The text was updated successfully, but these errors were encountered: