mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-24 00:17:37 +01:00
855dfadef0
GitOrigin-RevId: e793d662774ccd3ab6c3f356c2287cf1f7ff9805 |
||
---|---|---|
.. | ||
.gitignore | ||
abt_calibrator.py | ||
benchmark.py | ||
calibration_settings.py | ||
ce_data_settings.py | ||
ce_generate_data.py | ||
common.py | ||
config.py | ||
cost_estimator.py | ||
data_generator.py | ||
database_instance.py | ||
end_to_end.py | ||
execution_tree.py | ||
experiment.py | ||
mongod-inmemory.yaml | ||
mongod.yaml | ||
OWNERS.yml | ||
parameters_extractor.py | ||
physical_tree.py | ||
qsn_costing_parameters.py | ||
query_solution_tree.py | ||
random_generator.py | ||
README.md | ||
requirements.txt | ||
start.py | ||
workload_execution.py |
Cost Model Calibrator
Python virtual environment
The following assumes you are using python from the MongoDB toolchain.
/opt/mongodbtoolchain/v4/bin/python3
Getting started
(mongo-python3) deactivate # only if you have another python env activated
sh> /opt/mongodbtoolchain/v4/bin/python3 -m venv cm # create new env
sh> source cm/bin/activate # activate new env
(cm) python -m pip install -r requirements.txt # install required packages
(cm) python start.py # run the calibrator
(cm) deactivate # back to bash
sh>
Install new packages
(cm) python -m pip install <package_name> # install <package_name>
(cm) python -m pip freeze > requirements.txt # do not forget to update requirements.txt