Files
mongo/buildscripts/cost_model/README.md
Asher Kornfeld 25c40b6a76 SERVER-106252 Remove ABT from experiment pipeline and complete test run (with no data) (#37595)
Co-authored-by: Militsa Sotirova <militsa.sotirova@mongodb.com>
GitOrigin-RevId: be4879f6ce14be6387a7e5c69d6c6f7c309d9dbd
2025-06-27 17:34:28 +00:00

31 lines
929 B
Markdown

# Cost Model Calibrator
## Python virtual environment
The following assumes you are using python from the MongoDB toolchain.
```
/opt/mongodbtoolchain/v4/bin/python3
```
### Getting started
Make sure before running `start.py`, you have a locally running `mongod` instance (this must be run using the `mongo-python3` virtual environment, so do it before step 1 below).
```sh
(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
```sh
(cm) python -m pip install <package_name> # install <package_name>
(cm) python -m pip freeze > requirements.txt # do not forget to update requirements.txt
```