How sreejithore/distributed-file-system works
This is a local-process simulation of a fault-tolerant distributed file system. The principal workflow is a user uploading a file through the Streamlit client: the client checks version information with the master, splits and hashes the file, registers chunk locations, and sends chunk data to storage workers. Downloads retrieve chunks and reassemble them; the master also tracks node health and repairs under-replicated data. The README documents registry, previews, deletion, and analytics capabilities. Connections involving unsampled app sections are based on that documentation; no other source files were available to inspect.
Main entry points: app.py Streamlit dashboard · master_node.py Master RPC services · data_node.py Data node RPC · client_logic.py Chunk split and stitch
Components 16
Client experience
- Streamlit dashboard
app.py - Health and analytics
app.py - Versioned registry
app.py - Image preview
app.py - Download matrix
app.py
File transfer
- Chunk split and stitch
client_logic.py - Recovered files
downloads
Master services
- Master RPC services
master_node.py - Heartbeat tracking
master_node.py - SQLite metadata
master_metadata.db - Replication monitor
master_node.py
Storage workers
- Data node RPC
data_node.py - Chunk files
storage_node_5001 - Heartbeat worker
data_node.py - Orphan cleanup
data_node.py
Other components
- DFS user
Connections 24
- DFS user → Streamlit dashboard: uses
README.md - Streamlit dashboard → Health and analytics: renders
app.py - Streamlit dashboard → Versioned registry: renders
app.py - Streamlit dashboard → Image preview: opens
README.md - Streamlit dashboard → Download matrix: opens
app.py - Streamlit dashboard → Chunk split and stitch: splits files
app.py - Streamlit dashboard → Master RPC services: requests versions
app.py - Streamlit dashboard → Master RPC services: registers chunks
app.py - Streamlit dashboard → Data node RPC: sends chunks
app.py - Health and analytics → Master RPC services: requests status
app.py - Versioned registry → Master RPC services: reads registry
README.md - Versioned registry → Master RPC services: deletes files
README.md - Download matrix → Master RPC services: locates chunks
README.md - Download matrix → Data node RPC: fetches chunks
README.md - Download matrix → Chunk split and stitch: reassembles file
README.md - Chunk split and stitch → Recovered files: writes output
README.md - Master RPC services → SQLite metadata: reads and writes
master_node.py - Master RPC services → Heartbeat tracking: tracks health
master_node.py - Heartbeat worker → Heartbeat tracking: reports health
data_node.py - Data node RPC → Chunk files: reads and writes
data_node.py - Replication monitor → Data node RPC: replicates chunks
master_node.py - Replication monitor → SQLite metadata: records replicas
master_node.py - Orphan cleanup → Master RPC services: checks registration
data_node.py - Orphan cleanup → Chunk files: removes orphans
data_node.py