feat(zns-import): Healthchecks optimiert und Konsul-Discovery erweitert

Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
This commit is contained in:
2026-04-16 14:57:30 +02:00
parent f3d5651ab7
commit 29c35c524b
5 changed files with 41 additions and 24 deletions
@@ -28,9 +28,12 @@ spring:
discovery:
enabled: ${CONSUL_ENABLED:true}
register: ${CONSUL_ENABLED:true}
prefer-ip-address: ${SPRING_CLOUD_CONSUL_DISCOVERY_PREFER_IP_ADDRESS:true}
service-name: ${spring.application.name}
health-check-path: /actuator/health
health-check-interval: 10s
instance-id: ${spring.application.name}-${server.port}-${random.uuid}
health-check-interval: 15s
instance-id: ${spring.application.name}:${server.port}:${random.uuid}
hostname: ${SPRING_CLOUD_CONSUL_DISCOVERY_HOSTNAME:localhost}
management:
endpoints:
web:
@@ -39,6 +42,8 @@ management:
endpoint:
health:
show-details: always
probes:
enabled: true
app:
service-name: ${spring.application.name}