Skip to content

Commit bdbec67

Browse files
committed
Configure readiness probe with longer timeout for web proc
In case of heavy load on web servers the GET request may take longer and the worst thing to do is remove an healthy web process during the traffic spike.
1 parent 5f4a708 commit bdbec67

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/cuber/templates/deployment.yml.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ spec:
197197
value: <%= URI.parse(@options[:health]).host.to_json %>
198198
- name: X-Forwarded-Proto
199199
value: <%= URI.parse(@options[:health]).scheme.to_json %>
200+
initialDelaySeconds: 0
201+
periodSeconds: 10
202+
timeoutSeconds: 5
203+
successThreshold: 1
204+
failureThreshold: 3
200205
<%- end -%>
201206
<%- if @options[:migrate] && @options[:migrate][:check] -%>
202207
initContainers:

lib/cuber/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Cuber
2-
VERSION = '1.9.0'.freeze
2+
VERSION = '1.10.0'.freeze
33
end

0 commit comments

Comments
 (0)