Skip to content

Service used to test messaging performance of NATSSync

Notifications You must be signed in to change notification settings

coffeefreak101/mstress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mstress

A tool for stress testing the NATSSync system

Building

Build the service using cargo:

cargo build

Build the service as a container image

make image

Running the service

The service is designed to run in the same environment as the NATSSync server, and requires access to the mongodb and NATS instances used by the server.

Use environment variables to configure the service:

env var default value
NATS_URL nats://nats:4222
MONGO_URL mongodb://mongo
WEB_PORT 8080

API

The service has an HTTP API (TCP port 8080) for running the tests.

Method Route Description
GET / Returns "Hello, world!" if the service is up
GET /clients Returns an array of clients found in the database
GET /tests/mps Do a 10 second test for Messages Per Second on all clients
GET /tests/{client_id} Test that a client is alive, and available
GET /tests/{client_id}/mps Do a 10 second MPS test on a specific client

About

Service used to test messaging performance of NATSSync

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published