Category: High Performance

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

Keepalived Dual-Machine Hot Standby – A Case Study

Keepalived Dual-Machine Hot Standby
Here we will only use Keepalived for dual-machine hot standby, i.e., ensuring high availability of the servers, without worrying about anything else. You might say that this approach is rarely used in real-world applications, but you’d be wrong. There are indeed cases where Keepalived is used solely for dual-machine hot standby, and I’ve encountered several such scenarios…

How to Use HAProxy for Website Load Balancing in Large-Scale Operations

Recently, my friend Liu Xin’s website successfully launched and began operations, reaching hundreds of millions of PVs per day. The front end uses HAProxy+Keepalived dual-machine load balancers/reverse proxies, and the entire website is extremely stable. This further solidified my belief in using HAProxy+Keepalived as the web front-end load …

Getting Started with Varnish

Introduction to VarnishVarnish is a high-performance, open-source reverse proxy server and HTTP accelerator. It adopts an entirely new software architecture that works closely with modern hardware systems. Compared to traditional solutions like Squid, Varnish offers higher performance, faster speeds, and more convenient management, among many other advantages. …

My Take on Linux Rsync Configuration

Server Side

rsyncd.conf

uid = nobody
gid = nobody
use chroot= no
max connections = 10
strict mode = yes //Whether to check file permissions
pid file=/var/run/rsyncd.pid //Daemon process path
lock f …

How to Use Linux Rsync Command for Multi-Server Mirror Synchronization

How to Use Linux rsync Command for Multi-Server Mirror Synchronization

Implementation: When a user creates, modifies, or deletes directories or files, or changes the attributes of directories or files in a certain directory on the local client, as long as the same shell script is executed, rsync will automatically identify the changed or deleted data and transfer it …

Rsync Introduction, Upgrade, Detailed Configuration

I. Introduction – rsync is a data mirroring backup tool for Unix-like systems, as can be seen from its naming—remote sync. Its features are as follows:
1. Can mirror and preserve entire directory trees and file systems.
2. Can easily preserve original file permissions, timestamps, soft/hard links, etc.
3. No special privileges required for installation.
4. Optimized workflow with high file transfer efficiency.
5. Can transfer files using rcp, ssh, etc., and of course also via direct socket connections.
6. Supports anonymous transfers.

How to Set Up a Cluster Image and File Server

1. Upload images to the local server hard drive, then use the local image or file server to handle image access. This approach requires setting a rule where each server needs an additional second-level domain for accessing the local image server. When saving images, the image server’s second-level domain for the current server must also be …