Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

191 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rocket.chat.load.tester

Requirements

  • Node v10+

How to use

npm i
npm start

Configurations via environment variables

Rate values are in "per day per user".

Env var name Mandatory Default value Description
HOST_URL Yes localhost:3000 Rocket.Chat URL
DATABASE_URL Yes mongodb://localhost:27017 MongoDB connection string
DATABASE_NAME Yes rocketchat MongoDB database name
PORT No 4000 The port this service will listen to
HOW_MANY_USERS No 10 How many simultaneous connections
LOGIN_BATCH No 5 Simultaneous logins
MESSAGE_SENDING_RATE No 100 Message sending rate (100 messages per day per user)
SET_STATUS_RATE No 10 Set status rate
OPEN_ROOM_RATE No 10 Open room rate
READ_MESSAGE_RATE No 10 Read message rate
SUBSCRIBE_PRESENCE_RATE No 100 Subscribe presence rate
INITIAL_SUBSCRIBE_RATIO No 0.02 Initial subscribe ratio
INITIAL_SUBSCRIBE_MIN No 4 Initial subscribe minimum
ROOM_ID No rid-__prefix__-__count__ Value used to generate room ids during populate
USER_ID No uid-__prefix__-__count__ Value used to generate user ids during populate
SSL_ENABLED No no Rocket.Chat server has SSL or not
CLIENT_TYPE No web Which client will be simulated (changes the APIs used). Can be: web, android or ios
USERS_EMAIL No @domain.com User's email domain used to register
LOG_IN No yes If clients should log in or just connect
IGNORE_ROOMS No GENERAL Comma-separated list of rooms to ignore
USERS_PER_ROOM No 10 Number of users per room
SUBSCRIPTION_ID No sib-__rid__-__uid__ Template for subscription IDs
TASK_ID No 1 or network address Task identifier, used to differentiate between multiple load tester instances
CLUSTER_GROUP No loadtester Name of the cluster group
MESSAGE No hello Default message content to be sent
ROUTING_CONFIG_PER_SEC No 10 Routing configurations per second
QUEUED_INQUIRIES_PER_SEC No 0.5 Rate of queued inquiries per second
TAKE_INQUIRY_PER_SEC No 1 Rate of taking inquiries per second
DYNAMIC_LOGIN No false Enable dynamic login behavior (accepts 'true' or 'yes')

About

No description, website, or topics provided.

Resources

Stars

11 stars

Watchers

13 watching

Forks

Releases

Packages

Used by

Contributors

Languages