Overview
Oyasai Server Platform implements comprehensive monitoring through Docker health checks, RCON remote console access, and automated logging systems.Health Checks
The Minecraft server container includes built-in health monitoring:packages/cdktf/src/stacks/docker-stack.ts
Health Check Configuration
Command to execute for health check:
["mc-health"]Grace period during server startup before health checks begin
Time between health check executions
Number of consecutive failures before marking container unhealthy
Monitoring Health Status
Check the health status of running containers:RCON Remote Console
RCON provides remote administration capabilities:Connection Configuration
Common RCON Commands
Server Status
Server Status
Player Management
Player Management
Server Control
Server Control
Logging System
The server implements rolling logs with timestamps:Log Configuration
Enable automatic log rotation to prevent disk space issues
Add timestamps to all log entries for easier debugging
Viewing Logs
Container Monitoring
Resource Usage
Monitor container resource consumption:Memory Allocation
Memory is configured per environment:- Production
- Development
- Local
Network Monitoring
Port Status
Monitor network connectivity:Network Traffic
Database Monitoring
The MariaDB container requires separate monitoring:packages/cdktf/src/stacks/docker-stack.ts
Database Health Checks
Restart Policies
All production containers use automatic restart policies:- Containers restart automatically after crashes
- Containers remain stopped if manually stopped
- Server survives host reboots
Graceful Shutdown
The Minecraft container implements graceful shutdown:Performance Optimization
JVM Flags
Production servers use optimized JVM flags:- Optimized garbage collection
- Better memory management
- Improved server performance
These flags are disabled in local development to reduce resource usage.
Alerting and Notifications
Custom Plugin Monitoring
The OyasaiAdminTools plugin supports webhook notifications:plugins/OyasaiAdminTools/config.yml
- Server startup/shutdown notifications
- Error alerts
- Player events
- Custom admin notifications
Monitoring Best Practices
Regular Health Checks
Monitor container health status daily to catch issues early
Log Rotation
Enable rolling logs to prevent disk space exhaustion
Resource Limits
Set appropriate memory limits based on player count and plugins
Backup Verification
Regularly verify backup integrity and restoration procedures
Troubleshooting
Container keeps restarting
Container keeps restarting
Check container logs for errors:Verify health check passes:Check available memory:
High memory usage
High memory usage
Reduce allocated memory or adjust JVM flags:
Players can't connect
Players can't connect
Verify ports are exposed:Check firewall rules:Test connectivity:
Next Steps
Backups
Configure automated backup strategies
Server Configuration
Optimize server performance settings