mongo/buildscripts/cost_model
XueruiFa 126ce85a48 SERVER-73691: Require confirmation for upgrade/downgrade 2023-03-28 15:52:51 +00:00
..
.gitignore SERVER-69030 Add python requirements.txt for Cost Model 2022-11-10 11:18:11 +00:00
README.md SERVER-71220 Apply additional filters when calibrating Cost Model 2022-11-11 12:20:20 +00:00
abt_calibrator.py SERVER-71220 Apply additional filters when calibrating Cost Model 2022-11-11 12:20:20 +00:00
benchmark.py SERVER-67161: Add physical NestedLoopJoin and make BinaryJoin logical 2022-12-02 18:22:49 +00:00
calibration_settings.py SERVER-73031 Generate random data with mixed data types 2023-02-15 16:32:12 +00:00
ce_data_settings.py SERVER-73030 Generate random array data for CE testing 2023-02-22 11:19:53 +00:00
ce_generate_data.py SERVER-73030 Generate random array data for CE testing 2023-02-22 11:19:53 +00:00
common.py SERVER-67121 Cost Model and Calibration farmework 2022-07-05 09:31:30 +00:00
config.py SERVER-73031 Generate random data with mixed data types 2023-02-15 16:32:12 +00:00
cost_estimator.py SERVER-71220 Apply additional filters when calibrating Cost Model 2022-11-11 12:20:20 +00:00
data_generator.py SERVER-73031 Generate random data with mixed data types 2023-02-15 16:32:12 +00:00
database_instance.py SERVER-73691: Require confirmation for upgrade/downgrade 2023-03-28 15:52:51 +00:00
end_to_end.py SERVER-72036 Implement data generation and loading into JS CE accuracy tests 2022-12-17 10:06:36 +00:00
execution_tree.py SERVER-71576 Implement Cost Model End2End testing 2022-11-24 11:18:42 +00:00
experiment.py SERVER-71576 Implement Cost Model End2End testing 2022-11-24 11:18:42 +00:00
mongod-inmemory.yaml SERVER-71363 Use Nanoseconds rather than Microseconds in QueryExecTime and support Nanoseconds in ScopedTimer 2022-11-16 14:11:27 +00:00
mongod.yaml SERVER-71363 Use Nanoseconds rather than Microseconds in QueryExecTime and support Nanoseconds in ScopedTimer 2022-11-16 14:11:27 +00:00
parameters_extractor.py SERVER-70537 Implement end to end cost model benchmark. 2022-11-03 17:04:23 +00:00
physical_tree.py SERVER-70537 Implement end to end cost model benchmark. 2022-11-03 17:04:23 +00:00
random_generator.py SERVER-73030 Generate random array data for CE testing 2023-02-21 13:56:20 +00:00
requirements.txt SERVER-69030 Add python requirements.txt for Cost Model 2022-11-10 11:18:11 +00:00
start.py SERVER-71576 Cost Model End2End benchmark: calculate r2 2022-12-06 12:47:40 +00:00
workload_execution.py SERVER-71220 Apply additional filters when calibrating Cost Model 2022-11-11 12:20:20 +00:00

README.md

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