Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: n3rvi0zz0 on November 14, 2015, 08:17:48 AM



Title: HOW TO RUN A SECOND NODE??
Post by: n3rvi0zz0 on November 14, 2015, 08:17:48 AM
I have a question , may you guys can guide me  ??? ???

I have a node that works with almost no problems , occasionally bitcoin daemon stops working.
 I would like to open a second node, which became operational only when the first process to stop working .

Any ideas? I think the pools use this system .


Anyone have a script to go by checking if the demon of BTC is working? and if not will run the backup

Thanks


Ubuntu 14.04

32bits Vmware Image.

0.11.2 Btc Core



Title: Re: HOW TO RUN A SECOND NODE??
Post by: OmegaStarScream on November 14, 2015, 08:21:40 AM
I don't think this is possible , unless you make a program that watch the process , and once it's closed it open another one . that shouldn't be hard to do if you have some programming knowledge (making your own application) .


Title: Re: HOW TO RUN A SECOND NODE??
Post by: cr1776 on November 14, 2015, 10:33:33 AM
You could try something like monit to monitor it and restart it when needed.

If you mean a completely new server, that would be somewhat more complicated, but probably something like AWS' tools would be helpful, depending on your host.

I have a question , may you guys can guide me  ??? ???

I have a node that works with almost no problems , occasionally bitcoin daemon stops working.
 I would like to open a second node, which became operational only when the first process to stop working .

Any ideas? I think the pools use this system .


Anyone have a script to go by checking if the demon of BTC is working? and if not will run the backup

Thanks


Ubuntu 14.04

32bits Vmware Image.

0.11.2 Btc Core




Title: Re: HOW TO RUN A SECOND NODE??
Post by: bitcoinear on November 14, 2015, 04:06:33 PM
It is not possible. You need to use a second server to run a node. Probaly you could try to change to port for the second node.


Title: Re: HOW TO RUN A SECOND NODE??
Post by: LuckyYOU on November 20, 2015, 09:16:18 PM
You can do this with some programming. Supposing you know some PHP f.e. here's what you do.

Setup both nodes and run a monotoring script on both of them (emails /sms)

Give the config file write rights, so if the main node stops working you can activate the 2nd node in your script.
You will need a os with cronjob support for this.


Title: Re: HOW TO RUN A SECOND NODE??
Post by: elliwilli on November 20, 2015, 09:24:33 PM
cant you just make a script that checks every now and again that the deamon is still running? if it isn't it just re launches it.