sbcli-dev 3.8.75__zip → 3.8.77__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/PKG-INFO +1 -1
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/env_var +1 -1
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/constants.py +4 -4
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/device_controller.py +1 -1
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/tasks_controller.py +10 -1
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/storage_node_ops.py +5 -9
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/utils.py +3 -4
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/README.md +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/pyproject.toml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/setup.cfg +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/setup.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/compute_node_ops.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/kv_store.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/compute_node.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/global_settings.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/distr_event_collector.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/app.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_web/utils.py +0 -0
|
@@ -64,10 +64,10 @@ GELF_PORT = 12201
|
|
|
64
64
|
|
|
65
65
|
MIN_HUGE_PAGE_MEMORY_FOR_LVOL = 209715200
|
|
66
66
|
MIN_SYS_MEMORY_FOR_LVOL = 524288000
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
EXTRA_SMALL_POOL_COUNT = 0
|
|
70
|
-
EXTRA_LARGE_POOL_COUNT = 0
|
|
67
|
+
EXTRA_SMALL_POOL_COUNT = 1024
|
|
68
|
+
EXTRA_LARGE_POOL_COUNT = 128
|
|
69
|
+
# EXTRA_SMALL_POOL_COUNT = 0
|
|
70
|
+
# EXTRA_LARGE_POOL_COUNT = 0
|
|
71
71
|
EXTRA_HUGE_PAGE_MEMORY = 2147483648
|
|
72
72
|
#EXTRA_SYS_MEMORY = 2147483648
|
|
73
73
|
EXTRA_SYS_MEMORY = 0
|
|
@@ -251,7 +251,7 @@ def restart_device(device_id, force=False):
|
|
|
251
251
|
device_events.device_restarted(device_obj)
|
|
252
252
|
|
|
253
253
|
# add to jm raid
|
|
254
|
-
if snode.jm_device and snode.jm_device.raid_bdev:
|
|
254
|
+
if snode.jm_device and snode.jm_device.raid_bdev and snode.jm_device.status != JMDevice.STATUS_REMOVED:
|
|
255
255
|
# looking for jm partition
|
|
256
256
|
rpc_client = RPCClient(snode.mgmt_ip, snode.rpc_port, snode.rpc_username, snode.rpc_password)
|
|
257
257
|
jm_dev_part = f"{dev.nvme_bdev[:-1]}1"
|
|
@@ -25,6 +25,15 @@ def _validate_new_task_dev_restart(cluster_id, node_id, device_id):
|
|
|
25
25
|
return True
|
|
26
26
|
|
|
27
27
|
|
|
28
|
+
def _validate_new_task_node_restart(cluster_id, node_id):
|
|
29
|
+
tasks = db_controller.get_job_tasks(cluster_id)
|
|
30
|
+
for task in tasks:
|
|
31
|
+
if task.function_name == JobSchedule.FN_NODE_RESTART and task.node_id == node_id and task.canceled is False:
|
|
32
|
+
if task.status != JobSchedule.STATUS_DONE:
|
|
33
|
+
return task.get_id()
|
|
34
|
+
return False
|
|
35
|
+
|
|
36
|
+
|
|
28
37
|
def _add_task(function_name, cluster_id, node_id, device_id,
|
|
29
38
|
max_retry=constants.TASK_EXEC_RETRY_COUNT, function_params=None):
|
|
30
39
|
|
|
@@ -32,7 +41,7 @@ def _add_task(function_name, cluster_id, node_id, device_id,
|
|
|
32
41
|
if not _validate_new_task_dev_restart(cluster_id, node_id, device_id):
|
|
33
42
|
return False
|
|
34
43
|
elif function_name == JobSchedule.FN_NODE_RESTART:
|
|
35
|
-
task_id =
|
|
44
|
+
task_id = _validate_new_task_node_restart(cluster_id, node_id)
|
|
36
45
|
if task_id:
|
|
37
46
|
logger.info(f"Task found, skip adding new task: {task_id}")
|
|
38
47
|
return False
|
|
@@ -918,8 +918,10 @@ def add_node(cluster_id, node_ip, iface_name, data_nics_list,
|
|
|
918
918
|
return False
|
|
919
919
|
|
|
920
920
|
max_prov = int(utils.parse_size(max_prov))
|
|
921
|
-
number_of_split = num_partitions_per_dev if num_partitions_per_dev else
|
|
921
|
+
number_of_split = num_partitions_per_dev if num_partitions_per_dev else 1
|
|
922
922
|
number_of_alceml_devices = number_of_devices * number_of_split
|
|
923
|
+
# for jm
|
|
924
|
+
number_of_alceml_devices += 1
|
|
923
925
|
small_pool_count, large_pool_count = utils.calculate_pool_count(
|
|
924
926
|
number_of_alceml_devices, number_of_distribs, cpu_count, len(poller_cpu_cores) or cpu_count)
|
|
925
927
|
|
|
@@ -936,7 +938,7 @@ def add_node(cluster_id, node_ip, iface_name, data_nics_list,
|
|
|
936
938
|
logger.info("Node Memory info")
|
|
937
939
|
logger.info(f"Total: {utils.humanbytes(memory_details['total'])}")
|
|
938
940
|
logger.info(f"Free: {utils.humanbytes(memory_details['free'])}")
|
|
939
|
-
logger.info(f"Minimum required huge pages memory is : {minimum_hp_memory}")
|
|
941
|
+
logger.info(f"Minimum required huge pages memory is : {utils.humanbytes(minimum_hp_memory)}")
|
|
940
942
|
else:
|
|
941
943
|
logger.error(f"Cannot get memory info from the instance.. Exiting")
|
|
942
944
|
return False
|
|
@@ -1389,12 +1391,6 @@ def restart_storage_node(
|
|
|
1389
1391
|
if force is False:
|
|
1390
1392
|
return False
|
|
1391
1393
|
|
|
1392
|
-
task_id = tasks_controller.get_active_node_restart_task(snode.cluster_id, snode.get_id())
|
|
1393
|
-
if task_id:
|
|
1394
|
-
logger.error(f"Restart task found: {task_id}, can not restart storage node")
|
|
1395
|
-
if force is False:
|
|
1396
|
-
return False
|
|
1397
|
-
|
|
1398
1394
|
if node_ip:
|
|
1399
1395
|
if node_ip != snode.api_endpoint:
|
|
1400
1396
|
logger.info(f"Restarting on new node with ip: {node_ip}")
|
|
@@ -1483,7 +1479,7 @@ def restart_storage_node(
|
|
|
1483
1479
|
logger.info("Node Memory info")
|
|
1484
1480
|
logger.info(f"Total: {utils.humanbytes(memory_details['total'])}")
|
|
1485
1481
|
logger.info(f"Free: {utils.humanbytes(memory_details['free'])}")
|
|
1486
|
-
logger.info(f"Minimum required huge pages memory is : {minimum_hp_memory}")
|
|
1482
|
+
logger.info(f"Minimum required huge pages memory is : {utils.humanbytes(minimum_hp_memory)}")
|
|
1487
1483
|
else:
|
|
1488
1484
|
logger.error(f"Cannot get memory info from the instance.. Exiting")
|
|
1489
1485
|
return False
|
|
@@ -478,14 +478,14 @@ def calculate_minimum_hp_memory(small_pool_count, large_pool_count, lvol_count,
|
|
|
478
478
|
pool_consumption = (small_pool_count * 8 + large_pool_count * 128) / 1024 + 1092
|
|
479
479
|
max_prov_tb = max_prov / (1024 * 1024 * 1024 * 1024)
|
|
480
480
|
memory_consumption = (4 * cpu_count + 1.0277 * pool_consumption + 7 * lvol_count) * (1024 * 1024) + (250 * 1024 * 1024) * 1.1 * max_prov_tb + constants.EXTRA_HUGE_PAGE_MEMORY
|
|
481
|
-
return memory_consumption
|
|
481
|
+
return int(memory_consumption)
|
|
482
482
|
|
|
483
483
|
|
|
484
484
|
def calculate_minimum_sys_memory(max_prov):
|
|
485
485
|
max_prov_tb = max_prov / (1024 * 1024 * 1024 * 1024)
|
|
486
486
|
minimum_sys_memory = (250 * 1024 * 1024) * 1.1 * max_prov_tb + constants.EXTRA_SYS_MEMORY
|
|
487
487
|
logger.debug(f"Minimum system memory is {humanbytes(minimum_sys_memory)}")
|
|
488
|
-
return minimum_sys_memory
|
|
488
|
+
return int(minimum_sys_memory)
|
|
489
489
|
|
|
490
490
|
|
|
491
491
|
def calculate_spdk_memory(minimum_hp_memory, minimum_sys_memory, free_sys_memory, huge_total_memory):
|
|
@@ -495,8 +495,7 @@ def calculate_spdk_memory(minimum_hp_memory, minimum_sys_memory, free_sys_memory
|
|
|
495
495
|
f"Minimum huge pages memory: {humanbytes(minimum_hp_memory)}, "
|
|
496
496
|
f"Minimum system memory: {humanbytes(minimum_sys_memory)}")
|
|
497
497
|
return False, 0
|
|
498
|
-
spdk_mem = minimum_hp_memory + (total_free_memory - minimum_hp_memory - minimum_sys_memory) * 0.2
|
|
499
|
-
spdk_mem = minimum_hp_memory
|
|
498
|
+
spdk_mem = int(minimum_hp_memory + (total_free_memory - minimum_hp_memory - minimum_sys_memory) * 0.2)
|
|
500
499
|
logger.debug(f"SPDK memory is {humanbytes(spdk_mem)}")
|
|
501
500
|
return True, spdk_mem
|
|
502
501
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/controllers/caching_node_controller.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/clean_local_storage_deploy.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/dashboards/node-exporter.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/capacity_and_stats_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/main_distr_event_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.75 → sbcli_dev-3.8.77}/simplyblock_core/services/tasks_runner_new_dev_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|