kernelci / kernelci-api

KernelCI API - Database - Pub/Sub
GNU Lesser General Public License v2.1
9 stars 17 forks source link

MongoDB / Atlas deployment #258

Open gctucker opened 1 year ago

gctucker commented 1 year ago

MongoDB can be run in a local container such as with the docker-compose setup provided in the kernelci-pipeline repository. It's very convenient for developers as it just works out of the box and is self-contained. However, it means that it needs to be managed as a service directly as a sysadmin task along with the VM running it.

A more sustainable and scalable option would be to use Atlas for deploying Mongo in the Cloud. The simplest way to do this is to create an Atlas resource in Azure from the marketplace. It has fewer options than when subscribing directly to Atlas but on the other hand it means we can just keep it part of the existing subscription. It's also perfectly fine for our initial deployment as the database is going to be small for the first few months and we haven't done any profiling yet.

gctucker commented 1 year ago

Tested OK with staging API deployment, with everything running in docker-compose except db and connecting to the Atlas account instead: kci-show-007 atlas-001