Commit eaa1a23a authored by unknown's avatar unknown

Bug #28653 Fast GCP + high load + high RedoBuffer causes ndbrequire

- parameterize on RedoBuffer

parent f77ba282
...@@ -2678,7 +2678,8 @@ private: ...@@ -2678,7 +2678,8 @@ private:
UintR cfirstfreeLogFile; UintR cfirstfreeLogFile;
UintR clogFileFileSize; UintR clogFileFileSize;
#define ZLFO_FILE_SIZE 256 /* MAX 256 OUTSTANDING FILE OPERATIONS */ #define ZLFO_MIN_FILE_SIZE 256
// RedoBuffer/32K minimum ZLFO_MIN_FILE_SIZE
LogFileOperationRecord *logFileOperationRecord; LogFileOperationRecord *logFileOperationRecord;
LogFileOperationRecordPtr lfoPtr; LogFileOperationRecordPtr lfoPtr;
UintR cfirstfreeLfo; UintR cfirstfreeLfo;
...@@ -2695,7 +2696,7 @@ private: ...@@ -2695,7 +2696,7 @@ private:
UintR cfirstfreePageRef; UintR cfirstfreePageRef;
UintR cpageRefFileSize; UintR cpageRefFileSize;
#define ZSCANREC_FILE_SIZE 100 // Configurable
ArrayPool<ScanRecord> c_scanRecordPool; ArrayPool<ScanRecord> c_scanRecordPool;
ScanRecordPtr scanptr; ScanRecordPtr scanptr;
UintR cscanNoFreeRec; UintR cscanNoFreeRec;
......
...@@ -30,11 +30,11 @@ void Dblqh::initData() ...@@ -30,11 +30,11 @@ void Dblqh::initData()
cgcprecFileSize = ZGCPREC_FILE_SIZE; cgcprecFileSize = ZGCPREC_FILE_SIZE;
chostFileSize = MAX_NDB_NODES; chostFileSize = MAX_NDB_NODES;
clcpFileSize = ZNO_CONCURRENT_LCP; clcpFileSize = ZNO_CONCURRENT_LCP;
clfoFileSize = ZLFO_FILE_SIZE; clfoFileSize = 0;
clogFileFileSize = 0; clogFileFileSize = 0;
clogPartFileSize = ZLOG_PART_FILE_SIZE; clogPartFileSize = ZLOG_PART_FILE_SIZE;
cpageRefFileSize = ZPAGE_REF_FILE_SIZE; cpageRefFileSize = ZPAGE_REF_FILE_SIZE;
cscanrecFileSize = ZSCANREC_FILE_SIZE; cscanrecFileSize = 0;
ctabrecFileSize = 0; ctabrecFileSize = 0;
ctcConnectrecFileSize = 0; ctcConnectrecFileSize = 0;
ctcNodeFailrecFileSize = MAX_NDB_NODES; ctcNodeFailrecFileSize = MAX_NDB_NODES;
......
...@@ -992,6 +992,11 @@ void Dblqh::execREAD_CONFIG_REQ(Signal* signal) ...@@ -992,6 +992,11 @@ void Dblqh::execREAD_CONFIG_REQ(Signal* signal)
ndb_mgm_get_int_parameter(p, CFG_DB_REDO_BUFFER, ndb_mgm_get_int_parameter(p, CFG_DB_REDO_BUFFER,
&log_page_size); &log_page_size);
/* maximum number of log file operations */
clfoFileSize = (log_page_size+32768-1)/32768;
if (clfoFileSize < ZLFO_MIN_FILE_SIZE)
clfoFileSize = ZLFO_MIN_FILE_SIZE;
/** /**
* Always set page size in half MBytes * Always set page size in half MBytes
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment