diff --git a/creolefuncs/mariadb.py b/creolefuncs/mariadb.py index 688e696..0351e9c 100644 --- a/creolefuncs/mariadb.py +++ b/creolefuncs/mariadb.py @@ -6,8 +6,8 @@ def getMemoryPercentage(percent): percent = int(percent) totalMemory = os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES') memoryToUse = (totalMemory*percent)/100 - memoryMb = memoryToUse/(1024.**2) - return "{0}M".format(int(memoryMb)) + memoryMb = int(memoryToUse/(1024.**2)) + return "{0}M".format(memoryMb) except: return "Error during memory percentage calculation" diff --git a/dicos/25_bdd_server.xml b/dicos/25_bdd_server.xml index 8e966ff..5b16317 100644 --- a/dicos/25_bdd_server.xml +++ b/dicos/25_bdd_server.xml @@ -2,6 +2,7 @@ + mariadb 3306 mariadb @@ -153,6 +154,14 @@ "" + + non + Database Cluster + Database + dbCluster + bdd + + non accName @@ -167,13 +176,6 @@ dbCluster - - non - Database Cluster - Database - dbCluster - - non dbQueryCacheLimit