Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

"actual combat" open source project dockerized operation and maintenance deployment-the beginning (1)

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Original articles, welcome to reprint. Reprint please indicate: reproduced from IT Story Association, thank you!

Original link address: "actual combat" open source project dockerization operation and maintenance deployment-opening (1)

"Advanced article" promised that we should find an Internet open source project for docker containerization deployment, the Chinese are best at not innovation but transformation, Tencent is not always follow other people, so that others have no way to go. Many relatively good open source projects in github and gitee are not recommended to plagiarize completely. In fact, why don't others use them and write them themselves? after all, the technology is updated so fast that they can be on the shoulders of giants and never crawl slowly from the bottom of the sea. Officially, this time I found a good open source code on the Internet, https://www.renren.io/community/project, thank the author for his open source, let's start on his basis!

Purpose

If it is true for a project, do a high-load, high-availability, high-performance deployment solution. Take an open source project on the Internet as an example to talk about the whole process of distributed cluster operation and maintenance deployment.

Large scale project

If you use a single node, the preferred performance will be very poor, secondly, because there are no redundant nodes, once a node downtime, there will be business downtime of the whole system. The scheme of all cluster conversations is inevitable, and we are going to use 5-node mysql cluster, 6-node redis cluster, 3-node tomcat cluster and 2-node nginx node. Besides the clusters mentioned above, you need to master haproxy and nginx. Keeplive will also be used to achieve dual-server hot backup, so that it will be highly available after deployment. In this way, we can achieve high availability, high performance and high load.

The cache database front-end project back-end project works with me to learn about the architecture of the Internet, stateless session and stateful session. Stateless container. Distributed architecture design. If docker completes the distribution. The solution of large-scale Internet Design Architecture, talk about the state of ordinary people.

Start the database, run a java project, and run the front-end project. Do not see large Internet high load, high availability, high performance, all think the code they write is very powerful, but only in the development environment, if the java memory overflow in the development environment, the whole project can not be seen, in the development environment is a single node. In other words, what is the use of your code in Niu? It's no use hanging up in Niu's code service, buddy! Only when the code is deployed to the cluster environment, can it show high load, high availability, and high performance. So the cluster must have!

Cluster

There are clusters at the front end and clusters at the back end. Redis is a cluster, and mysql is a cluster. Only by using clusters can you make the project highly available, high-performance, and highly available. At the beginning, all the projects I developed were executed by a mysql, and the response of a mysql was very slow. After the database uses a cluster, multiple database clusters will respond to requests, which must be much faster than before. If a database node goes down, there will be an outage and node replacement in advance. On the one hand, more clusters also require load balancing and dual-server hot backup, which is actually much more complex than the figure below.

I also want to say

It is not mainly about the development, nor the module of the development business, but the focus is on the technical manager. How to deploy and build the cluster of the project? the open source project I am looking for is just more suitable for actual combat. If you have a ready-made project, you can use your own project.

Hang up one node and there are other nodes to use, this is high availability, right? The cluster handles more requests, which is high performance and high load, right?

PS: in addition to the previous docker series in the advanced article, they are also quite approachable, how to connect docker with actual development. Make docker truly approachable. Find a project and get started!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report