Giter Club home page Giter Club logo

mongo-ab's Introduction

MongoDB-AB

Some test based benchmarks which help check and understand and assess atomic operation and their RPC with different configurations

WIP

Repo right now proof-of-concept with purpose to build AB test utility

Requirement

Mongo >= 5.0 installed with shards. For custom launch look into Makefile commands that help you launch and setup on fly instance

How to

Just be sure that you specify launch url

store/mongo/mongo_test.go

var dbConnect = "mongodb://localhost:27021/?replicaSet=rs1"
Incorrect Usage: flag provided but not defined: -ั€

NAME:
   main mongo - 

USAGE:
   main mongo [command options] [arguments...]

DESCRIPTION:
   run mongodb compliance test which runs transactions

OPTIONS:
   --threads value, -t value    (default: 100) [$THREADS]
   --maxUser value, -m value    (default: 100000) [$MAX_USER]
   --operation value, -o value  What test start: tx - transaction intense, insert - only insert (default: "tx") [$OPERATION]
   --addr value                 (default: "mongodb://3.67.76.232:50000") [$MONGO_ADDR]
   --db value                   (default: "db") [$MONGO_DB]
   --balance value              (default: "bench_balance") [$MONGO_COLLECTION_BALANCE]
   --journal value              (default: "bench_journal") [$MONGO_COLLECTION_JOURNAL]
   --compression value          zlib, zstd, snappy (default: "snappy") [$MONGO_COMPRESSION]
   --compressionLevel value     zlib: max 9, zstd: max 20, snappy: not used (default: 0) [$MONGO_COMPRESSION_LEVEL]
   --wcJournal                  (default: false) [$MONGO_WRITE_CONCERN_J]
   --shards value               (default: 0) [$MONGO_SHARDS]
   --help, -h                   show help (default: false)

Tests

TestLoadMakeTransaction

This most important. It calculates actual rpc and show it Example:

comb/sec: 7669.716911777314 duration: 60.017860541 15344

mongo-ab's People

Contributors

d7561985 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.