<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged addnode</title>
<link>https://www.multichain.com/qa/tag/addnode</link>
<description>Powered by Question2Answer</description>
<item>
<title>addnode strategy</title>
<link>https://www.multichain.com/qa/24887/addnode-strategy</link>
<description>&lt;p&gt;Dear MC team,&lt;/p&gt;&lt;p&gt;I have a network with about ten miners (in round-robin style) and some full back nodes.&lt;br&gt;I have to face the following matters:&lt;br&gt;- periodically some miner are switched off for maintenance&lt;br&gt;- the miners must be addressed by host name because their address could change&lt;/p&gt;&lt;p&gt;I cannot use a &lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;connect &lt;/span&gt;command because I'm not sure which of the miner is up and running at one moment.&amp;nbsp;&lt;br&gt;Besides even if the connect command is succesful, if the server is switched off then the connected node will be unplugged from the network.&lt;/p&gt;&lt;p&gt;My idea is to add a crontab command (executed every day or on a periodical basis) as the following:&lt;br&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;multichain-cli &amp;lt;chain_name&amp;gt; addnode $(dig +short miner_1_hostname):&amp;lt;port&amp;gt; add&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;multichain-cli &amp;lt;chain_name&amp;gt; addnode $(dig +short miner_2_hostname):&amp;lt;port&amp;gt; add&lt;/span&gt;&lt;br&gt;... and so on&lt;/p&gt;&lt;p&gt;I used '&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;dig +short hostname&lt;/span&gt;' because in MC 2.0.1 using &lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;addnode hostname&lt;/span&gt; instead of ip address seems to cause a crash.&lt;/p&gt;&lt;p&gt;Could you please comment my solution?&lt;br&gt;Thanks&lt;br&gt;&amp;nbsp; Fabio&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/24887/addnode-strategy</guid>
<pubDate>Wed, 25 Nov 2020 21:44:16 +0000</pubDate>
</item>
<item>
<title>Node Discovery</title>
<link>https://www.multichain.com/qa/10031/node-discovery</link>
<description>Guys&lt;br /&gt;
&lt;br /&gt;
Do you have any more information on how nodes discover peers either via other connected peers or using addnode?&lt;br /&gt;
&lt;br /&gt;
For context we are running multiChain nodes within Kubernetes and we need to ensure nodes don't get orphaned from each other on a restart which can cause the nodes to be assigned new IP addresses. &amp;nbsp;Because of the way Kubernetes works, we can fix the DNS names of the nodes and we experimented with added these across each node using the addnode api call, but these don't seem to persist across restarts.&lt;br /&gt;
&lt;br /&gt;
At the minute we might need to execute addnode at startup of each node, but wanted to check if this was expected behaviour of addnode and any more information on how peer discovery works and any guidelines you might have to ensure the network remains connected across node restarts and changes of node IP addresses?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Cheers&lt;br /&gt;
&lt;br /&gt;
Marty</description>
<guid isPermaLink="true">https://www.multichain.com/qa/10031/node-discovery</guid>
<pubDate>Thu, 21 Jun 2018 21:34:53 +0000</pubDate>
</item>
</channel>
</rss>