server.port=6161
management.endpoints.web.base-path=/actuator
management.endpoint.health.probes.enabled=true
management.health.livenessState.enabled=true
management.health.readinessState.enabled=true
management.endpoints.web.exposure.include=health,info

management.endpoint.health.show-details=always

# Enable health check logging
logging.level.com.iluwatar.health.check=DEBUG

# H2 Database configuration
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect

# H2 console available at /h2-console
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console

# JPA Hibernate ddl auto (none, update, create, create-drop, validate)
spring.jpa.hibernate.ddl-auto=create
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.use_sql_comments=true

# Show SQL statements
spring.jpa.show-sql=true

# Custom health check configuration
health.check.timeout=10
health.check.cache.evict.interval=60000

# CPU health check configuration
cpu.system.load.threshold=95.0
cpu.process.load.threshold=70.0
cpu.load.average.threshold=10.0
cpu.warning.message=CPU usage is high

# Retry configuration
retry.backoff.period=2000
retry.max.attempts=3

# Memory health check configuration
memory.usage.threshold = 0.8