Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] CRaC POC #8743

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

[WIP] CRaC POC #8743

wants to merge 5 commits into from

Conversation

danielkec
Copy link
Contributor

@danielkec danielkec commented May 10, 2024

Helidon MP on CRaC

Coordinated Restore at Checkpoint

Helidon MP Implicit example on CRaC

examples/crac/README.md

mvn clean package
docker build --build-arg CR_DIR=~/cr -t crac-helloworld . -f Dockerfile.crac
# First time ran, checkpoint is created, stop with Ctrl-C
docker run --privileged -p 7001:7001 --name crac-helloworld crac-helloworld
# Second time starting from checkpoint, stop with Ctrl-C
docker start -i crac-helloworld

Workaround for: Error (criu/cr-dump.c:203): 18 has rseq but kernel lacks get_rseq_conf feature

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 10, 2024
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
@danielkec danielkec mentioned this pull request May 24, 2024
@rvansa
Copy link

rvansa commented May 28, 2024

Hi @danielkec , I've played with this a bit to let CRaC checkpoint the webserver after it starts: https://github.com/rvansa/helidon/tree/crac-poc
I've manually checked that I can curl localhost:7001, then execute docker exec -it crac-helloworld jcmd helidon-examples-microprofile-hello-world-implicit.jar JDK.checkpoint and then curl it again. There might be some synchronization pecularities missing, but the code looks like the only synchronization I need is with LoomServer.start()/stop() methods as provided. Let me know if I am wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants