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