Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ HAProxy performance under high concurrency     - Under CentOS Linux automatic backup MySQL database daily (Database)

- Java object serialization (Programming)

- Understand ASP.NET 5 running the command: DNVM, DNX, and DNU (Server)

- LinkedList Basic Usage (Programming)

- Protect against network attacks using Linux system firewall (Linux)

- Linux / Raspberry Pi using the following command-line based web browser (Linux)

- 10 practical Java programming technology (Programming)

- JDK comes with tools jinfo (Linux)

- Awk include binding capacity larger than the specified size of all files directory (Linux)

- Batch download files using the explorer under Windows Server 2008 R2 (Server)

- Linux SSH login without a password (Linux)

- Linux and Windows virtual machine shared folders ---- Linux install VMware tools (Linux)

- Docker data container protection the pros and cons (Server)

- Installation and deployment of Hadoop 2.7.1 on Ubuntu 14.04 LTS (Server)

- 32-bit and 64-bit integer in PHP and MySQL range (Database)

- Configuring s3c-linux- appears Unable to find the QT3 installation (Linux)

- imp / exp Oracle Database import and export commands (Database)

- Linux server alarms using Java (Server)

- Java string equal size comparison (Programming)

- Simple solution CC attack under Linux VPS (Linux)

  HAProxy performance under high concurrency
  Add Date : 2017-04-13      
  After hearing the odd message gateway server migration from Beijing to Wuxi room, issued after the emergence of SMS, SMS status report receiving only about 60%.

By understanding the business logic, the haproxy through the stats page to see the status of the following statistics

Session has reached the maximum number of 4096, and my haproxy.cfg file maxconn is 2000. Of course, the number of connections is not enough. In fact, the back-end messaging server has been given, the server is also being given the front page, but we did not communicate on this issue too. Cause this problem lasted nearly a month to solve them together.

So decisive modify 5000. reload the configuration, the number of connections go up. But reset connection resp part or continue to rise. Why is it?

Use ulimit -n and found open files is the default 1024, decisive modification 50000, can not be bigger. A period of observation, resp found that although the growth rate decreased, but still there. Then adjust the parameters:

net.ipv4.tcp_fin_timeout = 5

net.ipv4.tcp_tw_reuse = 1

net.ipv4.tcp_tw_recycle = 1

net.ipv4.ip_local_port_range = 10240 61000

After editing, and then observed for some time, I found that it was finally quiet. resp consistently zero.

Of course, this intermediate process lasted two days to resolve.
- Linux rename command usage in learning to modify the file name (Linux)
- sqlplus connect to Oracle (Database)
- Empty password Linux operating system (Linux)
- Erlang concurrency and foundation (Programming)
- grep, egrep and regular expressions (Linux)
- Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25 (Linux)
- Java String type time compare the size (Programming)
- The best tools and techniques to find data on a Unix system (Linux)
- Apache site default home page settings (Server)
- File permissions under Linux (Linux)
- How to install the NVIDIA 358.16 driver in Ubuntu 15.10,14.04 (Linux)
- How to disable UEFI to install Linux on Win8 (Linux)
- By creating a personal technology blog Detailed GitHub (Linux)
- Linux process or thread is bound to a CPU (Programming)
- Linux ls command (Linux)
- Deploy the project to the server from GitHub (Server)
- Linux server startup and logon security settings (Linux)
- CentOS 5.10 installed Oracle 11G R2 (Database)
- CentOS7 installation hardware monitoring for Zabbix enterprise applications (Server)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.