KarrLab / datanator_rest_api

A OAS3 compliant REST API for the Datanator integrated database
MIT License
0 stars 3 forks source link

Use AWS ECS to scale REST API and move away from Heroku #107

Closed lzy7071 closed 4 years ago

jonrkarr commented 4 years ago

This seems like a good idea. Is this part of the reason that the REST API fails intermittently?

lzy7071 commented 4 years ago

I suspect so but I can't be sure.

lzy7071 commented 4 years ago

Build / Test on Circle -> push to ECR -> deploy to ECS

lzy7071 commented 4 years ago

Base docker image on tiangolo/meinheld-gunicorn-flask

lzy7071 commented 4 years ago

Use https://github.com/KarrLab/datanator_rest_api_aws to instantiate / destroy an AWS deployment stack.

lzy7071 commented 4 years ago

Build Docker with secret envs using BuildKit

lzy7071 commented 4 years ago

Load Balancer in VPC across 1 AZ with 2 security groups, one for public subnet, the other for the containers.

lzy7071 commented 4 years ago

Need to create log groups in https://github.com/KarrLab/datanator_rest_api_aws/blob/master/ecs_ecr_templates/public-service.yml

lzy7071 commented 4 years ago

Need to have READ_PREFERENCE env variable.

lzy7071 commented 4 years ago

Done.