Sign inSign up

sharan10860/nosql-lab8

By sharan10860

•Updated 11 days ago

MongoDB 7.0 replica-set lab – replication, arbiter, failover and priority elections

Image
0

204

sharan10860/nosql-lab8 repository overview

⁠NoSQL Exercise 8 – Replica Sets, Failover and Elections (MongoDB 7.0)

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

This image contains all completed tasks:

  • Lab 8.1 – deploy a 3-node replica set and verify replication
  • Lab 8.1 activity – add an arbiter (P-S-A) and analyse its effect
  • Lab 8.2 – force a failover with rs.stepDown() and watch the driver reconnect
  • Lab 8.2 activity – predict the election winner from member priorities
  • Report (Exercise-8_Report.docx) and the run results in /lab8/submitted_results

⁠Run the demo (only Docker needed)

docker run --rm sharan10860/nosql-lab8 compose > docker-compose.yml
docker compose up -d
docker exec -it lab8-runner lab8 8.1
docker exec -it lab8-runner lab8 8.1-arbiter
docker exec -it lab8-runner lab8 8.2
docker exec -it lab8-runner lab8 8.2-priority
docker exec -it lab8-runner lab8 all

⁠See the submitted results

docker create --name labcopy sharan10860/nosql-lab8
docker cp labcopy:/lab8/submitted_results ./submitted_results
docker rm labcopy

Stop and clean up: docker compose down -v

Tag summary

Content type

Image

Digest

sha256:36397ff46…

Size

62.8 MB

Last updated

11 days ago

docker pull sharan10860/nosql-lab8