Nacos service configuration performance test report

Test purposes

Let everybody understand the Nacos main performance load and capacity, to help us better manage Nacos performance quality, help users use of assessment Nacos system load faster.

Test tools

We use the research of PAS performance evaluation service platform for pressure measurement, the principle is based on the use of JMeter engine, the use of PAS to automatically generate the JMeter scripts, intelligent pressure measurement.

IMAGE

Test environment

1.environment

indicatorsparameter
machineCPU 8 nuclear, 16G memory
cluster sizestand-alone, 3 nodes, 10 nodes, 100 nodes
Nacos version0.8.0
database32C128G

2.Set the launch parameters

  1. /opt/taobao/java/bin/java -server -Xms4g -Xmx4g -Xmn2g
  2. -XX:MetaspaceSize=128m
  3. -XX:MaxMetaspaceSize=320m
  4. -Xdebug
  5. -Xrunjdwp:transport=dt_socket,address=9555,server=y,suspend=n
  6. -XX:+UseConcMarkSweepGC
  7. -XX:+UseCMSCompactAtFullCollection
  8. -XX:CMSInitiatingOccupancyFraction=70
  9. -XX:+CMSParallelRemarkEnabled -XX:SoftRefLRUPolicyMSPerMB=0
  10. -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8
  11. -XX:-UseParNewGC -verbose:gc -Xloggc:/home/admin/nacos/logs/nacos_gc.log
  12. -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime
  13. -XX:+PrintAdaptiveSizePolicy -Dnacos.home=/home/admin/nacos -XX:-OmitStackTraceInFastThrow
  14. -XX:-UseLargePages -jar /home/admin/nacos/target/nacos-server.jar
  15. --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/home/admin/nacos/conf/

Test scenarios

The following test scenarios are service discovery interface:

  • Verify Nacos service ability to release configuration
  • Verify Nacos service access configuration
  • Verify Nacos service listening configuration
  • Verify Nacos service long connection capacity ability

Test data

1. Release configuration

The performance of the main test launch configuration Nacos publishConfig interface.
In the performance of each scale clusters:

stand-alone3 nodes10 nodes100 nodes
1400421468638626

We look at three nodes specific services cluster configuration ability.
The following for each concurrency (press the machine number * concurrency), the configuration of the TPS, the average RT. IMAGE IMAGE

2. Access configuration

Access to configuration for Nacos getConfig interface for testing.
The measured performance in each cluster size:

stand-alone3 nodes10 nodes100 nodes
150002301345000161099

We also look at the three nodes specific services cluster acquire configuration, the following for each concurrency (pressure machine is used for * concurrency), access to configuration of TPS, the average RT. IMAGE IMAGE

3. Listening configuration

Perform Nacos addListeners the performance of the interface to monitor configuration mainly adopts increase more configuration monitoring, and issued several configuration method, statistics released time and listening to receive configuration time interval.
We pick a few points, and lists the publish and listening time, the basic within 100 ms can listen to the configuration changes.

timespublish and listening time (ms)
163
253
384
473
546
635
773
8183
9104

4. Long connection capacity test

Nacos listener configuration with the client to establish long connection, long service connection consumes memory, thereby cluster increased load.Build up capability of the capacity of long connection, mainly examines configuration monitor bottlenecks.
Cluster connectivity test methods are increasing stand-alone connection to reach 9000, CPU: 13.9% memory: 18.8%, load: 4.7, are in normal state, the number of connections increases, the load will increase exponentially number level.
In each cluster scale test basically conform to test and verify.

stand-alone3 nodes10 nodes100 nodes
90002700090000910000

Test results

Nacos performance test is aimed at a key function, through the study of the pressure measurement of the cluster size, you can see the interface of each cluster capacity.
This test provides you as reference, if there are any deficiency or deviation, please correct me!
If you have any other requirements on the performance, can you give us the issue.