Category: High Performance

Cache (16)
Container (6)
Files (31)
Cluster (70)
Testing (5)

Analysis and Fix for High CPU Load Caused by Too Many php-cgi Processes

Server Environment: Red Hat Linux 5.5, Nginx, PHP FastCGI. In this environment, php-cgi typically runs very stably, but we have encountered situations where php-cgi consumes too many CPU resources, causing the server to respond too slowly. The reasons I’ve seen for php-cgi processes consuming excessive CPU resources include: 1. Some PHP …

A Summary of Website Performance Optimization Tips

When a website reaches a certain scale, performance issues are prone to arise at various stages: for instance, database inefficiencies, high load on the front-end server, I/O bottlenecks, insufficient cache as data grows, or excessive network overhead for data synchronization. Below are the problems encountered in my own projects and possible…

Linux Load Balancing Software LVS Part 4: Testing Guide

1. Starting the LVS Cluster Service
There are two ways to manage and use LVS load balancing: one is through the ipvsadm command-line scripts and ldirectord monitoring method, and the other is through the Piranha tool for management and usage. They are introduced separately below. 1. Managing with ipvsadm command-line scripts and ldirectord monitoring method …

Linux Load Balancing Software LVS Part 3: Configuration Guide

LVS clusters have three configuration modes: DR, TUN, and NAT, which can be used for load balancing of www services, FTP services, MAIL services, etc. Below, through setting up a load balancing instance for www services, we illustrate the configuration of an LVS cluster based on DR mode.
1. Director Server Configuration
Configure LVS on the Director Server …

Linux Load Balancer LVS Part 2: Installation Guide

I. Installing LVS Software
1. Pre-Installation Preparation
Operating System: CentOS 4.4 is used uniformly.
Address planning, as shown in Table 1:
Table 1 More detailed information is shown in Figure 2: Figure 2 LVS DR Mode Installation and Deployment Architecture Diagram
The VIP in Figure 2 refers to the Virtual IP Address, also known as the LVS cluster service IP, in …

Linux Load Balancing Software LVS: Concepts Guide

1. Introduction to LVS
LVS, short for Linux Virtual Server, is a free software project initiated by Dr. Wensong Zhang. Its official website is www.linuxvirtualserver.org. LVS is now part of the standard Linux kernel, included since Linux 2.4 ker …

Manual rsync Deployment

When updating production applications, manual deployment is prone to errors and omissions. Here we use Linux’s built-in rsync functionality to automatically sync applications from the test machine to the production machine once they pass testing. We refer to the test machine as the Master and the production machine as the Slave. Applications are synced from the test machine to the production machine, from Master to Sla …

How to Use Rsync for Remote Disaster Recovery Backup

rsync is a data mirroring backup tool for Linux systems. With rsync, you can back up local system data to any remote host over a network. Key features of rsync include: It can mirror entire directory trees and file systems
It supports incremental data synchronization, offering high file transfer efficiency because …

Installing and Configuring Nagios on Linux

I. Introduction to Nagios Nagios is an open-source computer system and network monitoring tool that can effectively monitor the status of Windows, Linux, and Unix hosts, network devices such as switches and routers, printers, and more. When a system or service experiences an abnormal state, it sends email or SMS alerts to immediately notify website operations personnel…