From 30f4e0e383e52b03d248ec7b5f163d9417a1d845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=D0=B5rgi=D0=BE=20N=D0=B5mir=D0=BEwski?= Date: Tue, 15 Oct 2024 19:14:20 +0300 Subject: [PATCH] neofs-storage: add tree-service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sеrgiо Nеmirоwski --- roles/storage/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/roles/storage/defaults/main.yml b/roles/storage/defaults/main.yml index d24101c..fd98a03 100644 --- a/roles/storage/defaults/main.yml +++ b/roles/storage/defaults/main.yml @@ -47,6 +47,8 @@ neofs_storage__wallet_path: '{{ neofs_storage__conf_dir }}/wallet.json' neofs_storage__wallet_address: '' neofs_storage__wallet_password: '' +neofs_storage__tree_service: False + neofs_storage__morph_endpoints: [] neofs_storage__announce_addresses: [ '{{ neofs_storage__grpc_address | ansible.utils.ipwrap }}:{{ neofs_storage__grpc_port }}' ] @@ -180,6 +182,12 @@ neofs_storage__shards: | path: '{{ data }}/peapod.db' - type: fstree path: '{{ data }}/tree' + {% if neofs_storage__tree_service %} + pilorama: + path: '{{ data }}/pilorama.db' + max_batch_delay: 10ms + max_batch_size: 200 + {% endif %} {% endfor %} @@ -205,6 +213,16 @@ neofs_storage__default_config: enabled: True address: '{{ neofs_storage__pprof_address | ansible.utils.ipwrap }}:{{ neofs_storage__pprof_port }}' + - enabled: '{{ neofs_storage__tree_service }}' + options: + tree: + enabled: true + cache_size: 15 + replication_worker_count: 16 + replication_channel_capacity: 16 + replication_timeout: 5s + sync_interval: 1h + neofs_storage__config: [] neofs_storage__group_config: [] neofs_storage__host_config: []