# Can someone explain to me what the relays are doing?

**URL:** <https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820>\
**Category:** Operate a Stake Pool\
**Created:** [24 February 2021 18:43 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820 "2021-02-24T18:43:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 18:43 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/1 "2021-02-24T18:43:11Z")

</div>

```
> Cardano Node - (Core - Mainnet) : 1.25.1 [9a7331cc] <

```

┌────────────────────────┬────────────┬────────────────────────┐  
│ Uptime: 01:21:26 │ Port: xxx│ Guild LiveView v1.19.4 │  
│------------------------└────────────┴────────────────────────┤  
│ Epoch 249 [97.5%] (node) │  
│ 03:02:56 until epoch boundary (chain) │  
│ ▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▖▖ │  
│ │  
│ Block : 5385221 Tip (ref) : 22625824 │  
│ Slot : 421000 Tip (node) : 22625800 │  
│ Density : 5.017 Tip (diff) : 24 🙂 │  
│--------------------------------------------------------------│  
│ Processed TX : 0 Out / In │  
│ Mempool TX/Bytes : 0 / 0 Peers : 2 0 │  
├──────────────────────────────────────────────────────────────┤  
│ KES current/remaining : 174 / 61 │  
│ KES expiration date : 2021-05-26 09:44:51 UTC │  
│--------------------------------------------------------------│  
│ BLOCKS Leader | Adopted | Invalid │  
│Since node start (EKG metrics) 0 | 0 | 0 │  
└──────────────────────────────────────────────────────────────┘  
TG Announcement/Support channel: [t.me/guild\_operators\_official](http://t.me/guild_operators_official)

[esc/q] Quit | [i] Info | [p] Peer Analysis

Is my block producers going out to my relays or our my relays going in to my block producer?

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [24 February 2021 19:22 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/2 "2021-02-24T19:22:20Z")

</div>

i am not familiar with this tool but can you switch to peer view? maybe with pressing ‘p’

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 19:29 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/3 "2021-02-24T19:29:27Z")

</div>

> Cardano Node - (Core - Mainnet) : 1.25.1 [9a7331cc] \<  
> ┌────────────────────────┬────────────┬────────────────────────┐  
> │ Uptime: 00:07:22 │ Port: xxxx│ Guild LiveView v1.19.4 │  
> │------------------------└────────────┴────────────────────────┤  
> │ OUT RTT : Peers / Percent │  
> │ 0-50ms : 2 / 100% ▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌│  
> │ 50-100ms : 0 / 0% ▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖│  
> │ 100-200ms : 0 / 0% ▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖│  
> │ 200ms \< : 0 / 0% ▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖│  
> │- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - │  
> │ Total / Unreachable : 2 / 0 Average RTT : 1 ms │  
> │- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - │  
> │ # : REMOTE PEER : RTT (ms) [1-2] │  
> │ 1 : xxxxxxxxxxxxxxxxx : 1 │  
> │ 2 : xxxxxxxxxxxxxxxx : 1 │  
> ├──────────────────────────────────────────────────────────────┤  
> │ In RTT : Peers / Percent │  
> │ 0-50ms : 0 / 0% ▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖│  
> │ 50-100ms : 0 / 0% ▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖│  
> │ 100-200ms : 0 / 0% ▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖│  
> │ 200ms \< : 0 / 0% ▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖│  
> │- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - │  
> │ Total / Unreachable : 0 / 0 Average RTT : 0 ms │  
> └──────────────────────────────────────────────────────────────┘  
> TG Announcement/Support channel: [Telegram: Contact @guild\_operators\_official](http://t.me/guild_operators_official)

[esc/q] Quit | [h] Home | [i] Info | Up/Down : Select List  
Left/Right : Navigate List

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 19:30 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/4 "2021-02-24T19:30:25Z")

</div>

> [@godofrefuse](#):
>
> # : REMOTE PEER : RTT (ms) [1-2] │
> 
> │ 1 : xxxxxxxxxxxxxxxxx : 1 │  
> │ 2 : xxxxxxxxxxxxxxxx : 1 │

The IPS for the remote peers are not the IPS or the ports of my 2 relays, not sure if those are the IOHK ones. I am running the topology updater cron job at the moment.

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [24 February 2021 19:33 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/5 "2021-02-24T19:33:27Z")

</div>

and have you modified the topologyUpdater script to include your relays addresses?

```auto
#CUSTOM_PEERS="None" # Additional custom peers to (IP:port[:valency]) to add to your target topology.json
                                                          # eg: "10.0.0.1:3001|10.0.0.2:3002|relays.mydomain.com:3003:3"

```

[https://cardano-community.github.io/guild-operators/#/Scripts/topologyupdater](https://cardano-community.github.io/guild-operators/#/Scripts/topologyupdater)

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 19:35 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/6 "2021-02-24T19:35:12Z")

</div>

I didnt see that option in the coincashew tutorial, where do I put that? I had a different topology updater, i downloaded the different one now

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [24 February 2021 19:41 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/7 "2021-02-24T19:41:21Z")

</div>

ahh - so the topologyUpdater script should only be used to generate topology file for your relay node.  
in case of block producer you should do it manually by adding the addresses of your relay nodes

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 19:43 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/8 "2021-02-24T19:43:12Z")

</div>

Do I separate by comma? make a new row?

#CUSTOM\_PEERS=“x.x.x.x:xxxx:x” \<\< relay 1  
#CUSTOM\_PEERS=“x.x.x.x:xxxx:x” \<\< block

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [24 February 2021 19:45 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/9 "2021-02-24T19:45:03Z")

</div>

Hi!

please uncomment the line and give your block producer address as the example suggests

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 19:46 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/10 "2021-02-24T19:46:32Z")

