当前位置:网站首页>[Xiaobai chat cloud] suggestions on container transformation of small and medium-sized enterprises
[Xiaobai chat cloud] suggestions on container transformation of small and medium-sized enterprises
2022-07-02 15:56:00 【Hua Weiyun】
Suggestions on container transformation of small and medium-sized enterprises
Enterprises Application of container transformation , There are generally three ways :
• Mode one : The monomer is applied as a whole container , The application code and architecture will not be changed .
• Mode two : Upgrade the application frequently , Or the components with high requirements for elastic expansion are disassembled , Container this part of the component .
• Mode three : Make a comprehensive microservice architecture transformation of the application , And then container it separately .
For small and medium-sized enterprises , It is the first time to make container transformation , It is suggested to choose mode 1 , The main advantages are :
• Business 0 modify : The application architecture and code do not need to be changed .
• Improve deployment and upgrade efficiency : Applications can be built as container images , Ensure the consistency of the application environment , Improve deployment efficiency .
• Reduce resource costs :Docker High utilization of system resources . Compared with virtual machine technology , A host with the same configuration , It's often possible to run more applications .
After determining the transformation mode of containerization , Enterprises can start to transform . Take the recent transformation of a small and medium-sized enterprise as an example .
The current situation of the enterprise : The enterprise currently 2 platform web Server as front end ,mysql database , Software load balancer , No database middleware , Back end EVS Cloud drive .
Enterprise transformation point :
1、 Load balancing application transformation point : Choose the right load balancer . Generally, small and medium-sized Web Applications can use ngnix or HAProxy, Large websites or important services can be used LVS, At present, the business scale of the enterprise is small , selection nginx As load balancer ;
2、web Application transformation point : The application has a long execution request . Add message queue , Decouple long tasks from user requests through message queuing .
3、 Application server application transformation point : Application instances rely on local storage to persist data . Log suggestions become streams converged into distributed log systems . If you have to use storage , Use a shared file system such as NFS.
4、 Resource and Cluster Planning : At present, single cluster planning is adopted ( Suppose there are other application projects in cloud resources ), Show me the intention as follows :
5、 High availability planning
• Respectively in 2 individual AZ Two sets are deployed in the middle CCE colony ,K8S Master Use local 3 Node high availability deployment .
• application AZ High availability deployment in , adopt ClusterIP Service invocation does not span AZ.
• Application of release LoadBalancer Type of Service Connect to the cluster AZ Fusion ELB Service instance .
• Application passed VIP Access database , The application of automatic database switching is not aware .
• Support more AZ Dynamic container storage , according to pod Where AZ Creating a data volume .
6、 Network planning
By default, applications within the cluster can pass ClusterIP Type services communicate with each other .k8s Built in cluster DNS service , Access between services can be through IP Or domain name access .K8S The interconnection diagram of internal application network is as follows :
Step1:kube-proxy、core-dns from Master in kube-apiserver subscribe service,POD2 Of Service Creation time ,kube-proxy Refresh this node iptables,core-DNS Update routing data .
Step2:Pod2 Access through domain name Pod4 Of service4, Initiated to core-dns Query request , And get the corresponding ClusterIP( If you use ClusterIP Direct access ignores this step )
Step3:Pod2 Send business message , The destination address is obtained ClusterIP. The container network matches the policy according to the destination address VxLAN encapsulation , The package source address is the container VM IP Address , The destination address is the destination container VM IP, And send the message to I layer vSwitch, Then forward to the destination container VM, Container network solution VxLAN After encapsulation , according to ClusterIP Send the business message to service And POD.
边栏推荐
- Comparison between rstan Bayesian regression model and standard linear regression model of R language MCMC
- Nebula Graph & 数仓血缘关系数据的存储与读写
- Boot 中bean配置覆盖
- 已知两种遍历序列构造二叉树
- GraphX 图计算实践之模式匹配抽取特定子图
- 如何实现十亿级离线 CSV 导入 Nebula Graph
- /bin/ld: 找不到 -lcrypto
- [salesforce] how to confirm your salesforce version?
- Digital collection system development (program development) - Digital Collection 3D modeling economic model system development source code
- Analysis of the difference between array and linked list
猜你喜欢
【5G NR】RRC连接释放
[salesforce] how to confirm your salesforce version?
树-二叉搜索树
愛可可AI前沿推介(7.2)
Why does the system convert the temp environment variable to a short file name?
Experiment collection of University "Fundamentals of circuit analysis". Experiment 4 - Research on linear circuit characteristics
Idea public method extraction shortcut key
Two traversal sequences are known to construct binary trees
已知兩種遍曆序列構造二叉樹
HMS core machine learning service helps zaful users to shop conveniently
随机推荐
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
Locate: cannot execute stat() `/var/lib/mlocate/mlocate Db ': there is no such file or directory
Experiment collection of University "Fundamentals of circuit analysis". Experiment 6 - observation and measurement of typical signals
Add an empty column to spark dataframe - add an empty column to spark dataframe
数据库系统概论第一章简答题-期末考得怎么样?
Aike AI frontier promotion (7.2)
【题解】Educational Codeforces Round 82
【小白聊云】中小企业容器化改造建议
构建多架构镜像的最佳实践
Dimension table and fact table in data warehouse
数字藏品系统开发(程序开发)丨数字藏品3D建模经济模式系统开发源码
lseek 出错
Song of cactus - throwing stones to ask the way (2)
可视化技术在 Nebula Graph 中的应用
蚂蚁集团大规模图计算系统TuGraph通过国家级评测
2278. Percentage of letters in string
解决BASE64Encoder报错的问题
全方位解读服务网格(Service Mesh)的背景和概念
PostgresSQL 流复制 主备切换 主库无读写宕机场景
解决** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the defau