Skip to content

Commit 982b12e

Browse files
set size of lvstore cluster in constants (as ratio to distrib page size)
1 parent 6aa70a6 commit 982b12e

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎simplyblock_core/constants.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def get_config_var(name, default=None):
9393
MIN_SYS_MEMORY_FOR_LVOL = 524288000
9494
EXTRA_SMALL_POOL_COUNT = 4096
9595
EXTRA_LARGE_POOL_COUNT = 10240
96-
EXTRA_HUGE_PAGE_MEMORY = 3000000000
96+
EXTRA_HUGE_PAGE_MEMORY = 1147483648
9797
EXTRA_SYS_MEMORY = 0.10
9898

9999
INSTANCE_STORAGE_DATA = {
@@ -133,7 +133,8 @@ def get_config_var(name, default=None):
133133
LVOL_NVME_CONNECT_NR_IO_QUEUES=3
134134
LVOL_NVME_KEEP_ALIVE_TO=10
135135
LVOL_NVME_KEEP_ALIVE_TO_TCP=7
136-
LVOL_NVMF_PORT_START=int(os.getenv('LVOL_NVMF_PORT_START', 9100))
136+
LVOL_NVMF_PORT_ENV = os.getenv("LVOL_NVMF_PORT_START", "")
137+
LVOL_NVMF_PORT_START = int(LVOL_NVMF_PORT_ENV) if LVOL_NVMF_PORT_ENV else 9100
137138
QPAIR_COUNT=32
138139
CLIENT_QPAIR_COUNT=3
139140
NVME_TIMEOUT_US=8000000
@@ -224,4 +225,4 @@ def get_config_var(name, default=None):
224225

225226
qos_class_meta_and_migration_weight_percent = 25
226227

227-
MIG_PARALLEL_JOBS = 16
228+
MIG_PARALLEL_JOBS = 64

‎simplyblock_core/rpc_client.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ def distr_migration_status(self, name):
922922
params = {"name": name}
923923
return self._request("distr_migration_status", params)
924924

925-
def distr_migration_failure_start(self, name, storage_ID, qos_high_priority=False, job_size=1024, jobs=4):
925+
def distr_migration_failure_start(self, name, storage_ID, qos_high_priority=False, job_size=64, jobs=64):
926926
params = {
927927
"name": name,
928928
"storage_ID": storage_ID,
@@ -935,7 +935,7 @@ def distr_migration_failure_start(self, name, storage_ID, qos_high_priority=Fals
935935
params["jobs"] = jobs
936936
return self._request("distr_migration_failure_start", params)
937937

938-
def distr_migration_expansion_start(self, name, qos_high_priority=False, job_size=1024, jobs=4):
938+
def distr_migration_expansion_start(self, name, qos_high_priority=False, job_size=64, jobs=64):
939939
params = {
940940
"name": name,
941941
}

‎simplyblock_core/services/tasks_runner_failed_migration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def task_runner(task):
8888
if db.get_cluster_by_id(snode.cluster_id).is_qos_set():
8989
qos_high_priority = True
9090
rsp = rpc_client.distr_migration_failure_start(
91-
distr_name, device.cluster_device_order, qos_high_priority, job_size=1024, jobs=constants.MIG_PARALLEL_JOBS)
91+
distr_name, device.cluster_device_order, qos_high_priority, job_size=64, jobs=constants.MIG_PARALLEL_JOBS)
9292
if not rsp:
9393
logger.error(f"Failed to start device migration task, storage_ID: {device.cluster_device_order}")
9494
task.function_result = "Failed to start device migration task"

‎simplyblock_core/services/tasks_runner_migration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def task_runner(task):
9393
qos_high_priority = False
9494
if db.get_cluster_by_id(snode.cluster_id).is_qos_set():
9595
qos_high_priority = True
96-
rsp = rpc_client.distr_migration_expansion_start(distr_name, qos_high_priority, job_size=1024,
96+
rsp = rpc_client.distr_migration_expansion_start(distr_name, qos_high_priority, job_size=64,
9797
jobs=constants.MIG_PARALLEL_JOBS)
9898
if not rsp:
9999
logger.error(f"Failed to start device migration task, storage_ID: {device.cluster_device_order}")

‎simplyblock_core/services/tasks_runner_new_dev_migration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def task_runner(task):
9898
qos_high_priority = False
9999
if db.get_cluster_by_id(snode.cluster_id).is_qos_set():
100100
qos_high_priority = True
101-
rsp = rpc_client.distr_migration_expansion_start(distr_name, qos_high_priority, job_size=1024,
101+
rsp = rpc_client.distr_migration_expansion_start(distr_name, qos_high_priority, job_size=64,
102102
jobs=constants.MIG_PARALLEL_JOBS)
103103
if not rsp:
104104
logger.error(f"Failed to start device migration task, storage_ID: {device.cluster_device_order}")

0 commit comments

Comments
 (0)