Quick Start
Quick Start Guide
Starting the System
- Start Master Server
make master- Start Chunk Servers
# Start chunk servers with different locations and space limitsmake chunk chunk1 0 0 1024 # Origin with 1GBmake chunk chunk2 100 0 2048 # East with 2GBmake chunk chunk3 0 100 1024 # North with 1GB- Start Client Interface
# Start client at specific locationmake client client1 50 50 # Center locationBasic Operations
File Operations
- Upload a File
client = GFSClient("configs/config.toml", "client1", x=10, y=20)client.upload_file("local_file.txt", "/gfs/remote_file.txt")- Download a File
client.download_file("/gfs/remote_file.txt", "downloaded_file.txt")- Append to File
with open("data.txt", "rb") as f: client.append_to_file("/gfs/remote_file.txt", f.read())Using the Web Interface
-
Access File Explorer
- Navigate to “File Explorer” tab
- Browse directory structure
- Upload/download files
- Create directories
-
Monitor System
- Check “Network Graph” tab
- View chunk server status
- Monitor space usage
- Track client connections
Location-Aware Features
- Server Placement
# Strategic server placementmake chunk cs1 0 0 1024 # Centermake chunk cs2 100 100 1024 # Northeastmake chunk cs3 100 0 1024 # East- Client Positioning
# Position clients near their datamake client client1 25 25 # Near centermake client client2 75 75 # Northeast quadrantSpace Management
- Configure Space Limits
# Varying space capacitiesmake chunk chunk1 10 20 2048 # 2GB spacemake chunk chunk2 30 40 1024 # 1GB space- Monitor Usage
- Check space usage in web interface
- Monitor replication status
- View space distribution
System Monitoring
- Monitor Logs
# Check component logstail -f logs/master_*.logtail -f logs/chunk_server_*.logCommon Operations
File Management
- Create directory structure
- Upload files
- Download files
- Append to existing files
System Administration
- Monitor server health
- Check replication status
- Verify space usage
- Track client connections
Best Practices
-
Server Deployment
- Distribute servers geographically
- Balance space allocation
- Monitor server health
-
Client Usage
- Position clients strategically
- Monitor connection quality
- Track operation success
-
Data Management
- Regular backups
- Space monitoring
- Replication verification
Troubleshooting
-
Connection Issues
- Verify master server is running
- Check chunk server status
- Confirm network connectivity
-
Space Issues
- Monitor available space
- Check replication status
- Verify chunk distribution
-
Performance Issues
- Check server load
- Monitor network traffic
- Verify client positioning
Next Steps
- Explore Advanced Features
- Learn about System Components
- Configure for production use