Skip to content

Tools to capture MongoDB state and network traffic workloads so they can be replayed and profiled on different configurations.

Notifications You must be signed in to change notification settings

adamchel/mongo-replay-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongo Replay Tools

Set up test mongod instances with given configurations and replay a target workload on them. The workload applied is in the form of pcap and is captured from a production workload with mongocapture.

Usage

	git clone https://github.com/adamchel/mongo-replay-tools
	cd mongo-replay-tools

	# Capture the existing state of the DB
	./mongocapture 10.4.117.138 30000 10.4.117.138 30001 --mdir ~/mongodbdl/bin --ssh-port 2222 --net-device eth0

 	# Modify as desired
	cp server_config_example.yml server_config.yml

	# Replay the existing state and captured workload on each server in server_config
	./mongoreplay --mongod-host=localhost --mongod-port=27017 --server-config=server_config.yml --state-dump=state_dump --workload-file=workload.pcap

About

Tools to capture MongoDB state and network traffic workloads so they can be replayed and profiled on different configurations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages