Support running PostgREST docker in AWS ECS fargate #4287
Replies: 6 comments 2 replies
-
That's the debug trace of a feature https://docs.postgrest.org/en/v13/references/connection_pool.html#connection-lifetime.
I don't see anything wrong with the logs. You're going to have to elaborate what does exit code 255 mean. And check the logs when it happens. |
Beta Was this translation helpful? Give feedback.
-
The above is wrong, you need to target
See https://docs.postgrest.org/en/v13/references/admin_server.html |
Beta Was this translation helpful? Give feedback.
-
changed to |
Beta Was this translation helpful? Give feedback.
-
From the load balancer point of view, using but when AWS ECS is running the health check, it executes Do you have any recommendations for running other commands in the postgREST container as a health check? |
Beta Was this translation helpful? Give feedback.
-
oh, from the the discussion, health check is not a plan for the official docker image. Thanks. I will check how to add it in ourselves and see if it works with ECS |
Beta Was this translation helpful? Give feedback.
-
Th last piece of making it accessible through application load balancer is
I an see the system API schema ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Environment: AWS ECS fargate, awsvpc mode
PostgREST: 13.0.4 ( in docker)
I have a AWS ECS task definition that runs 2 containers at the same time.
Container 1 is an API service uses port 3000 which runs fine.
Container 2 is a PostgREST service that we try to integrate with, uses ports 3091 and 3090.
But whenever I spin up the task in AWS ECS cluster, the PostgREST service container check check shows unhealthy in ECS with exit code 255.
Per log, it shows db connection terminated in the end but I don't think it has anything to do with the health check
Here is the example task definition:
Solution
The container health check should succeeds without terminating itself in AWS ECS.
Beta Was this translation helpful? Give feedback.
All reactions