1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-972 - added tuning parameters to upgrade process

This commit is contained in:
david hill
2017-10-23 15:36:46 -05:00
parent 4aa7eb1830
commit 6d7fd19838

34
tools/configMgt/autoConfigure.cpp Normal file → Executable file
View File

@ -1861,6 +1861,40 @@ int main(int argc, char *argv[])
catch(...)
{}
// add entries from tuning guide
string ColScanReadAheadBlocks;
string PrefetchThreshold;
string MaxOutstandingRequests;
string PmMaxMemorySmallSide;
string AllowDiskBasedJoin;
string TempFileCompression;
string TempFilePath;
try {
ColScanReadAheadBlocks = sysConfigOld->getConfig("PrimitiveServers", "ColScanReadAheadBlocks");
PrefetchThreshold = sysConfigOld->getConfig("PrimitiveServers", "PrefetchThreshold");
MaxOutstandingRequests = sysConfigOld->getConfig("JobList", "MaxOutstandingRequests");
PmMaxMemorySmallSide = sysConfigOld->getConfig("HashJoin", "PmMaxMemorySmallSide");
AllowDiskBasedJoin = sysConfigOld->getConfig("HashJoin", "ColScanReadAheadBlocks");
TempFileCompression = sysConfigOld->getConfig("HashJoin", "TempFileCompression");
TempFilePath = sysConfigOld->getConfig("HashJoin", "TempFilePath");
}
catch(...)
{}
try {
sysConfigNew->setConfig("PrimitiveServers", "ColScanReadAheadBlocks", ColScanReadAheadBlocks);
sysConfigNew->setConfig("PrimitiveServers", "PrefetchThreshold", PrefetchThreshold);
sysConfigNew->setConfig("JobList", "MaxOutstandingRequests", MaxOutstandingRequests);
sysConfigNew->setConfig("HashJoin", "PmMaxMemorySmallSide", PmMaxMemorySmallSide);
sysConfigNew->setConfig("HashJoin", "AllowDiskBasedJoin", AllowDiskBasedJoin);
sysConfigNew->setConfig("HashJoin", "TempFileCompression", TempFileCompression);
sysConfigNew->setConfig("HashJoin", "TempFilePath", TempFilePath);
}
catch(...)
{}
//Write out Updated System Configuration File
sysConfigNew->write();
}