Pen Code


Version: 0.17
Category:
Scripts
C/C++
Requirements:
Seller:
Price:
-
System:
Rating:
4.3
License:

Description - Pen Code



The load balancing Algorithm keeps track of clients and will try to send them back to the server they visited the last time. The client table has a number of slots (Default 2048, settable through command-line arguments). When the table is full, the least recently used one will be thrown out to make room for the new one. This is superior to a simple round-robin algorithm, which sends a client that connects repeatedly to different servers. Doing so breaks applications that maintain state Between connections in the server, including most Modern web applications. When pen detects that a server is unavailable, it scans for another starting with the server after the most recently used one. That way we get load balancing and "fair" failover for free. Correctly configured, pen can ensure that a server FARM is always available, even when individual servers are brought down for maintenance or reconfiguration. The final single point of failure, pen itself, can be eliminated by running pen on several servers, using vrrp to decide which is active.



More in C/C++-Pen Code

Recently Client Recently Used State Between Connections