Bitcoin Forum
October 23, 2017, 04:03:33 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Host a node on Microsoft Azure  (Read 1395 times)
doof
Hero Member
*****
Offline Offline

Activity: 765


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.
1508731413
Hero Member
*
Offline Offline

Posts: 1508731413

View Profile Personal Message (Offline)

Ignore
1508731413
Reply with quote  #2

1508731413
Report to moderator
1508731413
Hero Member
*
Offline Offline

Posts: 1508731413

View Profile Personal Message (Offline)

Ignore
1508731413
Reply with quote  #2

1508731413
Report to moderator
1508731413
Hero Member
*
Offline Offline

Posts: 1508731413

View Profile Personal Message (Offline)

Ignore
1508731413
Reply with quote  #2

1508731413
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508731413
Hero Member
*
Offline Offline

Posts: 1508731413

View Profile Personal Message (Offline)

Ignore
1508731413
Reply with quote  #2

1508731413
Report to moderator
mishax1
Legendary
*
Offline Offline

Activity: 1526

keybase.io/mishax1


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
Global Moderator
Legendary
*
Offline Offline

Activity: 2016



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.

Tired of annoying signature ads? Ad block for signatures
Heads-Tails
Newbie
*
Offline Offline

Activity: 19


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


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: 1526

keybase.io/mishax1


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

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

Activity: 2016



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.

Tired of annoying signature ads? Ad block for signatures
notlist3d
Legendary
*
Offline Offline

Activity: 1386



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: 1232

In the midst of an exam, will be very inactive.


View Profile WWW
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.














 

 

█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
BitBlender 

 













 















 












 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!