This Python script provides functionality to set up and test MongoDB and Redis clusters using Docker containers. The script allows you to specify the number of nodes in each cluster and performs basic connectivity tests.
Before running the script, ensure that you have the following installed:
- Docker: Installation guide
- Python 3.x
- Install YCSB: Installation guide
- Clone the repository to your local machine:
git clone https://github.com/yourusername/your-repo.git
- Navigate to the directory containing the script:
cd your-repo
- Modify the script if necessary to adjust the number of nodes in the MongoDB and Redis clusters:
num_mongodb_nodes = 3
num_redis_nodes = 5
- Run the Python script:
python setup_clusters.py
- The script will create Docker containers for MongoDB and Redis clusters with the specified number of nodes. It will then test the connectivity to each node in the clusters.
This project is licensed under the MIT License - see the LICENSE file for details.
- This script was inspired by the need to easily set up and test MongoDB and Redis clusters for distributed database comparison experiments.