Bitcoin Forum
May 09, 2024, 11:57:14 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Host a node on Microsoft Azure  (Read 1599 times)
doof (OP)
Hero Member
*****
Offline Offline

Activity: 765
Merit: 503


View Profile WWW
March 19, 2015, 12:45:54 AM
 #1

I get a bit of free credit with Microsoft Azure, so I host a few bitcoin nodes.  Digital Ocean have some good documentation, so I thought id document the steps for MS Azure.  The goal is to have very clear steps that anyone can follow, and the smallest possible foot print / dependencies.

If anyone would like to peer review the steps, they can be found at...

https://github.com/evapeak/bitcoind/blob/master/README.md

Note:  Ill be adding a few more screen shots very soon.
1715255834
Hero Member
*
Offline Offline

Posts: 1715255834

View Profile Personal Message (Offline)

Ignore
1715255834
Reply with quote  #2

1715255834
Report to moderator
1715255834
Hero Member
*
Offline Offline

Posts: 1715255834

View Profile Personal Message (Offline)

Ignore
1715255834
Reply with quote  #2

1715255834
Report to moderator
"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.
1715255834
Hero Member
*
Offline Offline

Posts: 1715255834

View Profile Personal Message (Offline)

Ignore
1715255834
Reply with quote  #2

1715255834
Report to moderator
1715255834
Hero Member
*
Offline Offline

Posts: 1715255834

View Profile Personal Message (Offline)

Ignore
1715255834
Reply with quote  #2

1715255834
Report to moderator
mishax1
Legendary
*
Offline Offline

Activity: 2898
Merit: 1017


View Profile
March 19, 2015, 12:19:48 PM
 #2

That looks pretty nice and not too complex..

Do you need to have the Ubuntu server image or is it already located on the Azure ?
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
March 19, 2015, 09:36:13 PM
 #3

I also run a node on azure, but I have a few suggestions:
  • you should be running bitcoin as a separate user so in the event of a exploit in bitcoind, you server doesn't get pwned.
  • you should be using a upstart/init.d script otherwise bitcoind will not restart if the server reboots (rare, but still happens on azure).
  • you can avoid making a symlink for bitcoind's data directory by directly mounting the datadrive on ~/.bitcoin
  • bitcoin uses TCP 8333, not udp
  • you should use basic_a1 or basic_a0 to save a bit of money
  • if you don't want sync to take forever, get a D3 or D4 vm, symlink ~/.bitcoin to /mnt/bitcoin (so bitcoin can sync on ssd). once it's synced, move the the data over to the data disk

here's my upstart script for bitcoind (put in /etc/init/bitcoind.conf)
Code:
description "bitcoind"

start on filesystem
stop on runlevel [!2345]
oom score -500

respawn
respawn limit 10 60 # 10 times in 60 seconds

script
        user=bitcoin
        home=/home/$user
        cmd=/usr/bin/bitcoind
        pidfile=$home/bitcoind.pid
        # Don't change anything below here unless you know what you're doing
        [[ -e $pidfile && ! -d "/proc/$(cat $pidfile)" ]] && rm $pidfile
        [[ -e $pidfile && "$(cat /proc/$(cat $pidfile)/cmdline)" != $cmd* ]] && rm $pidfile
        exec start-stop-daemon --start -c $user --chdir $home --pidfile $pidfile --nicelevel 10 -m --startas $cmd
end script

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
Heads-Tails
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
March 19, 2015, 09:43:09 PM
 #4

What is the $USD cost to operate a MS Azure bitcoin node for a month?

emrebey
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
March 19, 2015, 09:53:55 PM
 #5


here's my upstart script for bitcoind (put in /etc/init/bitcoind.conf)
Code:
description "bitcoind"

start on filesystem
stop on runlevel [!2345]
oom score -500

respawn
respawn limit 10 60 # 10 times in 60 seconds

script
        user=bitcoin
        home=/home/$user
        cmd=/usr/bin/bitcoind
        pidfile=$home/bitcoind.pid
        # Don't change anything below here unless you know what you're doing
        [[ -e $pidfile && ! -d "/proc/$(cat $pidfile)" ]] && rm $pidfile
        [[ -e $pidfile && "$(cat /proc/$(cat $pidfile)/cmdline)" != $cmd* ]] && rm $pidfile
        exec start-stop-daemon --start -c $user --chdir $home --pidfile $pidfile --nicelevel 10 -m --startas $cmd
end script

there is a upstart configuration lives in the official codebase: https://github.com/bitcoin/bitcoin/blob/master/contrib/init/bitcoind.conf

What is the $USD cost to operate a MS Azure bitcoin node for a month?

depends of the machine you will use but it cost much. use digitalocean if you look for a cheap and fast solution.
mishax1
Legendary
*
Offline Offline

Activity: 2898
Merit: 1017


View Profile
March 20, 2015, 10:17:07 AM
 #6

Just found an even cheaper solution - http://fullnode.info/howto.html
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
March 21, 2015, 12:30:15 AM
 #7

Just found an even cheaper solution - http://fullnode.info/howto.html
if you click the link, you'll see that the $19/year offer is no longer available.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
notlist3d
Legendary
*
Offline Offline

Activity: 1456
Merit: 1000



View Profile
March 21, 2015, 04:14:51 AM
 #8

I get a bit of free credit with Microsoft Azure, so I host a few bitcoin nodes.  Digital Ocean have some good documentation, so I thought id document the steps for MS Azure.  The goal is to have very clear steps that anyone can follow, and the smallest possible foot print / dependencies.

If anyone would like to peer review the steps, they can be found at...

https://github.com/evapeak/bitcoind/blob/master/README.md

Note:  Ill be adding a few more screen shots very soon.

Azure was giving a little bit of a credit a while back when you start. 

Digital Ocean if you use high CPU usage be prepared to submit documentation proving your identity if they are like they were.  I know I had just one account and they wanted me to jump through hoops.  But this was in days of cpu mining.
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4177



View Profile
March 21, 2015, 04:23:00 AM
 #9

I get a bit of free credit with Microsoft Azure, so I host a few bitcoin nodes.  Digital Ocean have some good documentation, so I thought id document the steps for MS Azure.  The goal is to have very clear steps that anyone can follow, and the smallest possible foot print / dependencies.

If anyone would like to peer review the steps, they can be found at...

https://github.com/evapeak/bitcoind/blob/master/README.md

Note:  Ill be adding a few more screen shots very soon.

Azure was giving a little bit of a credit a while back when you start. 

Digital Ocean if you use high CPU usage be prepared to submit documentation proving your identity if they are like they were.  I know I had just one account and they wanted me to jump through hoops.  But this was in days of cpu mining.
If you have an MSDN invite or admin, you will automatically get $150 credit per month. However, the price is very expensive for bandwidth and the VM.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
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!