System
Health Check
Check the health status of WuKongIM server and cluster
GET
Overview
The health check endpoint is used to monitor the operational status of WuKongIM server and cluster, ensuring the system is running normally.Response Fields
Health status:
ok indicates normal, error indicates abnormalError message (only appears when status is error)
Status Codes
| Status Code | Description |
|---|---|
| 200 | Server health status is normal |
| 500 | Server or cluster status is abnormal |
Use Cases
Load Balancer Health Checks
Nginx Configuration:Container Orchestration
Docker Compose:Monitoring and Alerting
Prometheus Monitoring:Application Integration
Service Discovery:Best Practices
- Monitoring Frequency: Recommended to check health status every 30-60 seconds
- Timeout Settings: Set reasonable timeout values to avoid false alarms
- Load Balancing: Can be used for load balancer health checks
- Container Orchestration: Suitable for Docker and Kubernetes health check configurations
- Alerting Mechanism: Integrate with monitoring systems for automated alerting
- Graceful Degradation: Implement fallback mechanisms when health checks fail
- Circuit Breaker: Use circuit breaker pattern to handle unhealthy services
- Logging: Log health check results for troubleshooting and analysis

