1. With the increase of the number of gateway threads, the throughput is greatly improved;
2. Gateway has high requirements on CPU, so it is suggested to improve CPU performance, but the overall performance of a single high performance and multiple low performance needs to be weighed;
3. The gateway has low requirements for memory and hard disk;
4. Make a trade-off between pursuing throughput and increasing CPU load, and choose machine configuration;
5.5. The reactor.netty.ioworkercount parameter adjusts the number of netty worker threads. In the reactor.netty.ReactorNetty file,
4-core 8G has 1 set, and the gateway is deployed. Subsequent upgrades to 8 cores and 8 G;
? 1 machine 2-core 4G, deploying nginx simulation application service;
? 2 cores 4G 1 set, with jmeter5.0 deployed. Upgrade to 4-core 8G.
Number of concurrency: 300;
Netty worker thread count:12;
Sample data: returns the size of 1.5k;
Server response time: about10 ms.
Test duration: 5 minutes
JVM memory: 2G
Number of concurrency: 300;
Net worker threads: 8 (default)
Sample data: Returns the size of1.5k.
Server response time: about10 ms.
Test duration: 5 minutes
JVM memory: 2G
The number of netty worker threads is adjusted to (reactor.netty.ioworkercount):12;