Skip to content

Commit

Permalink
Add http health
Browse files Browse the repository at this point in the history
  • Loading branch information
ywei2017 committed Dec 21, 2020
1 parent 3dbbe3c commit 50b7b43
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
15 changes: 11 additions & 4 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@ applications:
- name: spring-music
memory: 1G
random-route: true
buildpacks:
- java_buildpack_offline

#uncomment next 2 lines to disable buildpack autodetect
#buildpacks:
#- java_buildpack_offline

path: build/libs/spring-music-1.0.jar
health-check-type: http
health-check-http-endpoint: /actuator/health
env:
JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{enabled: false}'
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 11.+ } }'
# JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 11.+ } }'

#Enable graceful shutdown to avoid 502 errors
SPRING_APPLICATION_JSON: '{ "server.shutdown": "graceful", "spring.lifecycle.timeout-per-shutdown-phase": "10s" , "sever.max-keep-alive-requests": -1}'

#A side car example
#A side car example, "command" can be anything that you ship with spring-music-1.0.jar
#sidecars:
#- name: connection-collector
# process_types: [ 'web' ]
Expand Down

0 comments on commit 50b7b43

Please sign in to comment.