MongoDB Labs 7-10: Kavach CTI website, replica set, write concern and transactions
68
Student: M Nagasai Girisharan | Roll no: 24BTRCL114 | Class: 5 AIML-B Submission: Exercise 10 - Transactions, Atomicity, Durability and Journaling
One image that contains all four labs and a website for them (Kavach CTI).
MongoDB itself comes from the official mongo:7.0 image in the compose file.
| Lab | What it does |
|---|---|
| Lab 7 | Kavach CTI website, schema design, working set, auto-update every 5 minutes |
| Lab 8 | 3-member replica set, failover, elections, arbiter and priority activities |
| Lab 9 | Write concern latency (w:1, w:majority, w:all), journaling, network partition |
| Lab 10 | Multi-document transactions: bank transfer, inventory reservation, retry with backoff, throughput |
Starting a lab starts the labs below it first:
Lab 10 needs Lab 9 needs Lab 8 needs Lab 7
So starting Lab 10 runs Lab 7, then 8, then 9, then 10.
docker run --rm sharan10860/nosql-lab10 compose > docker-compose.yml
docker compose up -d lab10
Wait 3 to 5 minutes, then open http://localhost:8000/#/labs
docker compose exec lab10 lab10 all # everything + PDF report
docker compose exec lab10 lab10 10.1 # only Lab 10.1
docker compose exec lab10 lab10 10.2 # only Lab 10.2
docker compose exec lab10 lab10 bench # throughput test
docker compose down # stop
docker compose down -v # stop and delete the data
latest (works on Intel and Apple Silicon).Content type
Image
Digest
sha256:79b33b944…
Size
117.8 MB
Last updated
8 days ago
docker pull sharan10860/nosql-lab10