Topology file configuration

Hello Everyone,

I wanted to confirm if I am setting up the topology files on my servers correctly.

For the block producer node, this is how I have.

{
  "Producers": [
    {
      "addr": "Relay 1 IP",
      "port": 6000,
      "valency": 1
    },  
	{
      "addr": "Relay 2 IP",
      "port": 6000,
      "valency": 1
    }
  ]
}

for both of my relays, this is how I have it.

{
  "Producers": [
    {
      "addr": "BP NODE IP",
      "port": 6000,
      "valency": 1
    },
    {
      "addr": "RELAY 1 IP",
      "port": 6000,
      "valency": 1
    },  
	{
      "addr": "RELAY 2 IP",
      "port": 6000,
      "valency": 1
    }
  ]
}

Thank you all for the help :slight_smile:

your relay config just needs the block node ip. you’ll run topology later on your relay node.
See below for example.
{
“Producers”: [
{
“addr”: “<BLOCK PRODUCER NODE’S PUBLIC IP ADDRESS>”,
“port”: 6000,
“valency”: 1
},
{
“addr”: “relays-new.cardano-mainnet.iohk.io”,
“port”: 3001,
“valency”: 2
}
]
}

Do I always need to connect to the iohk server?

No. Once you run topologyUpdater script. It will pull other SPO relays.

Is this normal? is this how it should look on the relay node after running the topologyupdater script?

image