Configuring MyCAT Cluster with Dual Masters and Dual Slaves
Prerequisites
For MySQL master-slave setup, refer to: MySQL master-slave setup guide
For MyCAT installation, refer to: Installing MyCAT 2
Network and Service Configuration
IP/Port
Service
Role
8066
mycat
Proxy
3307
master
Primary
3308
slave
Replica
3309
master01
Standby
3310
slave01
Replica
Creating Database Users
On master, ...
Posted on Fri, 03 Jul 2026 17:15:52 +0000 by gintjack
Linux Infrastructure Architecture Overview for Small-Medium Websites
Components of a Small-Medium Scale Website Architecture
Customers/Users
Visitors accessing the website
Security Guard - Firewall (firewalld)
Implements access control policies
Receptionist - Load Balancer (nginx)
Schedules and distributes incoming user requests
Waiter - Web Server (nginx)
Processes user requests
Chef - Database Server ...
Posted on Wed, 24 Jun 2026 16:36:56 +0000 by nmohamm
Exploring Adaptive Load Balancing: A Deep Dive into Dubbo's P2C Algorithm
Today we're going to explore an interesting load balancing algorithm from Dubbo's source code. While I encountered this in Dubbo's implementation, it's not exclusive to Dubbo—it's a general algorithm concept. You can find Go implementations in go-zero as well.
The official documentation provides two diagrams illustrating these strategies.
When ...
Posted on Sat, 16 May 2026 21:20:25 +0000 by jib0
Setting Up an Nginx Reverse Proxy Load Balancing Cluster on CentOS 7
Three CentOS 7 virtual machines are used to build a basic Nginx reverse proxy load balancing cluster:
192.168.2.76: Nginx load balancer
192.168.2.82: Web server (web01)
192.168.2.78: Web server (web02)
Install Nginx on All Nodes
Install required dependencies:
yum -y install openssl openssl-devel pcre pcre-devel gcc wget
Create the installati ...
Posted on Sun, 10 May 2026 00:00:43 +0000 by Grim...
Nginx Load-Balancing Algorithms and Reverse-Proxy Best Practices
Enviroment
Role
IP Address
LB
10.240.35.55
web1
10.240.35.56
web2
10.240.35.57
web3
10.240.35.58
Basic Round-Robin
Load-Balancer
upstream backend_pool {
server 10.240.35.56:80;
server 10.240.35.57:80;
server 10.240.35.58:80;
}
server {
listen 80;
server_name www.demo.com;
location / {
proxy_pass ...
Posted on Sat, 09 May 2026 23:02:59 +0000 by bbristow
What Constitutes Technically Sophisticated Code in Software Development?
Service Warm-up Implementation
The core logic for service warm-up can be demonstrated through a simplified method:
static int computeRampUpWeight(int elapsedMillis) {
int calculated = (int) (elapsedMillis / 6000);
return calculated < 1 ? 1 : Math.min(calculated, 100);
}
This function calculates service weight based on uptime in mill ...
Posted on Fri, 08 May 2026 11:02:09 +0000 by robster