Skip to content

Commit

Permalink
Configure readiness probe with longer timeout for web proc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
collimarco committed Jun 7, 2024
1 parent 5f4a708 commit bdbec67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/cuber/templates/deployment.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ spec:
value: <%= URI.parse(@options[:health]).host.to_json %>
- name: X-Forwarded-Proto
value: <%= URI.parse(@options[:health]).scheme.to_json %>
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
<%- end -%>
<%- if @options[:migrate] && @options[:migrate][:check] -%>
initContainers:
Expand Down
2 changes: 1 addition & 1 deletion lib/cuber/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Cuber
VERSION = '1.9.0'.freeze
VERSION = '1.10.0'.freeze
end

0 comments on commit bdbec67

Please sign in to comment.