Sign inSign up

stackumbraller/nacos-bench

By stackumbraller

•Updated 11 months ago

Image
0

225

stackumbraller/nacos-bench repository overview

⁠Usage Instructions

⁠Introduction

⁠Configuration parameters

ParameterDescriptionDefault Value
--configContentLengthConfiguration content length128 bytes
--configCountNumber of configurations1000
--instanceCountPerServiceNumber of service providers registered per service3
--nacosClientCountNumber of simulated Nacos clients per process1000
--nacosServerAddrNacos server address127.0.0.1
--namingMetadataLengthMetadata size of service providers128 bytes
--perfApiInterface to be tested, options: namingReg, namingQuery, namingSubscribe, configPub, configGetnamingReg
--perfModeTesting mode, options: naming, confignaming
--perfTimeTesting duration, in seconds600
--perfTpsTesting TPS/QPS500
--serviceCountNumber of simulated service names15000

⁠Usage Examples

⁠1. Service Registration
docker run -it --rm --name nacos-bench stackumbraller/nacos-bench:latest \    
        --nacosServerAddr=127.0.0.1 --perfMode=naming  --perfApi=namingReg --perfTps=50 --perfTime=900 \
        --nacosClientCount=100 --serviceCount=10000  \ 
        --namingMetadataLength=64 
⁠2. Service Query
docker run -it --rm --name nacos-bench stackumbraller/nacos-bench:latest \
        --nacosServerAddr=127.0.0.1 --perfMode=naming  --perfApi=namingQuery --perfTps=50 --perfTime=900 \
        --nacosClientCount=100 --serviceCount=10000  \
        --namingMetadataLength=64
⁠3. Configuration Publishing
docker run -it --rm --name nacos-bench stackumbraller/nacos-bench:latest \   
        --nacosServerAddr=127.0.0.1 --perfMode=config  --perfApi=configPub --perfTps=5 --perfTime=900 \  
        --nacosClientCount=100 --configContentLength=64  \  
        --configCount=500
⁠4. Configuration Query
docker run -it --rm --name nacos-bench stackumbraller/nacos-bench:latest \    
        --nacosServerAddr=127.0.0.1 --perfMode=config  --perfApi=configGet --perfTps=100 --perfTime=900 \
        --nacosClientCount=100 --configContentLength=64  \ 
        --configCount=500

Tag summary

Content type

Image

Digest

sha256:ae98556e1…

Size

26.2 MB

Last updated

11 months ago

docker pull stackumbraller/nacos-bench