File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1+ - bump : patch
2+ changes :
3+ changed :
4+ - Attempted to fix deployments using gunicorn preload option and modified readiness check timeouts
Original file line number Diff line number Diff line change @@ -12,13 +12,19 @@ automatic_scaling:
1212 target_utilization : 0.8
1313liveness_check :
1414 path : " /liveness-check"
15- check_interval_sec : 30
16- timeout_sec : 30
15+ check_interval_sec : 30 # Check every 30 seconds
16+ timeout_sec : 30 # Allow 30 seconds for a response
1717 failure_threshold : 5
1818 success_threshold : 2
19+ initial_delay_sec : 60 # Don't check for first 60 seconds to allow full boot
1920runtime_config :
2021 operating_system : " ubuntu22"
2122 runtime_version : " 22"
2223readiness_check :
2324 path : " /readiness-check"
24- app_start_timeout_sec : 600
25+ check_interval_sec : 30
26+ timeout_sec : 30
27+ failure_threshold : 5
28+ success_threshold : 2
29+ initial_delay_sec : 60
30+ app_start_timeout_sec : 900
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ WORKER_COUNT="${WORKER_COUNT:-3}"
55REDIS_PORT=" ${REDIS_PORT:- 6379} "
66
77# Start the API
8- gunicorn -b :" $PORT " policyengine_api.api --timeout 300 --workers 5 &
8+ gunicorn -b :" $PORT " policyengine_api.api --timeout 300 --workers 5 --preload &
99
1010# Start Redis with configuration for multiple clients
1111redis-server --protected-mode no \
You can’t perform that action at this time.
0 commit comments