Skip to content

mohamedfenjiro/redis-mongodb-tp3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Dockerized MongoDB and Redis Cluster Configuration and Testing

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.

Prerequisites

Before running the script, ensure that you have the following installed:

Usage

  1. Clone the repository to your local machine:
git clone https://github.com/yourusername/your-repo.git
  1. Navigate to the directory containing the script:
cd your-repo
  1. 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
  1. Run the Python script:
python setup_clusters.py
  1. 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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • This script was inspired by the need to easily set up and test MongoDB and Redis clusters for distributed database comparison experiments.

About

Comparison between Redis and MongoDB as distributed databases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages