powerpoint presentation sample - lanzhou universityitslab.lzu.edu.cn/download/20191028203007.pdf ·...

19
容器、高性能计算、云 联科集团(中国)有限公司

Upload: others

Post on 24-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

容器、高性能计算、云

联科集团(中国)有限公司

Page 2: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Agenda⚫ Virtualize & Containerize⚫ Docker & Singularity⚫ Capsule & Cloudified HPC

Page 3: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Virtualize & Containerize

Page 4: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

虚拟化

Page 5: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

虚拟化与容器化

虚拟化 容器化

主机操作系统

应用

应用

应用

应用

应用

主机操作系统

虚拟化软件

应用

操作系统

虚拟硬件

硬件驱动

应用

操作系统

虚拟硬件

硬件驱动

Page 6: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

虚拟化与容器化

虚拟化 容器化

模拟出一套完整的硬件 操作系统级别的隔离

强隔离,安全性高 名字空间隔离,安全性较弱

重量级,虚机内运行完整操作系统 轻量级,容器内运行进程

支持不同种类操作系统 与主机共用同一内核

启动慢 实时启动

性能开销较大,尤其是读写密集型 几乎没有性能损失

Page 7: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

虚拟化与容器化

⚫虚拟化引擎⚫ Vmware⚫ Parallels⚫ Hyper-V⚫ VirtualBox⚫ Qemu/KVM

⚫容器化引擎⚫Docker⚫Singularity⚫runc⚫CRI-O⚫Capsule

Page 8: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Docker & Singularity

Page 9: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Docker & Singularity

⚫Docker⚫ Rapid application deployment⚫ Portability across machines⚫ Version control and component reuse⚫ Sharing⚫ Lightweight footprint and minimal overhead ⚫ Simplified maintenance

⚫Singularity⚫ Encapsulation of the environment⚫ Containers are image based⚫ No user contextual changes or root escalation allowed⚫ No root owned daemon processes

Page 10: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Docker: Architecture

Page 11: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Docker: Images

Page 12: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Docker: Principles

• a series of image layers• ephemeral micro service• one process per container

Page 13: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Singularity

⚫Lawrence Berkeley National Lab⚫Containers for Science, Reproducibility and Mobility

⚫ singularity shell /home/public/alpine.sif⚫ singularity exec /home/public/alpine.sif pwd⚫ singularity exec /home/public/alpine.sif whoami⚫ singularity --debug exec /home/public/alpine.sif true⚫ singularity exec -p /home/public/alpine.sif ps au⚫ singularity exec /home/public/alpine.sif env

Page 14: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Singularity: MPI support

mpirun -n NP singularity exec /path/to/image /mpi/program

Page 15: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Capsule & Cloudified HPC

Page 16: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Capsule: Architecture

⚫Container over HPC

Slurm

OS OS OS OS OS OS OS

mpirun

sing

ula

rity

sing

ula

rity

sing

ula

rity

APP2

APP2 APP2

APP1

AP

P4

AP

P5

⚫HPC over Container

Cloud

OS OS OS OS OS OS OS

CAP CAP CAP CAP VM

Slurm

mpirun

APP2 APP2

APP1

CAP CAP

Troque

APP1

VM

VM

APP2

Page 17: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Capsule: Container + HPC + Cloud

Performance

Mobility Elasticity

Singularity Rescale

K8S

HPC

Container Cloud

Page 18: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

Capsule: https://capsule.sh

⚫ capsule images⚫ amd64 + arm64⚫ ( time + space ) capsule⚫ code + data + config⚫ systemd-nspawn compatible

Page 19: Powerpoint Presentation Sample - Lanzhou Universityitslab.lzu.edu.cn/download/20191028203007.pdf · 2019. 11. 18. · ⚫Docker ⚫ Rapid application deployment ⚫ Portability across

DEMO:

⚫平台登陆⚫应用商店⚫虚拟集群⚫作业提交⚫文件传输⚫交互操作