From 144c43f1e9048b85eb025405eb0a911fdc6f581d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=D0=B5rgi=D0=BE=20N=D0=B5mir=D0=BEwski?= Date: Wed, 4 Dec 2024 04:15:37 +0300 Subject: [PATCH] add neofs blockfetcher support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sеrgiо Nеmirоwski --- defaults/main/main.yml | 22 ++++++++++++++++++++++ defaults/main/network_opts.yml | 4 ++++ 2 files changed, 26 insertions(+) diff --git a/defaults/main/main.yml b/defaults/main/main.yml index daf0a63..41a2300 100644 --- a/defaults/main/main.yml +++ b/defaults/main/main.yml @@ -88,6 +88,14 @@ neogo__pprof_allow: [] neogo__pprof_group_allow: [] neogo__pprof_host_allow: [] +neogo__neofs_blockfetcher_enabled: False +neogo__neofs_blockfetcher_addresses: + - st1.storage.fs.neo.org:443 + - st2.storage.fs.neo.org:443 + - st3.storage.fs.neo.org:443 + - st4.storage.fs.neo.org:443 +neogo__neofs_blockfetcher_container_id: '{{ neogo__network_type_settings[neogo__network_type].neofs_blockfetcher_container_id }}' + neogo__raw_config: ProtocolConfiguration: @@ -195,6 +203,20 @@ neogo__default_config: Enabled: True Addresses: '{{ neogo__pprof_addresses }}' + - enabled: '{{ neogo__neofs_blockfetcher_enabled }}' + path: ApplicationConfiguration + options: + NeoFSBlockFetcher: + Enabled: True + Addresses: '{{ neogo__neofs_blockfetcher_addresses }}' + containerid: '{{ neogo__neofs_blockfetcher_container_id }}' + BlockAttribute: 'Block' + IndexFileAttribute: 'Index' + Timeout: '10m' + DownloaderWorkersCount: 500 + BQueueSize: 16000 + IndexFileSize: 128000 + neogo__config: [] neogo__group_config: [] neogo__host_config: [] diff --git a/defaults/main/network_opts.yml b/defaults/main/network_opts.yml index 93a1eb3..8d0eea3 100644 --- a/defaults/main/network_opts.yml +++ b/defaults/main/network_opts.yml @@ -3,11 +3,13 @@ neogo__network_type_settings: neo-mainnet: network: 'mainnet' + neofs_blockfetcher_container_id: '7a1cn9LNmAcHjESKWxRGG7RSZ55YHJF6z2xDLTCuTZ6c' p2p: 10333 rpc: 10332 tls: 10331 neo-testnet: network: 'testnet' + neofs_blockfetcher_container_id: '87JRc7vyWcjW8uS32LMoLTAj4ckCzFZWfKbacjU3sAob' p2p: 20333 rpc: 20332 tls: 20331 @@ -18,11 +20,13 @@ neogo__network_type_settings: tls: 30331 morph-mainnet: network: 'mainnet' + neofs_blockfetcher_container_id: 'VCVr6RKg1hfJR7v36xvjbaXTncj1waPi94u9EFyEttW' # p2p: # rpc: # tls: morph-testnet: network: 'mainnet' + neofs_blockfetcher_container_id: 'FidCcVzUxzY3PeUksCnnpUQ8h8PJeYPessX8FRMuveSy' # p2p: # rpc: # tls: