forked from LengKundee/MQL5-Google-Onedrive
💡 What: Separated the /health endpoint from the main dashboard rendering logic. It now returns a lightweight JSON response. 🎯 Why: The previous implementation rendered the full Markdown dashboard for every health check, consuming unnecessary CPU and I/O resources during frequent polling. 📊 Impact: Reduces health check processing time from file reading + markdown parsing (~milliseconds) to a simple JSON return (~microseconds). 🔬 Measurement: Verified with new test script scripts/test_web_dashboard.py and updated render.yaml/app.yaml to use the new endpoint.
25 lines
368 B
YAML
25 lines
368 B
YAML
runtime: custom
|
|
env: flex
|
|
|
|
# Service name (optional, defaults to default)
|
|
service: default
|
|
|
|
# Hardware resources
|
|
resources:
|
|
cpu: 1
|
|
memory_gb: 2
|
|
disk_size_gb: 10
|
|
|
|
# Scaling settings
|
|
manual_scaling:
|
|
instances: 1
|
|
|
|
# Health checks
|
|
readiness_check:
|
|
path: "/health"
|
|
liveness_check:
|
|
path: "/health"
|
|
|
|
# Environment variables
|
|
env_variables:
|
|
PYTHONUNBUFFERED: "1"
|