File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
src/mysqloperatorcalculator Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
1010// Constants
1111// ***********************************
1212const (
13- VERSION = "v1.8 .0"
13+ VERSION = "v1.9 .0"
1414
1515 OkI = 1001
1616 ClosetolimitI = 2001
Original file line number Diff line number Diff line change @@ -270,7 +270,17 @@ func (c *Configurator) filterByMySQLVersion() map[string]Family {
270270// calculate gcache effects on memory (estimation)
271271func (c * Configurator ) getGcache () {
272272 c .reference .gcache = int64 (float64 (c .reference .innodbRedoLogDim ) * c .reference .gcacheLoad )
273- c .reference .gcacheFootprint = int64 (math .Ceil (float64 (c .reference .gcache ) * 0.3 ))
273+ // Calculating the Gcache footprint based on the load factor and load type
274+ gcacheFootPrintFactor := 0.3
275+ switch c .reference .loadID {
276+ case 1 :
277+ gcacheFootPrintFactor = gcacheFootPrintFactor
278+ case 2 :
279+ gcacheFootPrintFactor = 0.4
280+ case 3 :
281+ gcacheFootPrintFactor = 0.6
282+ }
283+ c .reference .gcacheFootprint = int64 (math .Ceil (float64 (c .reference .gcache ) * gcacheFootPrintFactor ))
274284 c .reference .memoryLeftover -= c .reference .gcacheFootprint
275285}
276286
You can’t perform that action at this time.
0 commit comments