To use the HTTP option your manifest.yml would look like this
---
applications:
- name: pas-cf-manifest
memory: 756M
instances: 1
hostname: pas-cf-manifest
path: ./target/demo-0.0.1-SNAPSHOT.jar
health-check-type: http
health-check-http-endpoint: /health
stack: cflinuxfs2
timeout: 80
env:
JAVA_OPTS: -Djava.security.egd=file:///dev/urandom
NAME: Apples
Using a HTTP endpoint such as "/health" is possible once you add the Spring Boot Actuator maven dependency as follows
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
More Information
https://docs.run.pivotal.io/devguide/deploy-apps/healthchecks.html
No comments:
Post a Comment