Skip to content

Sample to test app performance in combination with CosmosDB

Notifications You must be signed in to change notification settings

CSA-OCP-GER/cosmosdb-nodejs-perftest

Repository files navigation

Stress-testing CosmosDB (SQL) with NodeJS / K8s

This app uses a sample JSON document and adds it to a CosmosDB instance n times, depending on some environment variables the app expects (.env template included):

  • HOST: ComsosDB URL
  • DATABASE: CosmosDB database name
  • AUTHKEY: CosmosDB authentication key
  • COLLECTION: CosmosDB collection name
  • COUNT: number of documents the application tries to insert in a loop

The repository also contains a Kubernetes job template, where the application can be scaled to a number of parallel running jobs/pods (please see jobtemplate.yaml --> property parallelism)

About

Sample to test app performance in combination with CosmosDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published