From 6d7fd19838ed67d723c171827044e09a44241a06 Mon Sep 17 00:00:00 2001 From: david hill Date: Mon, 23 Oct 2017 15:36:46 -0500 Subject: [PATCH] MCOL-972 - added tuning parameters to upgrade process --- tools/configMgt/autoConfigure.cpp | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) mode change 100644 => 100755 tools/configMgt/autoConfigure.cpp diff --git a/tools/configMgt/autoConfigure.cpp b/tools/configMgt/autoConfigure.cpp old mode 100644 new mode 100755 index c39939fdf..48a9243f7 --- a/tools/configMgt/autoConfigure.cpp +++ b/tools/configMgt/autoConfigure.cpp @@ -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(); }