Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 781 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 781 Bytes

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