Closed mraross closed 1 year ago
I don't think a significant departure from our existing kubernetes architecture is required for this. For this reason I would estimate 8 hours for (task 2) review, feedback, and discussion of the new architecture.
The development work for Task 3 is covered by #78.
Older ticket. Closing.
The BC Address Geocoder's current system architecture is tied to Ministry infrastructure which includes both a fixed hardware platform and a private cloud platform running OpenShift. While the current architecture supports georedundancy and fixed horizontal scaling (multiple nodes), it doesn't support autoscaling.
We need a new, cloud-based, non-proprietary architecture that can do the following:
Autodeploy a set of geocoder nodes/pods in a rolling manner to avoid API service interruption.
Autoscale to handle peak loads gracefully and efficiently.
Be deployed to both the gov't cloud platform and a public cloud that supports Kubernetes.
Simplify geocoder pod deployment by replacing Apache Cassandra with per-pod, file-based storage of geocoder configuration data. The configmap capability of Kurbenetes may come in handy here.
Be compatible with any new cloud platform that the Ministry is planning to roll out this year.
Autoscaling automates the deployment and release of compute nodes and storage to effectively shadow demand. This will require use of kubernetes to manage online geocoder deployment to private or public cloud infrastructure.
The need for autoscaling arose in November, 2019 when the online geocoder couldn't handle peak load during the BC Referendum on Proportional Representation. The geocoder became unavailable for twenty minutes while DataBC infrastructure staff manually deployed additional geocoder nodes.
The following tasks will be required:
Design of a new architecture including all kubernetes and other scripts for build and deployment. [DataBC]
Architecture review by geocoder developer
Update online geocoder to support new architecture [geocoder developer]
Deployment testing to ensure geocoder can be correctly deployed without API service interruption. [DataBC]
Volume testing to ensure correct operation of autoscaling. [DataBC]
Cloud cost analysis to determine impact of new architecture on operating costs. [DataBC]