当前位置:网站首页>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 .
边栏推荐
- Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
- Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
- Sword finger offer question brushing record 1
- Gd32f4xx serial port receive interrupt and idle interrupt configuration
- three. JS gorgeous bubble effect
- Mise en place d'un environnement de développement OP - tee basé sur qemuv8
- Windows Auzre 微软的云计算产品的后台操作界面
- Jafka来源分析——Processor
- Aardio - 通过变量名将变量值整合到一串文本中
- Uniapp setting background image effect demo (sorting)
猜你喜欢
DR-Net: dual-rotation network with feature map enhancement for medical image segmentation
MySQL ---- first acquaintance with MySQL
C# 三种方式实现Socket数据接收
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
Web APIs DOM time object
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
Slide the uniapp to a certain height and fix an element to the top effect demo (organize)
On the problems of born charge and non analytical correction in phonon and heat transport calculations
signed、unsigned关键字
机试刷题1
随机推荐
[leetcode] 19. Delete the penultimate node of the linked list
BasicVSR_PlusPlus-master测试视频、图片
npm无法安装sharp
枚举与#define 宏的区别
MATLAB小技巧(27)灰色预测
Pit encountered by handwritten ABA
Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
QT信号和槽
pytorch_ Yolox pruning [with code]
How to confirm the storage mode of the current system by program?
Project duplicate template
uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
Uniapp setting background image effect demo (sorting)
MySQL----初识MySQL
(18) LCD1602 experiment
NPM cannot install sharp
Mise en place d'un environnement de développement OP - tee basé sur qemuv8
On the problems of born charge and non analytical correction in phonon and heat transport calculations
MySQL authentication bypass vulnerability (cve-2012-2122)