...
# Create a folder for the whole project
mkdir myProject
cd myProject
# Download the repository
git clone <httpshttps://github.com/Cloud-PG/dataset-generator.git>git
# Enter the project folder
cd dataset-generator
# Install dependencies
pip3 install -r requirements.txt
# Back to main project folder
cd ..
...
# Download the repository
git clone --branch v2.0.2 <httpshttps://github.com/Cloud-PG/smart-cache.git>git
# Enter the project folder
cd smart-cache
# Install the Utilities
cd SmartCache/sim/Utilities
pip3 install -e .
cd ../../..
# Install the Probe module
cd Probe
python3 setup.py install
cd ..
# Install general requirements
pip3 install coloredlogs colorama dash_daq biokit
# Back to main project folder
cd ..
...
--- # Simulation parameters
sim:
data: ./dataset
outputFolder: ./results/
type: normal
window:
start: 0
stop: 52
region: it
overwrite: true
cache:
# Use Reinforcement learning AI
type: aiRL
watermarks: false
# Create a cache with 10G size
size:
value: 10
unit: G
bandwidth:
value: 1
redirect: true
ai:
rl:
epsilon:
decay: 0.001
addition:
featuremap: ./smart-cache/featureMaps/rlAdditionFeatureMap.json
eviction:
featuremap: ./smart-cache/featureMaps/rlEvictionFeatureMap.json
...
cat << EOF > simulation.conf.yaml
--- # Simulation parameters
sim:
data: $(pwd)/dataset
outputFolder: $(pwd)/results
type: normal
window:
start: 0
stop: 52
region: it
overwrite: true
cache:
# Use Reinforcement learning AI
type: aiRL
watermarks: false
# Create a cache with 10G size
size:
value: 10
unit: G
bandwidth:
value: 1
redirect: true
ai:
rl:
epsilon:
decay: 0.001
addition:
featuremap: $(pwd)/smart-cache/featureMaps/rlAdditionFeatureMap.json
eviction:
featuremap: $(pwd)/smart-cache/featureMaps/rlEvictionFeatureMap.json
EOF
...