How bandavandhana/distributed_file_system works
This is a simulated distributed-file-system coordinator with a Flask dashboard and an interactive terminal demo. Users add or fail storage nodes, write and read files, and observe load balancing, dynamic replication, recovery, and system health. The web app coordinates requests; replication and failure detection run as background services over in-memory metadata, node state, and event logs. The excerpts establish these relationships, but do not show the full route set or dashboard rendering details.
Main entry points: app.py Web Coordinator · coordinator_demo.py Demo Coordinator · foundation.py Metadata, Nodes & Logs · replication.py Dynamic Replication
Components 8
User Interfaces
- Flask API
app.py - Terminal Demo
coordinator_demo.py
Coordinator
- Web Coordinator
app.py - Demo Coordinator
coordinator_demo.py
Cluster Services
- Dynamic Replication
replication.py - Failure Detection
failure_detector.py
In-Memory State
- Metadata, Nodes & Logs
foundation.py
Other components
- Operator
Connections 11
- Operator → Flask API: requests operations
app.py - Flask API → Web Coordinator: routes requests
app.py - Terminal Demo → Demo Coordinator: invokes operations
coordinator_demo.py - Web Coordinator → Metadata, Nodes & Logs: creates and updates state
app.py - Web Coordinator → Dynamic Replication: starts and routes reads
app.py - Web Coordinator → Failure Detection: starts and signals heartbeats
app.py - Demo Coordinator → Metadata, Nodes & Logs: creates and updates state
coordinator_demo.py - Demo Coordinator → Dynamic Replication: starts and routes reads
coordinator_demo.py - Demo Coordinator → Failure Detection: starts and signals heartbeats
coordinator_demo.py - Dynamic Replication → Metadata, Nodes & Logs: reads and adjusts replicas
replication.py - Failure Detection → Metadata, Nodes & Logs: tracks nodes and replicas
failure_detector.py