Demo app with PostgreSQL cluster (Spring Boot)
Java 17+
Spring Boot 3.0+
./../gradlew bootRun\
--args='--spring.profiles.active=default'\
-PjvmArgs="-XX:MinHeapSize=300m -XX:InitialHeapSize=500m -XX:MaxHeapSize=500m -XX:+ExitOnOutOfMemoryError -XX:MaxMetaspaceSize=200m -XX:MetaspaceSize=100m -XX:CompressedClassSpaceSize=50m -XX:ReservedCodeCacheSize=50m -XX:MaxDirectMemorySize=20m -XX:+AlwaysActAsServerClassMachine -XX:+UseG1GC -XX:ActiveProcessorCount=2 -XX:+PrintFlagsFinal -XX:NativeMemoryTracking=summary -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics"
curl http://localhost:8090/actuator/health
curl http://localhost:8080/api/v1/employee/dcffa631-595a-44e6-8f8c-1c077de895bf
curl -i -X POST -d "{\"firstName\": \"John\",\"lastName\": \"Wick\",\"standardHoursPerDay\": 8,\"salaryPerHour\": 5000}" http://localhost:8080/api/v1/employee -H "Content-Type: application/json"
curl http://localhost:8080/api/v1/employee/all
curl -i -X POST http://localhost:8080/api/v1/cluster/failover