Bitcoin Forum
June 15, 2024, 06:04:06 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Running both mainnet and testnet from a RPi?  (Read 174 times)
BlackHatCoiner (OP)
Legendary
*
Offline Offline

Activity: 1554
Merit: 7546


Protocols over bureaucrats


View Profile
September 09, 2021, 07:04:48 AM
 #1

I was wondering if it's possible to run both mainnet & testnet from a RPi 4, including their Electrs indexes. I'm right now running both of them and it goes relatively fast. How much space would these four directories require? I've built everything upon a 1TB SSD external disk and I'm afraid it'll need more.

I haven't synced with the whole mainnet yet, though.

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

Activity: 882
Merit: 5829


not your keys, not your coins!


View Profile WWW
September 09, 2021, 10:55:45 AM
Last edit: September 09, 2021, 11:23:12 AM by n0nce
 #2

I was wondering if it's possible to run both mainnet & testnet from a RPi 4, including their Electrs indexes. I'm right now running both of them and it goes relatively fast. How much space would these four directories require? I've built everything upon a 1TB SSD external disk and I'm afraid it'll need more.

I haven't synced with the whole mainnet yet, though.
Hey BlackHatCoiner, so in my experience Bitcoin testnet is quite easy to run. Bitcoin Core in general isn't pulling a lot of resources. Didn't run them both simultaneously on a Pi yet, but do so on a very old laptop. I also had Bitcoin testnet on a very low resource VPS (I think 2 cores, 2GB RAM, 50GB disk or so) and it ran very well.
1TB SSD should be easily enough. Not sure what you mean with electrs index though. Edit: found it (https://github.com/romanz/electrs).

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DaveF
Legendary
*
Offline Offline

Activity: 3514
Merit: 6347


Crypto Swap Exchange


View Profile WWW
September 09, 2021, 11:16:46 AM
 #3

You should be fine (for now). I don't think Electrs goes over 200GB at max on mainnet.
So, even with everything on there I don't see an issue.

If you start adding on other stuff, that answer will change, but for now it's fine.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BlackHatCoiner (OP)
Legendary
*
Offline Offline

Activity: 1554
Merit: 7546


Protocols over bureaucrats


View Profile
September 09, 2021, 11:36:16 AM
 #4

I also had Bitcoin testnet on a very low resource VPS
Having just the testnet doesn't need too many resources, but I have my doubts for both mainnet & testnet & electrum server running for both of them. Maybe this isn't a task that can be managed by a RPi 4.

Not sure what you mean with electrs index though. Edit: found it (https://github.com/romanz/electrs).
Yeah, I mean the directory of my Electrum server.

You should be fine (for now). I don't think Electrs goes over 200GB at max on mainnet.
Yes, but how many gigabytes are the rest of them? The mainnet blockchain, the testnet blockchain and the electrum directory for testnet? My disk isn't exactly 1TB, but almost 980GB if I'm not mistaken.

2. Electrs memory usage is higher during indexing process, so you should do it one by one (indexing mainnet, then testnet or vice versa).
I've indexed the testnet and will index mainnet in the future, once I'm fully synced with it, so this part is covered.

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

Activity: 882
Merit: 5829


not your keys, not your coins!


View Profile WWW
September 09, 2021, 11:42:16 AM
 #5

You should be fine (for now). I don't think Electrs goes over 200GB at max on mainnet.
Yes, but how many gigabytes are the rest of them? The mainnet blockchain, the testnet blockchain and the electrum directory for testnet? My disk isn't exactly 1TB, but almost 980GB if I'm not mistaken.
Well, back of envelope calculation:
* Bitcoin mainnet ~380GB
* Bitcoin testnet ~40GB
* Electrum ~200GB
----
Total ~620GB, some extra indices here and there I'd say you'll have 300GB left.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
September 09, 2021, 04:39:56 PM
Merited by DarkStar_ (10), Halab (2), Husna QA (2), ABCbits (1), BlackHatCoiner (1)
 #6

I have it on my PI, both testnet and mainnet with txindex.

Bitcoin:
Code:
$ du -h
348M ./testnet3/blocks/index
29G ./testnet3/blocks
2.9G ./testnet3/indexes/txindex
2.9G ./testnet3/indexes
1.4G ./testnet3/chainstate
33G ./testnet3
104M ./blocks/index
385G ./blocks
33G ./indexes/txindex
33G ./indexes
4.3G ./chainstate
454G .
Electrs:
Code:
$ du -h
6.1G ./db/testnet
75G ./db/mainnet
81G ./db
81G .

In total 535GB, You should have plenty of space on your 1TB drive.
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!