Category: High Performance

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

How to Store Session Data in Memcache

Any reasonably large website will face the problem of saving user sessions. Common solutions include storing them in a database, using memcache, and various other methods. Among these, memcache is the best option because it is memory-based, offering the fastest speed.

I. Download
First, you need to download memcache, and then download …

A Comparison of GFS, HDFS, and Blob File System Architectures

There are many distributed file systems, including GFS, HDFS, Taobao’s open-source TFS, Tencent’s TFS for photo album storage (Tencent FS, hereafter referred to as QFS for differentiation), and Facebook Haystack. Among them, TFS, QFS, and Haystack address very similar problems and share a comparable architecture. These three file systems …

High-Load LAMP Architecture

I remember it was October 2005, shortly after my open-source site had launched. Back then, I still equated high availability and handling large loads and high traffic solely with “throwing more hardware at the problem.” Even a later article didn’t seem to break out of that mindset. After that, as my work shifted towards…

How to Install Memcached and Set Up Web Monitoring

Memcached is a high-performance distributed memory object caching system designed for dynamic web applications to reduce database load. It minimizes the number of database reads by caching data and objects in memory, thereby speeding up dynamic, database-driven websites. Before installation, you’ll need a few software packages, such as libevent…

Linux Command-Line Fetion for Nagios

To stay on top of production server status in real time, ops engineers must master a fundamental skill: server monitoring. Nagios, a widely adopted server monitoring tool, uses email as its default notification method. The downside is that if an admin hasn’t logged into their email, they may miss critical server status updates. This is where SMS-based notification via Fetion comes in …

How to Handle Session Sharing in Nginx Load Balancer

1) Use cookies instead of sessions

Switching from sessions to cookies can help you avoid some of the drawbacks of sessions. A J2EE book I read long ago also pointed out that you should not use sessions in a clustered system, or it could cause serious trouble. If your system is not complex, consider whether you can eliminate sessions first…

How to Fix php-fpm 100% CPU Usage

How to Fix High CPU Usage on LNMP Server: Troubleshooting Guide
I thought my recently configured LNMP stack was running quite stably, and I was secretly pleased with myself. However, starting last night, I noticed the server’s CPU usage was excessively high, even spiking to 100%. My memory is 1GB, and under normal circumstances, the usage rate should be below 5%, and at most not exceed 10%. Recent monitoring from Alibaba Cloud shows: cmhello.com-201303089 using to …

High Availability with MySQL, DRBD, and Heartbeat

1. What Is DRBD
DRBD (Distributed Replicated Block Device), touted as "Network RAID", is an open-source software developed by LINBIT.
2. Main Functions of DRBD
DRBD is essentially a block device implementation, primarily used in high availability (HA) solutions on Linux platforms. …