From ebeb1f98a04f3256a9067b1be0d5e55ad7927011 Mon Sep 17 00:00:00 2001 From: Sorin Stanculeanu Date: Fri, 1 Mar 2024 16:16:28 +0200 Subject: [PATCH] proper snapshotless info --- .../snapshotless-observing-squad.md | 28 ++++++------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/docs/integrators/snapshotless-observing-squad.md b/docs/integrators/snapshotless-observing-squad.md index 6532f620..d92fe548 100644 --- a/docs/integrators/snapshotless-observing-squad.md +++ b/docs/integrators/snapshotless-observing-squad.md @@ -24,36 +24,24 @@ The nodes started with the flag `--operation-mode snapshotless-observer` will no ### Creating a Snapshotless Observing Squad from scratch -If you choose to install a snapshotless observing squad from scratch, you should follow the instruction from the [observing squad section](/integrators/observing-squad) and remember to do the following updates: -* add in the `variables.cfg` file the operation mode in the node's extra flags definition: +If you choose to install a snapshotless observing squad from scratch, you should follow the instruction from the [observing squad section](/integrators/observing-squad) and remember to do add in the `variables.cfg` file the operation mode in the node's extra flags definition: ``` NODE_EXTRA_FLAGS="-log-save -operation-mode snapshotless-observer" ``` -* update the proxy config created by the scripts (found at `$CUSTOM_HOME/elrond-proxy/config/config.toml`). `IsSnapshotless = true` should be added to each observer started with this flag, as follows. Please note that this step is optional. +After that, you can resume the normal Observing Squad installation steps. + +Then, based on the needs there are multiple options concerning the proxy: +* if only a snapshotless squad is needed, nothing else should be done +* if both regular and snapshotless squads are needed: + * with two different proxies, nothing else should be done, proxies should have been started separately + * with only one proxy (being served by all 8 observers), `IsSnapshotless = true` should be added to each observer started with this flag, in the proxy config (found at `$CUSTOM_HOME/elrond-proxy/config/config.toml`), as follows. Please note that this step is optional, although it would help the proxy to forward the requests in an efficient manner. ```toml [[Observers]] ShardId = 0 Address = "http://127.0.0.1:8080" IsSnapshotless = true - -[[Observers]] - ShardId = 1 - Address = "http://127.0.0.1:8081" - IsSnapshotless = true - -[[Observers]] - ShardId = 2 - Address = "http://127.0.0.1:8082" - IsSnapshotless = true - -[[Observers]] - ShardId = 4294967295 - Address = "http://127.0.0.1:8083" - IsSnapshotless = true ``` -After that, you can resume the normal Observing Squad installation steps. - [comment]: # (mx-context-auto) ### Converting a normal Observing Squad to a Snapshotless Observing Squad