odrotbohm / spring-boot-crac-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Boot CRaC demo

This sample project is intended to demonstrate Spring Boot 3.2+ CRaC support by creating a ready to restore container image.

Warning: for real projects make sure to not leak sensitive data in CRaC files since they contain a snapshot of the memory of the running JVM instance.

Step 1: Checkpoint

From within the spring-boot-crac-demo folder, you have the choice to run either on demand checkpoint/restore of a running application with:

./checkpoint.sh

Or to run an automatic checkpoint/restore at startup with:

./checkpointOnRefresh.sh

Step 2: Restore

Restore the application with:

./restore.sh

About

License:Apache License 2.0


Languages

Language:Shell 46.6%Language:Java 41.9%Language:Dockerfile 11.4%