L
L
Lastchance2017-10-11 00:08:45
linux
Lastchance, 2017-10-11 00:08:45

How to perform an exchange between two highly loaded services if their number of connections is more than 65556?

There are two servers that exchange information using the http protocol. The fact is that the number of their connections can exceed more than 65556 (More than the number of ports for one ip). How can you increase the number of connections?
Two servers have fighting ip addresses

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
lega, 2017-10-11
@Lastchance

using the http protocol
There is no point in such a number of ports, switch to keep-alive (for example, zmq), and 1-10 ports will be enough to load the hardware / network at 100%

S
Saboteur, 2017-10-11
@saboteur_kiev

Add another network interface?
Add another IP to the same interface?
round-robin and spread the load across multiple machines.

S
SomeDude, 2017-10-12
@SomeDude

In sysconfig, you can increase the number of active tcp connections and their lifetime.
net.netfilter.nf_conntrack_max = desired number
net.netfillter.nf_conntrack_tcp_timeout_established = 18000, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question