Sign inSign up

sharan10860/nosql-lab9

By sharan10860

•Updated 11 days ago

MongoDB 7.0 replica-set lab – write-concern latency and network-partition simulation

Image
0

125

sharan10860/nosql-lab9 repository overview

⁠NoSQL Exercise 9 – Write Concern Latency & Network Partitions (MongoDB 7.0)

M Nagasai Girisharan · 24BTRCL114 · 5 AIML-B · 23CSE528 NoSQL Database using MongoDB

This image contains all completed Lab 9 tasks:

  • Lab 9.1 – write latency with w:1, w:majority and w:all (1,000 inserts each)
  • Lab 9.1 activity – j:true vs j:false for every write concern
  • Lab 9.2 – network partition: one secondary isolated, then both (step-down, read-only, election, priority takeover)
  • Report generator and the submitted results (PDF, DOCX, console logs) in /lab9/submitted_results

⁠Run the demo (only Docker needed)

docker run --rm sharan10860/nosql-lab9 compose > docker-compose.yml
docker compose up -d
docker exec -it lab9-runner lab9 9.1
docker exec -it lab9-runner lab9 9.1-journal
docker exec -it lab9-runner lab9 9.2 --step
docker exec -it lab9-runner lab9 all

⁠Get the submitted report

docker create --name lab9copy sharan10860/nosql-lab9
docker cp lab9copy:/lab9/submitted_results/Exercise-9_Report.pdf .
docker rm lab9copy

Stop and clean up: docker compose down -v

Tag summary

Content type

Image

Digest

sha256:04fa8feba…

Size

106.1 MB

Last updated

11 days ago

docker pull sharan10860/nosql-lab9