Analysis on operation and maintenance of mainstream Linux framework

Source: Internet
Author: User
Tags nginx reverse proxy

Linux is open source, this is the main reason, want to learn Windows,unix sorry, no source code. Because of this, Linux can be as big as a snowball and grow to the size of the present. Today will bring you about Linux mainstream framework operation and maintenance work analysis, we must read carefully oh ~

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, and today we share with you a discussion of the most common Linux-mainstream site architectures currently used:

Lvs+keepalived (Heartbeat) +squid+nginx/apache+java/php

+mysql/mariadb and so on, share a simple topological map for your classmates to reference the experiment

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:

1) The LVS Load balancer layer is as follows:

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.

2) The Nginx reverse proxy layer is as follows:

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.

3) Back-end service tiers are as follows:

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.

4) The database layer is as follows:

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.

Extracurricular knowledge sharing:

In our daily lives, we seem to be dealing with Windows more, and we are actually dealing with Linux silently.

Android has put Linux into the hands of countless mobile device consumers around the world, which is probably the biggest Linux success in the mainstream.

Linux has become an important part of the operating system and is increasingly playing an increasingly important role with its many advantages are inseparable.

First, Linux is a free operating system, which is in stark contrast to Windows.

Linux users can be obtained free of charge through the network or other channels, and can modify their source code arbitrarily.

This is not what other operating systems can do.

It is for this reason that countless programmers from around the world are involved in the modification of Linux,

Writing, programmers can change them according to their own interests and inspirations.

This allows Linux to absorb the essence of countless programmers, growing.

Second, Linux can be fully compatible with the POSIX 1.0 standard, which makes it possible to run common DOS and Windows programs under Linux with the appropriate simulator.

Analysis on operation and maintenance of mainstream Linux framework

Related Article

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.