Skip to content

Commit

Permalink
Use correct health check URL in Solr
Browse files Browse the repository at this point in the history
Also increase the timeout, since Solr is sometimes slow to answer.
  • Loading branch information
Stefan Bethke committed Dec 5, 2023
1 parent 942c8e7 commit 6b0707c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,9 @@ public Probe getStartupProbe() {
return new ProbeBuilder()
.withPeriodSeconds(10)
.withFailureThreshold(30)
.withTimeoutSeconds(15)
.withHttpGet(new HTTPGetActionBuilder()
.withPath("/solr")
.withPath("/solr/admin/info/health")
.withPort(new IntOrString("http"))
.build())
.build();
Expand All @@ -348,8 +349,9 @@ public Probe getLivenessProbe() {
return new ProbeBuilder()
.withPeriodSeconds(10)
.withFailureThreshold(20)
.withTimeoutSeconds(15)
.withHttpGet(new HTTPGetActionBuilder()
.withPath("/solr")
.withPath("/solr/admin/info/health")
.withPort(new IntOrString("http"))
.build())
.build();
Expand All @@ -364,8 +366,9 @@ public Probe getReadinessProbe() {
return new ProbeBuilder()
.withPeriodSeconds(10)
.withFailureThreshold(10)
.withTimeoutSeconds(15)
.withHttpGet(new HTTPGetActionBuilder()
.withPath("/solr")
.withPath("/solr/admin/info/health")
.withPort(new IntOrString("http"))
.build())
.build();
Expand Down

0 comments on commit 6b0707c

Please sign in to comment.