103 lines
2.4 KiB
JSON
103 lines
2.4 KiB
JSON
{
|
|
"worker_status": {
|
|
"running": true,
|
|
"total_workers": 2,
|
|
"queue_size": 0,
|
|
"workers_by_status": {
|
|
"idle": [
|
|
{
|
|
"id": "worker_67ac071e",
|
|
"status": "idle",
|
|
"task_count": 0,
|
|
"error_count": 0,
|
|
"last_task_at": null
|
|
},
|
|
{
|
|
"id": "worker_99f585de",
|
|
"status": "idle",
|
|
"task_count": 0,
|
|
"error_count": 0,
|
|
"last_task_at": null
|
|
}
|
|
],
|
|
"busy": [],
|
|
"starting": [],
|
|
"stopping": [],
|
|
"error": []
|
|
}
|
|
},
|
|
"session_status": {
|
|
"simple_lama": {
|
|
"min": 2,
|
|
"max": 4,
|
|
"total": 2,
|
|
"in_use": 0,
|
|
"available": 2
|
|
},
|
|
"migan": {
|
|
"min": 1,
|
|
"max": 4,
|
|
"total": 1,
|
|
"in_use": 0,
|
|
"available": 1
|
|
},
|
|
"rembg": {
|
|
"min": 1,
|
|
"max": 3,
|
|
"total": 1,
|
|
"in_use": 0,
|
|
"available": 1
|
|
}
|
|
},
|
|
"api_stats": {
|
|
"total_requests": 400,
|
|
"successful_requests": 400,
|
|
"failed_requests": 0,
|
|
"success_rate": 100.0,
|
|
"endpoint_usage": {
|
|
"GET /api/v1/health": 22,
|
|
"GET /docs": 2,
|
|
"GET /openapi.json": 2,
|
|
"GET /api/v1/stats": 374
|
|
},
|
|
"endpoint_stats": {
|
|
"GET /api/v1/health": {
|
|
"count": 22,
|
|
"avg_time": 0.0008184367960149592,
|
|
"min_time": 0.0004703998565673828,
|
|
"max_time": 0.001514434814453125,
|
|
"current_concurrent": 0
|
|
},
|
|
"GET /docs": {
|
|
"count": 2,
|
|
"avg_time": 0.0005669593811035156,
|
|
"min_time": 0.0005576610565185547,
|
|
"max_time": 0.0005762577056884766,
|
|
"current_concurrent": 0
|
|
},
|
|
"GET /openapi.json": {
|
|
"count": 2,
|
|
"avg_time": 0.0098419189453125,
|
|
"min_time": 0.0009410381317138672,
|
|
"max_time": 0.018742799758911133,
|
|
"current_concurrent": 0
|
|
},
|
|
"GET /api/v1/stats": {
|
|
"count": 374,
|
|
"avg_time": 0.0007271456718444824,
|
|
"min_time": 0.0005671977996826172,
|
|
"max_time": 0.0024929046630859375,
|
|
"current_concurrent": 0
|
|
}
|
|
},
|
|
"average_response_time": 0.0007895290851593018,
|
|
"min_response_time": 0.00044035911560058594,
|
|
"max_response_time": 0.018742799758911133,
|
|
"current_concurrent": 0,
|
|
"max_concurrent": 1,
|
|
"requests_per_second": 0.6403491471578444,
|
|
"uptime": 624.6592218875885,
|
|
"recent_errors": []
|
|
},
|
|
"timestamp": 1759240334.0925634
|
|
} |