Date post: | 13-Apr-2017 |
Category: |
Technology |
Upload: | yongki-kim |
View: | 96 times |
Download: | 0 times |
RED HAT ENTERPRISE LINUX 7 2
• 프로세스의 현재 상태 저장• 이전 상태 복원 기능 (checkpoint 전으로 )• Checkpoint 된 프로세스의 모든 정보는 하나이상의 이미지 파일로
저장됨 ( 저장정보 : memory pages, file descriptors, inter-process
communication, and so on)• 같은 시스템 또는 다른 시스템에 프로세스 복원• 컨테이너 라이브 마이그레이션 같은 용도로 사용됨• Tech Preview on RHEL7.2
CRIU
Checkpoint / Restore In User space
https://access.redhat.com/articles/2455211
RED HAT ENTERPRISE LINUX 7 3
• HPC 환경을 위해 개발• 하나의 어플리케이션이 수백 , 수천 코어에 분산되어 실행되는
환경에 적합• 특히 어플리케이션이 실패할 경우 , 전체 CPU 사용된 것이
쓸모없게 되고 데이터도 손실되는 약점을 CRIU 로 해소
• 어플리케이션과의 호환성 검토 필요
• 초기에는 관심받지 못하다가 container migration 으로 각광
CRIU
Birth of CR
RED HAT ENTERPRISE LINUX 7 4
1) criu on command
CRIU
How to Use
2) criu in docker
- checkpoint container status
- restore checkpoint image
https://circleci.com/blog/checkpoint-and-restore-docker-container-with-criu/
RED HAT ENTERPRISE LINUX 7 5
• CRIU can only checkpoint and restore processes using inter-process communication (IPC)
• This means that CRIU always checkpoints and restores a parent process and all its child processes
• the PID must stay the same. A CRIU restore process fails if the intended PID is in use
CRIU
Limitations