sbcli-dev 12.1.1__tar.gz → 12.2.0__tar.gz
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-12.1.1 → sbcli_dev-12.2.0}/PKG-INFO +1 -1
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/cluster_ops.py +33 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/env_var +1 -1
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/rpc_client.py +5 -4
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/docker-compose-swarm.yml +1 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/haproxy.cfg +8 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/install_deps.sh +3 -1
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/storage_node_monitor.py +2 -2
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/tasks_runner_migration.py +2 -2
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/web_api_lvol.py +1 -1
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/README.md +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/pyproject.toml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/requirements.txt +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/setup.cfg +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/setup.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_cli/__init__.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/db_controller.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/deploy_fdb.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/foundation.yml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/prepare_fdb.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/storage_node_ops.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/workers/cleanup_foundationdb.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/README.md +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/app.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/requirements.txt +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_web/utils.py +0 -0
|
@@ -107,6 +107,37 @@ def _add_graylog_input(cluster_ip, password):
|
|
|
107
107
|
logger.debug(response.text)
|
|
108
108
|
return response.status_code == 201
|
|
109
109
|
|
|
110
|
+
def _set_max_result_window(cluster_ip, max_window=100000):
|
|
111
|
+
url_existing_indices = f"http://{cluster_ip}:9200/_all/_settings"
|
|
112
|
+
payload_existing = json.dumps({
|
|
113
|
+
"settings": {
|
|
114
|
+
"index.max_result_window": max_window
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
headers = {
|
|
118
|
+
'Content-Type': 'application/json',
|
|
119
|
+
}
|
|
120
|
+
response = requests.put(url_existing_indices, headers=headers, data=payload_existing)
|
|
121
|
+
if response.status_code == 200:
|
|
122
|
+
logger.info("Settings updated for existing indices.")
|
|
123
|
+
else:
|
|
124
|
+
logger.error(f"Failed to update settings for existing indices: {response.text}")
|
|
125
|
+
return False
|
|
126
|
+
|
|
127
|
+
url_template = f"http://{cluster_ip}:9200/_template/all_indices_template"
|
|
128
|
+
payload_template = json.dumps({
|
|
129
|
+
"index_patterns": ["*"],
|
|
130
|
+
"settings": {
|
|
131
|
+
"index.max_result_window": max_window
|
|
132
|
+
}
|
|
133
|
+
})
|
|
134
|
+
response_template = requests.put(url_template, headers=headers, data=payload_template)
|
|
135
|
+
if response_template.status_code == 200:
|
|
136
|
+
logger.info("Template created for future indices.")
|
|
137
|
+
return True
|
|
138
|
+
else:
|
|
139
|
+
logger.error(f"Failed to create template for future indices: {response_template.text}")
|
|
140
|
+
return False
|
|
110
141
|
|
|
111
142
|
def create_cluster(blk_size, page_size_in_blocks, cli_pass,
|
|
112
143
|
cap_warn, cap_crit, prov_cap_warn, prov_cap_crit, ifname, log_del_interval, metrics_retention_period,
|
|
@@ -244,6 +275,8 @@ def create_cluster(blk_size, page_size_in_blocks, cli_pass,
|
|
|
244
275
|
out = scripts.set_db_config_single()
|
|
245
276
|
logger.info("Configuring DB > Done")
|
|
246
277
|
|
|
278
|
+
_set_max_result_window(DEV_IP)
|
|
279
|
+
|
|
247
280
|
_add_graylog_input(DEV_IP, c.secret)
|
|
248
281
|
|
|
249
282
|
_create_update_user(c.uuid, c.grafana_endpoint, c.grafana_secret, c.secret)
|
|
@@ -140,7 +140,7 @@ class RPCClient:
|
|
|
140
140
|
"max_io_qpairs_per_ctrlr": qpair_count,
|
|
141
141
|
"max_queue_depth": 512,
|
|
142
142
|
"abort_timeout_sec": 5,
|
|
143
|
-
"ack_timeout":
|
|
143
|
+
"ack_timeout": 2048,
|
|
144
144
|
"zcopy": True,
|
|
145
145
|
"in_capsule_data_size": 4096,
|
|
146
146
|
"max_io_size": 131072,
|
|
@@ -480,7 +480,8 @@ class RPCClient:
|
|
|
480
480
|
"name": name,
|
|
481
481
|
"raid_level": raid_level,
|
|
482
482
|
"strip_size_kb": strip_size_kb,
|
|
483
|
-
"base_bdevs": bdevs_list
|
|
483
|
+
"base_bdevs": bdevs_list,
|
|
484
|
+
"io_unmap_limit": 100
|
|
484
485
|
}
|
|
485
486
|
if raid_level == "1":
|
|
486
487
|
params["strip_size_kb"] = 0
|
|
@@ -595,12 +596,12 @@ class RPCClient:
|
|
|
595
596
|
params = {
|
|
596
597
|
# "action_on_timeout": "abort",
|
|
597
598
|
"bdev_retry_count": 0,
|
|
598
|
-
"transport_retry_count":
|
|
599
|
+
"transport_retry_count": 5,
|
|
599
600
|
"ctrlr_loss_timeout_sec": 1,
|
|
600
601
|
"fast_io_fail_timeout_sec": 0,
|
|
601
602
|
"reconnect_delay_sec": 1,
|
|
602
603
|
"keep_alive_timeout_ms": 10000,
|
|
603
|
-
"transport_ack_timeout":
|
|
604
|
+
"transport_ack_timeout": 10,
|
|
604
605
|
"timeout_us": constants.NVME_TIMEOUT_US
|
|
605
606
|
}
|
|
606
607
|
return self._request("bdev_nvme_set_options", params)
|
|
@@ -65,6 +65,10 @@ backend graylog_input_services
|
|
|
65
65
|
balance roundrobin
|
|
66
66
|
server-template graylog_input- 1 graylog:12201 check resolvers docker init-addr libc,none
|
|
67
67
|
|
|
68
|
+
backend opensearch_services
|
|
69
|
+
balance roundrobin
|
|
70
|
+
server-template opensearch- 1 opensearch:9200 check resolvers docker init-addr libc,none
|
|
71
|
+
|
|
68
72
|
|
|
69
73
|
frontend web_api_front
|
|
70
74
|
bind *:80
|
|
@@ -79,3 +83,7 @@ frontend graylog_input_front
|
|
|
79
83
|
bind *:12202
|
|
80
84
|
mode tcp
|
|
81
85
|
default_backend graylog_input_services
|
|
86
|
+
|
|
87
|
+
frontend opensearch_front
|
|
88
|
+
bind *:9200
|
|
89
|
+
default_backend opensearch_services
|
|
@@ -25,4 +25,6 @@ sudo sysctl -w vm.max_map_count=262144
|
|
|
25
25
|
sudo mkdir -p /etc/simplyblock
|
|
26
26
|
sudo chmod 777 /etc/simplyblock
|
|
27
27
|
|
|
28
|
-
sudo sh -c 'echo 1 > /proc/sys/vm/drop_caches'
|
|
28
|
+
sudo sh -c 'echo 1 > /proc/sys/vm/drop_caches'
|
|
29
|
+
|
|
30
|
+
sudo sed -i 's/ProcessSizeMax=.*/ProcessSizeMax=5G/' /etc/systemd/coredump.conf
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
2
|
import time
|
|
3
|
-
from datetime import datetime
|
|
3
|
+
from datetime import datetime, timezone
|
|
4
4
|
|
|
5
5
|
from simplyblock_core import constants, db_controller, cluster_ops, storage_node_ops, utils
|
|
6
6
|
from simplyblock_core.controllers import health_controller, device_controller, tasks_controller
|
|
@@ -138,7 +138,7 @@ def update_cluster_status(cluster_id):
|
|
|
138
138
|
break
|
|
139
139
|
|
|
140
140
|
if node.online_since:
|
|
141
|
-
diff = datetime.now() - datetime.fromisoformat(node.online_since)
|
|
141
|
+
diff = datetime.now(timezone.utc) - datetime.fromisoformat(node.online_since)
|
|
142
142
|
if diff.total_seconds() < 60:
|
|
143
143
|
can_activate = False
|
|
144
144
|
break
|
|
@@ -91,9 +91,9 @@ def task_runner(task):
|
|
|
91
91
|
if not rsp:
|
|
92
92
|
logger.error(f"Failed to start device migration task, storage_ID: {device.cluster_device_order}")
|
|
93
93
|
task.function_result = "Failed to start device migration task"
|
|
94
|
-
task.
|
|
94
|
+
task.status = JobSchedule.STATUS_DONE
|
|
95
95
|
task.write_to_db(db_controller.kv_store)
|
|
96
|
-
return
|
|
96
|
+
return True
|
|
97
97
|
task.function_params['migration'] = {
|
|
98
98
|
"name": distr_name}
|
|
99
99
|
task.write_to_db(db_controller.kv_store)
|
|
@@ -38,7 +38,7 @@ def list_lvols(uuid):
|
|
|
38
38
|
data = []
|
|
39
39
|
for lvol in lvols:
|
|
40
40
|
tmp = lvol.get_clean_dict()
|
|
41
|
-
tmp['pool_name'] =
|
|
41
|
+
tmp['pool_name'] = lvol.pool_uuid
|
|
42
42
|
# records_list = lvol_controller.get_io_stats(lvol.get_id(), history=None, parse_sizes=False)
|
|
43
43
|
# records_list = False
|
|
44
44
|
# if records_list:
|
|
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-12.1.1 → sbcli_dev-12.2.0}/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
|
{sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/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-12.1.1 → sbcli_dev-12.2.0}/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
|
|
File without changes
|
{sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/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
|
{sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/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
|
{sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/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
|
{sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
{sbcli_dev-12.1.1 → sbcli_dev-12.2.0}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|