/index/run=ERR2756788
/summary/nucleotide/run=ERR2756788
/matches/nucleotide/paged?family=Coronaviridae
/matches/nucleotide/paged?family=Coronaviridae&page=5&perPage=10
/matches/nucleotide/paged?family=Coronaviridae&scoreMin=90&scoreMax=100&page=5
/matches/nucleotide/paged?family=Coronaviridae&scoreMin=90&scoreMax=100&identityMin=80&identityMax=90
/matches/nucleotide/paged?sequence=EU769558.1
/matches/nucleotide/paged?sequence=EU769558.1&page=5
/matches/nucleotide/paged?sequence=EU769558.1&scoreMin=90&scoreMax=100&page=5
/matches/nucleotide/paged?sequence=EU769558.1&scoreMin=90&scoreMax=100&identityMin=80&identityMax=90
/counts/nucleotide?family=Coronaviridae
/counts/nucleotide?sequence=EU769558.1
/list/nucleotide/family
/list/nucleotide/sequence
/palmprint/run=ERR2756788
Add file env.sh
:
export SQL_USERNAME=web_api
export SQL_PASSWORD=serratus
# [optional] create/load virtualenv
pip install -r requirements.txt
bash run.sh
bash test.sh
- Application name: serratus-summary-api-flask
- Environment
- Web server environment
- Name: serratus-summary-api
- Platform: Python (3.7 running on 64bit Amazon Linux 2)
- Sample app (will be overidden by CodePipeline deployment)
After creation:
- Add load balancer listener
- Port: 443
- Protocol: HTTPS
- SSL certificate:
*.serratus.io
- Processes
- Health check path:
/summary/nucleotide/run=ERR2756788
- Health check path:
- Environment variables
- Add
SQL_USERNAME
,SQL_PASSWORD
from toenv.sh
- Add
- Settings
- Pipeline name: serratus-summary-api-flask
- New service role
- Source stage
- Source provider: GitHub (Version 1)
- Select this repo/branch
- Change detection: GitHub webhooks
- Build stage: skip
- Deploy stage
- Provider: AWS Elastic Beanstalk
- Region: us-east-1
- Application/environment names from above
A
record forapi.serratus.io
-> Elastic Beanstalk endpoint
See https://github.com/ababaian/serratus/wiki/Serratus-SQL-Database-Management
- Disable caches: in
config.py
setCACHE_DEFAULT_TIMEOUT = 1
(timeout after 1 second)
/protein/*
/rdrp/*
- handle timeouts e.g.
DatabaseError: current transaction is aborted, commands ignored until end of transaction block
- investigate
CACHE_TYPE = 'filesystem'
andCACHE_THRESHOLD
- .