Bitcoin Forum
May 03, 2024, 05:15:54 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: whats the best way to setup two nodes in Load balancing mode  (Read 151 times)
BitcoinChamp (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
December 31, 2018, 09:12:34 PM
 #1

Hello Masters,

I have quick question on how we can use two bitcoin node in load balancing mode. Is there any way, if one node goes down another can take care of all request.

Any inputs are appreciated, we dont want to share dat file to both servers.

thanks,
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714713354
Hero Member
*
Offline Offline

Posts: 1714713354

View Profile Personal Message (Offline)

Ignore
1714713354
Reply with quote  #2

1714713354
Report to moderator
Pmalek
Legendary
*
Offline Offline

Activity: 2758
Merit: 7125



View Profile
January 01, 2019, 12:14:21 PM
 #2

I managed to find this, maybe you can get some ideas from here:

https://www.reddit.com/r/Bitcoin/comments/842ovw/running_bitcoin_nodes_behind_a_load_balancer/
Quote
The most important thing is the node data folder.
I have setup a node that uses the data location a NAS with 4 disks in RAID 5. If one disk fails, I could still access the data normally until the bad disk is replaced. Doesn't affect at all your node.
You could expand that to 2 node machines that uses the NAS as storage so you can have full high availability.
I do not recommend using the same data folder for both nodes, it can be messy. Make a copy on the same NAS. In this way you can have also a backup.
You could have also a fifth disk with regular backup sync of that data folder, in case it gets corrupted or the whole nas is broken, you could just redirect your node to the backup disk and you are still in business. Any decent NAS have the option to sync regularly or periodically when you want a folder or entire LUN.
I still hope there will be some day an app for NAS that integrate a BTC node and/or LN.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
KingZee
Sr. Member
****
Offline Offline

Activity: 910
Merit: 452


Check your coin privilege


View Profile
January 01, 2019, 12:48:55 PM
 #3

I have quick question on how we can use two bitcoin node in load balancing mode. Is there any way, if one node goes down another can take care of all request.

Any inputs are appreciated, we dont want to share dat file to both servers.

I guess you already have a NAS setup? Your servers running the nodes also need to be able to mount a NFS volume. Go to your bitcoin.conf and set the datadir to your newly mounted volume.

https://www.reddit.com/r/btc/comments/4r48oa/running_a_node_with_the_database_on_a/d4yolwm/

This link has a lot of information that's going to be useful to you.

Beep boop beep boop
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!