Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sdeleuze/spring-boot-crac-demo
https://github.com/sdeleuze/spring-boot-crac-demo
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sdeleuze/spring-boot-crac-demo
- Owner: sdeleuze
- License: apache-2.0
- Created: 2023-05-10T07:54:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-11T13:47:12.000Z (about 2 months ago)
- Last Synced: 2024-10-11T16:11:25.062Z (27 days ago)
- Language: Shell
- Size: 89.8 KB
- Stars: 75
- Watchers: 5
- Forks: 21
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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](https://docs.spring.io/spring-framework/reference/6.1/integration/checkpoint-restore.html#_on_demand_checkpointrestore_of_a_running_application) with:
```
./checkpoint.sh
```Or to run an [automatic checkpoint/restore at startup](https://docs.spring.io/spring-framework/reference/6.1/integration/checkpoint-restore.html#_automatic_checkpointrestore_at_startup) with:
```
./checkpointOnRefresh.sh
```### Step 2: Restore
Restore the application with:
```
./restore.sh
```