Multi-VNode script

Thank you

Thank you, @mesquka - this is a great script. I used it for the first time today, and it works like a charm!

For my case - I was looking to spin off two nodes on the same VPS (4 CPUs, 8GB RAM, 240GB SSD). I ran the script after adding my validator keys. It did everything as expected, but it didn’t start docker automatically. I had to manually start docker and rerun the script before it kicked off both nodes.

Indeed a big time saver when you compare it to creating a copy of the run.sh script and customizing it for your 2nd node. Great work!

2 Likes

Can u have multiple vnodes on one computer or?

Yes, that is what this script does.

More then one server needed or how does it work

You need 1750 PRV for each vnode you want to run, and your server needs to have enough CPU power and storage to run multiple vnodes.

I’ve got an i7-8650u with 16GB RAM running 5 servers. Each vnode takes about 20GB storage space with one outlier taking 27GB of storage space. You’ll want to have about 50GB of space for each vnode you want to run as the blockchain grows in size.

Once you have the PRV and your accounts setup in the wallet, download the script onto an Ubuntu machine, replace the validator keys list at the top with the validator keys for your accounts, and then run it. Open the incognito wallet and add the nodes under the ‘power’ tab. The ports for the nodes start at 9334 and increase one by one (first node is IP:9334, second is IP:9335 etc.). You can now stake your coins.

5 Likes

Lovely work my friend! Will surely try this to setup next node, when rewards are collected! :wink:

have theses specs been working well for you @sid? I have 2 servers that are pretty close to those specs, currently have 1 vNode per machine… but was thinking of doubling them up…

1 Like

Did you add eth_mainnet start up to the script… I was looking through but didnt see it, but I could have missed it.

Putting 2 vNodes on one VPS server will work fine.

And yes this script runs eth_mainnet. It does everything just like the original script but creates multiple nodes based on how many validator keys you provide and assigns each new instance with a new port number.

2 Likes

@doc - I think adding an extra vnode on your server (with similar specs) should work perfectly okay. I haven’t seen any problems running 2 vnodes on a VPS with 4 CPUs, 8GB RAM and 240 GB SSD. Its been up for a couple of months now and so far, so good!

3 Likes

@Jared when I ran the script and then checked with

sudo docker ps 

CONTAINER ID        IMAGE                                         COMMAND                  CREATED             STATUS              PORTS                                            NAMES                                                      
bb8d66cfbc3f        incognitochain/incognito-mainnet:20200910_1   "/bin/bash run_incog…"   10 minutes ago      Up 10 minutes       0.0.0.0:9335->9335/tcp, 0.0.0.0:9434->9434/tcp   inc_mainnet_1                                              
4750a3cfcca1        incognitochain/incognito-mainnet:20200910_1   "/bin/bash run_incog…"   10 minutes ago      Up 10 minutes       0.0.0.0:9334->9334/tcp, 0.0.0.0:9433->9433/tcp   inc_mainnet_0    

I only see the incognito mainnet running… not eth_mainnet. Any idea what could possibly be causing this?

I went ahead and modified the script to call the docker start on eth_mainnet that I saw in the original incognito/run.sh file… I think this should work, I did have to delete the previous images on my server to get it to work though.

Now I will just wait for 4-6 weeks to see if my vNodes get selected to tell if I have them setup correctly :wink:

1 Like

Hmm I’m not sure why. If I recall that script started up eth_mainnet for me.

Check your vNodes on watch.incognito.market

Also check sudo dock ps and sudo docker stats to check your vNodes are running correctly.

1 Like

This script doesn’t start eth_mainnet, it did at some points in the past however. If you want to re-enable it you’ll need to add in the docker vnet creation and have the containers setup to use them. As far as I can tell though the incognito nodes aren’t using the ethereum node.

1 Like

@Jamie Can we get some input if we need to be running eth_mainnet?

1 Like

We don’t use it anymore.

3 Likes

@mesquka @Jared @Jamie

Got this reply and just wanted to provide an FYI about having eth client for validators:

Also worth noting he updated a multinode script with eth-client as well:

I’ve updated the link, there are now 2 scripts. One with the eth container and one without so people can choose what they want to run.

5 Likes

@Jamie, can I kill eth_mainnet container on my server?