This repository simulates fetching data from a distributed storage system with hot, warm, and cold layers.
Clone the repository:
git clone git@github.com:easierdata/tiered-storage-simulator.gitNavigate into the project directory:
cd tiered-storage-simulatorSet up a virtual environment:
cd tiered-storage-simulator
# Install the tkinter version of python3 with brew
brew install python-tk@3.11
python3 -m venv .venv
source venv/bin/activateInstall dependencies:
pip install --upgrade pip
pip install -r requirements.txtThis script fetches data from a simulated distributed storage system with hot, warm, and cold layers.
It can run in two modes:
- Standalone - Runs the simulation logic without a GUI
- Tinker GUI - Renders an interactive GUI for visualizing the simulation
To switch between modes, set the IN_GUI_MODE variable to True or False.
The cold storage system is simulated using a Flask web server defined in flask_web_server.py. This runs in a separate thread to mimic requests to the storage provider API.
In order to use the S3 integration, rename sample.env to .env and fill in the environment variables with your AWS credentials.
