当前位置:网站首页>Cloud native technology container knowledge points
Cloud native technology container knowledge points
2022-07-06 22:43:00 【Beipiao's vegetable Xiaobai】
Part of this article is excerpted from CNCF The official account : Link address
About resources
Any resource of the server is valuable , especially CPU, But in actual production activities , Utilization of resources , But not very high , Can occupy the server 50% It's already very good
How to save resources
The rational allocation of resources is to make full use of servers , The most effective way to reduce costs , The simplest and most effective way , Is to use containers
Why containers compare VM Can improve resource utilization ?
The resource isolation occupation of virtualization itself 10%, The container itself does not occupy more than 1%. This is because Docker Using the host kernel , Without the need for Guest OS. therefore , When you create a new container ,Docker There is no need to reload an operating system like a virtual machine , This avoids guidance 、 Loading the operating system kernel is a time-consuming and resource-consuming process .
When you create a new virtual machine , Virtual machine software needs to be loaded Guest OS, This new process is minute level , and Docker Because of the direct use of the host's operating system, this process is omitted , Containers only need the necessary running environment to start , Including file system 、 The system class library 、shell Environmental Science . Therefore, the boot is lighter than the virtual machine .
The positioning and capabilities of containers and virtualization are different , It also enables applications to run in containers and make full use of resources . It mainly includes the following points :
- When containers use resources , Can be based on Limit/Request Mechanism , Give containers elastic resource allocation .
- The container is extremely simple / Automatic capacity expansion and contraction , The application can be deployed , It is not necessary to allocate resources according to the maximum resource needs at the beginning , You can only add instances quickly when you need them .
- When the container encounters failure or resource preemption conflict , It can automatically migrate to other nodes with resources .
Based on the above three points , So that resources can be used more fully and effectively

Why containers are lighter , What is the mechanism of the container ?
The container is similar to VM, But they have a relaxed isolation property , The operating system can be shared between applications (OS). therefore , Containers are considered lightweight . Container and VM similar , Has its own file system 、CPU、 Memory 、 Process space, etc . Because they are separated from the infrastructure , So you can cross clouds and OS Release version for migration .
Docker yes LXC(Linux Container) and AUFS(AnotherUnionFS) A combination :LXC Is responsible for resource management ,AUFS Is responsible for image management ; Include Cgroup,
Namespace,Chroot And so on , And pass Cgroup Resource management , The three are actually one ring after another .Cgroup Is to implement resource management at the bottom ,LXC stay Cgroup There's a layer of packaging on it , And then Docker And in the LXC It encapsulates a layer of .
边栏推荐
- 枚举与#define 宏的区别
- pytorch_YOLOX剪枝【附代码】
- Self made j-flash burning tool -- QT calls jlinkarm DLL mode
- Uniapp setting background image effect demo (sorting)
- Aardio - Method of batch processing attributes and callback functions when encapsulating Libraries
- Mise en place d'un environnement de développement OP - tee basé sur qemuv8
- 2022-07-05 use TPCC to conduct sub query test on stonedb
- GD32F4XX串口接收中断和闲时中断配置
- HDU 5077 NAND (violent tabulation)
- Const keyword
猜你喜欢

软考高级(信息系统项目管理师)高频考点:项目质量管理

Aardio - 封装库时批量处理属性与回调函数的方法

MySQL----初识MySQL

视图(view)

剑指offer刷题记录1

Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)

剪映+json解析将视频中的声音转换成文本

UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop
![[leetcode] 19. Delete the penultimate node of the linked list](/img/ab/25cb6d6538ad02d78f7d64b2a2df3f.png)
[leetcode] 19. Delete the penultimate node of the linked list

Aardio - 不声明直接传float数值的方法
随机推荐
2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9
Dealing with the crash of QT quick project in offscreen mode
Uniapp setting background image effect demo (sorting)
(18) LCD1602 experiment
config:invalid signature 解决办法和问题排查详解
专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
Jafka source analysis processor
第十九章 使用工作队列管理器(二)
MySQL教程的天花板,收藏好,慢慢看
Some suggestions for foreign lead2022 in the second half of the year
cuda 探索
Improving Multimodal Accuracy Through Modality Pre-training and Attention
Is there any requirement for the value after the case keyword?
Aardio - 通过变量名将变量值整合到一串文本中
HDU 5077 NAND (violent tabulation)
Aardio - Method of batch processing attributes and callback functions when encapsulating Libraries
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
Build op-tee development environment based on qemuv8
sizeof关键字
How to confirm the storage mode of the current system by program?