Server Architecture ๐๏ธ
Overview of Z-Craftโs server infrastructure and technical setup.Server Infrastructure
Main Servers
| Server | Type | Specs | Purpose |
|---|---|---|---|
| Survival | Java | 32GB RAM, 16 CPU | Main survival world |
| Creative | Java | 16GB RAM, 8 CPU | Unlimited building |
| PvP Arena | Java | 16GB RAM, 12 CPU | Competitive gameplay |
| Bedrock | Bedrock | 24GB RAM, 12 CPU | Cross-platform play |
| Hub | Proxy | 8GB RAM, 4 CPU | Server selection |
| Database | PostgreSQL | 32GB RAM, 8 CPU | Player data storage |
Network Architecture
Hosting Provider
- Provider: Premium Dedicated Servers
- Location: Multiple regions (US East, EU Central, AU Sydney)
- Uptime SLA: 99.9%
- DDoS Protection: Enterprise-grade protection
- Backup: Daily backups, 30-day retention
Server Software
Java Servers
Server Software: Paper (fork of Spigot)- Latest versions for performance
- Regular security updates
- Plugin support
Bedrock Server
Server Software: BDS (Bedrock Dedicated Server)- Official Microsoft server
- Cross-platform compatibility
- Regular updates
Database
System: PostgreSQL 14- Player accounts and progression
- Economy data
- Chat logs and moderation records
- Scheduled backups
Cache Layer
System: Redis- Session caching
- Real-time data
- Command rate limiting
- Performance optimization
Performance Monitoring
Uptime Monitoring
- Tool: Nagios + Grafana
- Alerts: Instant notifications
- Response Time: < 15 minutes
- Status Page: status.z-craft.xyz
Metrics Tracked
- Server CPU and memory usage
- Player count and connection rate
- Network I/O and latency
- Database query performance
- Plugin performance
- Error rates and logs
Performance Targets
- TPS (Ticks Per Second): 19.8-20 (optimal)
- Ping (Average): < 50ms
- Uptime: 99.9% monthly
- Database Response: < 100ms
- Backup Completion: < 30 minutes
Backup & Disaster Recovery
Backup Schedule
| Type | Frequency | Retention | Location |
|---|---|---|---|
| Hourly | Every hour | 24 hours | Local storage |
| Daily | 3 AM UTC | 30 days | Off-site storage |
| Weekly | Sundays | 3 months | Encrypted cloud |
| Monthly | 1st of month | 1 year | Secure archive |
Recovery Procedures
Full Server Recovery:- Notify players of outage
- Stop all servers
- Restore from latest backup
- Verify data integrity
- Restart servers gradually
- Monitor for issues
- Restore specific world regions
- Recover player data
- Reverse recent transactions
- Update affected players
Security Measures
Network Security
- Firewall: Enterprise firewall with DDoS protection
- IP Filtering: Whitelist/blacklist for abuse prevention
- Rate Limiting: Prevent brute force attacks
- SSL/TLS: Encrypted connections
- VPN Access: For staff administration
Server Security
- Plugin Validation: Scan all plugins before deployment
- Regular Updates: Security patches applied immediately
- Permissions: Minimal privilege principle
- Logs: Comprehensive audit trails
- Intrusion Detection: Monitor for unauthorized access
Account Security
- Password hashing (bcrypt)
- Session tokens
- IP verification
- 2FA support
- Account lockout protection
Performance Optimization
Java Tuning
Paper Optimizations
- Async chunk loading
- Entity-per-chunk limits
- Reduced lag generators
- Optimized pathfinding
- Efficient spawning algorithms
Network Optimization
- Compression enabled for players > 100ms ping
- View distance adjustment per client
- Entity culling
- Chunk loading optimization
- Player list updates throttled
Plugin Architecture
Custom Plugins
Core Plugins:- Economy System
- Land Claims
- Teleportation
- Player Shops
- Guild System
- Job System
- Quest System
Plugin Communication
- EventBus for inter-plugin communication
- Shared API for data access
- Database synchronization
- Cache invalidation
Plugin Safety
- Sandboxed execution
- Permission verification
- Crash isolation
- Memory limits per plugin
- Automatic restart on crash
Scalability
Current Capacity
- Max Players: 1000 per server
- Simultaneous Total: 5000+ across network
- Database: 1 million+ player records
Scaling Strategy
Horizontal Scaling:- Add servers as player count grows
- Load balancer distribution
- Database replication
- Upgrade hardware specs
- Optimize code
- Cache improvements
Growth Plan
- Monitor player growth
- Capacity planning quarterly
- Scale proactively
- Load testing before expansion
Disaster Recovery Plan
Natural Disasters
- Backup Data Centers: Multiple geographic locations
- Cloud Redundancy: Off-site encrypted backups
- Network Redundancy: Multiple ISP connections
Cyberattacks
- DDoS Mitigation: Enterprise protection
- Incident Response: 24/7 monitoring
- Security Updates: Rapid patching
- Communication: Transparent player updates
Data Loss
- Hourly Backups: Minimal data loss
- Encrypted Storage: Secure backup storage
- Recovery Testing: Monthly drills
- Multiple Copies: Geographically distributed
Questions about infrastructure? Contact staff ๐ง
