-
Notifications
You must be signed in to change notification settings - Fork 15
Deployment
chris48s edited this page Jan 23, 2020
·
5 revisions
- Deployment stack is EC2/RDS/S3
- Deployment config/scripts live in https://github.com/DemocracyClub/ee_deploy
- Static files are served from
/static
- they don't live on S3 - EE may be deployed across multiple EC2 front-ends
Every Election has a number of associated S3 buckets:
Production:
-
s3://notice-of-election
- for storing notice of election docs uploaded by users -
s3://ee-maps
- for storing GeoJSON/TopoJSON maps for each election group -
s3://lgbce-mirror
- for storing files relating to boundary changes/Electoral Change Orders -
s3://dc-ee-short-term-backups
- for storing database backups (to be imported by WDIV, WCIVF)
Dev:
-
s3://notice-of-election-dev
- dev/staging installs shove notice of election uploads in here
Every Election may run across multiple databases in production using postgres replication.
The process for adding/removing capacity is documented in https://github.com/DemocracyClub/ee_deploy#databases
As well as giving us extra capacity, this gives some extra resilience. With replicas, we can scale up the master or run a heavy maintenance task and still serve API reads off the replicas while we do it.