Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the points for attention in LVS system optimization?

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

LVS system optimization matters needing attention, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

Linux environment

CentOS 5.5

Noun

LVS: Linux Virtual Server

IPVS: IP Virtual Server,IPVS is the key to the implementation of LVS.

IPVS connection hash table: IPVS connects a hash table to "track" incoming and outgoing network packets (for input and output packets lookups of IPVS).

Ip_vs_conn structure: defined in the kernel file include/net/ip_vs.h. The structure (object) is the scheduling object of IPVS. 128 bytes on 32-bit systems and 192 bytes on 64-bit systems.

IPVS connection hash table

Code in the kernel: net/netfilter/ipvs/ip_vs_conn.c

Int ip_vs_conn_tab_bits

At compile time, it is stated in the Kconfig file that the value should be between 8 and 20. When ip_vs_conn_tab_bits=20, the size (entry) of the hash table is pow (2 minute 20), that is, 1048576, about 1.04 million, which is sufficient.

Int ip_vs_conn_tab_size

The number of entries (number of list_head structures) of the IPVS hash join table.

Ip_vs_conn_tab_size = 1

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 232

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report