</div>

What goes here then:

CNODE\_HOSTNAME=“xxxxx” # (Optional) Must resolve to the IP you are requesting from \<\< BLOCK?

#CUSTOM\_PEERS=“x.x.x.x:xxxx:x” \<\< block ?

#CUSTOM\_PEERS=“x.x.x.x:xxxx:x” \<\< relay 2 ?

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [24 February 2021 19:51 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/11 "2021-02-24T19:51:15Z")

</div>

have you read the instructions I gave just recently?

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 19:51 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/12 "2021-02-24T19:51:27Z")

</div>

yes I have read your instructions, asking to clarify please.

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [24 February 2021 19:52 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/13 "2021-02-24T19:52:51Z")

</div>

so, uncomment the line of CUSTOM\_PEERS and add your block producer address

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 19:53 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/14 "2021-02-24T19:53:22Z")

</div>

that doesnt answer my question what goes in the top one (CNODE\_HOSTNAME) and do i add the second relay?

CNODE\_HOSTNAME=“xxxxx” # (Optional) Must resolve to the IP you are requesting from \<\< BLOCK?

#CUSTOM\_PEERS=“x.x.x.x:xxxx:x” \<\< block ?

#CUSTOM\_PEERS=“x.x.x.x:xxxx:x” \<\< relay 2 ?

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [24 February 2021 19:54 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/15 "2021-02-24T19:54:29Z")

</div>

why do you want to change the CNODE\_HOSTNAME line?

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 19:54 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/16 "2021-02-24T19:54:51Z")

</div>

because it says change me?

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [24 February 2021 19:55 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/17 "2021-02-24T19:55:46Z")

</div>

that is optional, and you asked where to put the addresses of the relay node, did not you?

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 19:56 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/18 "2021-02-24T19:56:18Z")

</div>

This topologyUpdater.sh is on my Relay 1, and Relay 2.

I am trying to configure it for my 2 relays.

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [24 February 2021 19:57 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/19 "2021-02-24T19:57:28Z")

</div>

good - then uncomment the CUSTOM\_PEERS line and add your relay addresses as the example suggests

---

<div class="post-metadata">

**Author:** ![godofrefuse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/godofrefuse/32/26979_2.png) [@godofrefuse](https://forum.cardano.org/u/godofrefuse)\
**Post date:** [24 February 2021 19:58 UTC](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820/20 "2021-02-24T19:58:09Z")

</div>

So I add the Block and Relay 2?

also:  
./topologyUpdater.sh  
tee: /opt/cardano/cnode/logs/topologyUpdater\_lastresult.json: No such file or directory  
{ “resultcode”: “504”, “datetime”:“2021-02-24 19:57:23”, “clientIp”: “xxxxx”, “iptype”: 4, “msg”: “one request per hour please” }

[Next page](https://forum.cardano.org/t/can-someone-explain-to-me-what-the-relays-are-doing/49820.md?page=2)
