Simple analysis of operation and maintenance of mainstream Linux architecture

Source: Internet
Author: User
Tags nginx reverse proxy

With the continuous development of IT operations, especially the rapid development of Linux, more and more enterprises began to use the Linux operating system platform, such as CentOS, RedHat, Ubuntu, Fedora and so on, hundreds of thousands of web sites emerging in the Internet today, The internet has become an essential tool, so today we share the discussion with the most current Linux mainstream site architecture: lvs+keepalived (Heartbeat) +squid+nginx/apache+java/php+mysql/ Mariadb and so on. Share a simple topology diagram for your classmates to refer to the experiment

650) this.width=650; "class=" AlignCenter size-full wp-image-56507 "src=" http://www.linuxprobe.com/wp-content/ Uploads/2017/03/arch1.jpg "width=" 651 "height=" 509 "style=" Height:auto;margin-left:auto;margin-right:auto; "/>

General web site is divided into four layers, in order to front-end load balancing, intermediary agents, backend services, database layer.

Of course, in addition to this overall process, different companies expand a lot of things, various systems continue to add to this architecture, forming a very large, complex system. Then let's take a look at the details of each level OPS person:

LVS Load Balancer Layer

LVS Load balancer layer is mainly used to protect against large traffic and forwarding data functions, generally based on the TCP/IP four layer protocol forwarding, according to different internal environment use of the forwarding method is not the same, usually Dr mode efficiency is higher, lvs+keepalived combination, can use keepalived to manage our entire configuration file, so that the balance becomes simple and practical, can be various planning to check the back-end nginx or squid service is normal.

LVS Simple Operation principle: the user requests LVs Vip,lvs according to the forwarding method and the algorithm, forwards the request to the back-end server, the back-end server receives the request, returns to the user, for the user, cannot see the Web backend concrete application.

OPS personnel in the maintenance LVs, need to pay close attention to the current number of LVS and the system LVS log. Monitor the status of VIP, real IP, number of connections through monitoring platform.

Nginx Reverse proxy layer

Nginx is currently the mainstream high-performance Web server, nginx because of very good stability, rich feature set, sample configuration files and low system resources consumption and other advantages, the current development momentum is very hot.

Nginx is mainly based on 7-tier applications, able to implement a variety of rules forwarding, reverse proxy our back-end Java, PHP dynamic server, while nginx itself processing static pages of the ability of the official theory concurrent 5w/s, while Nginx can also be used as a cache server to store our static page cache, Performance is comparable to squid.

As an IT operations personnel in the daily operations, the need for long-term attention to the overall operation of the site, analysis of site bottlenecks, and constantly optimize the parameters of nginx, and ensure that nginx and back-end service connection is abnormal and so on.

Back-end service tiers

Backend store our real site and back-end services, through the front-end Nnginx call, back-end common service parsing software, if it is JSP language, containers for Tomcat, Resin, WebLogic and so on.

If it is a PHP program, we need to install the PHP environment to parse the PHP code, and then through the front-end nginx reverse proxy provided to the user access.

In the daily operations, we need to pay attention to the monitoring of the backend service layer, and the number of connections, to real-time attention and monitoring of the normal back-end services, configuration multi-instance, redundant cases.

Database tier

Currently the main Internet database has MySQL, MARIADB, MongoDB, Oracle and so on, for the database is the core layer of the entire architecture, and data is the survival of the enterprise, so the database architecture and maintenance is also crucial. Medium and large Internet companies have their own full-time DBAs who are responsible for running and maintaining MySQL.

For IT operations personnel in the maintenance of the database needs to pay close attention to database concurrency, connection pool and other changes, focus on the database master-slave, read and write separation status and log changes, and make a complete backup mechanism to complete the database backup, there are problems in time to deal with.

Original address:http://www.linuxprobe.com/linux-main-architecture.html

This article is from the "blog" blog, please be sure to keep this source http://coderhsf.blog.51cto.com/12629645/1914932

Simple analysis of operation and maintenance of mainstream Linux architecture

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.