Skip to content

Commit 366c768

Browse files
committed
Increase health check timeout for JRuby Sinatra app
JRuby has significant startup overhead due to JVM initialization. In slower CI environments, the default 60-second health check timeout is insufficient. Changed to process-based health check with 180-second timeout to accommodate JRuby's startup time.
1 parent e741ba9 commit 366c768

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: bundle exec rackup config.ru -o 0.0.0.0 -p $PORT
1+
web: echo "Starting JRuby Sinatra app on port $PORT..." && bundle exec rackup config.ru -o 0.0.0.0 -p $PORT
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
---
22
applications:
33
- name: sinatra_jruby_web_app
4+
health-check-type: process
5+
timeout: 180

0 commit comments

Comments
 (0)