Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: [GUIDE] Mining on Amazon EC2 using Spot instances  (Read 9817 times)

0 Members and 1 Guest are viewing this topic.

Offline xhor

  • Jr. Member
  • **
  • Posts: 27
    • View Profile
[GUIDE] Mining on Amazon EC2 using Spot instances
« on: November 12, 2013, 11:06:14 PM »

Here is a small guide to exploit the Spot instances @ Amazon and make a quick several hundreds i7 farm ;)

What is a Spot instance?

Some AWS instances are powerful, but they are quite expensive, hundreds of dollars per month.
What is not well known is that Amazon will auction their extra unused capacity for much cheaper! Those are the Spot instances (see http://aws.amazon.com/ec2/spot-instances/ )
The thing is, whenever people ask those instances through the normal, expensive channel, the spot price will fluctuate, and if it goes above your offer, you'll get kicked out of your instances (they'll shut them down).

How to use spot instances?

1. Register at Amazon Web services
2. Go to the EC2 service
3. Select the "Spot Requests" tab
4. Check the current spot prices by looking at the spot prices history.
5. Click "Request spot instance"
6. Choose "Ubuntu 13.10" image, then the instance type you choosed, then:
Number of instances: Max this out ;)
Maximum price: As high as you allow them to run.
Persistent request: If you check this, and if you get kicked due to spot fluctuation, your instance will get recreated as soon as the price gets back lower.

Now you can login and execute the following:
Code: [Select]
sudo apt-get -y install git build-essential htop libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libminiupnpc-dev git
git clone https://github.com/donSchoe/ptsminer.git
cd ptsminer
git reset --hard 03e2d73566fb5b380fd3584e220894464a9a0510
cd src/
make -f makefile.unix -j8
echo '#! /bin/bash' > run.sh
echo 'while true; do ./ptsminer -poolip=ptsmine.beeeeer.org -poolport=1337 -poolpassword=xx -pooluser=XXXXXXXXXXXXXXXXXXXX -genproclimit=8; sleep 1; done' >> run.sh
chmod +x run.sh
nohup ./run.sh &
Of course change the pooluser to your own, and change the git commit if you want to use another version of the miner... I had to use the 03e2d73566fb5b380fd3584e220894464a9a0510 commit because newer commit were failing...

Now, click "Review and launch", and then you'll see your spot requests turn green and the instances will appear in the "Instances" tab.
You can then review the script getting executed by ssh'ing into the instance...

Once you tested it for 1 instances, gogo hundreds of them ;)

Enjoy! And if you appreciated the guide, you can tip me at PgnxU3ttMAYh15hgoaVPXDaUdsFcnu2kVA ;)
« Last Edit: December 14, 2013, 06:14:58 PM by xhor »

Offline joesmoe

  • Jr. Member
  • **
  • Posts: 40
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #1 on: November 13, 2013, 04:00:40 AM »
If this was cost effective, why would you share it?

Offline Mrrr

  • Full Member
  • ***
  • Posts: 94
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #2 on: November 13, 2013, 04:52:49 AM »
He's Chinese.

Offline xhor

  • Jr. Member
  • **
  • Posts: 27
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #3 on: November 13, 2013, 06:21:13 AM »
If this was cost effective, why would you share it?

Eheh yes it was very cost effective a few days ago; and I used it.
Now it is still cost effective, but less than before, and I'm switching to other coins.

Why do I look chinese?  ;)

Offline xhor

  • Jr. Member
  • **
  • Posts: 27
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #4 on: November 13, 2013, 07:14:28 AM »
Also, thanks to whoever sent me a 5 PTS tip, I wasn't actually expecting something!  :D

Offline sang

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #5 on: November 13, 2013, 07:21:55 AM »
Also, thanks to whoever sent me a 5 PTS tip, I wasn't actually expecting something!  :D

That was me xhor. I am making an unbelievable amount of money doing this. With my own secrets of course ;-)

Offline xhor

  • Jr. Member
  • **
  • Posts: 27
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #6 on: November 13, 2013, 08:26:44 AM »
Also, thanks to whoever sent me a 5 PTS tip, I wasn't actually expecting something!  :D

That was me xhor. I am making an unbelievable amount of money doing this. With my own secrets of course ;-)

Good to hear it's useful!
And if you wish to share a little part of your secrets via pm... ;-)
Anyhow thanks for the tip! I'll be adding more explanations/pictures as I get more tips!

Offline Sy

  • Full Member
  • ***
  • Posts: 91
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #7 on: November 13, 2013, 10:06:00 AM »
Just testing this with jhProtominer on a t1micro instance (remember, testing) but after launch it says:
Code: [Select]
xpt: Logged in with Sykh.t1micro
Illegal instruction (core dumped)

Does it work on the bigger ones?
ptsweb.beeeeer.org Stats

Offline xhor

  • Jr. Member
  • **
  • Posts: 27
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #8 on: November 13, 2013, 10:22:23 AM »
Just testing this with jhProtominer on a t1micro instance (remember, testing) but after launch it says:
Code: [Select]
xpt: Logged in with Sykh.t1micro
Illegal instruction (core dumped)

Does it work on the bigger ones?

Haven't tried with this miner software; but t1.micro are special in some ways; use at least a m1.small to test. Also be sure to use a 64bits OS.
I'll try this miner this evening.

Offline JohnD

  • Full Member
  • ***
  • Posts: 76
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #9 on: November 13, 2013, 11:01:48 AM »
Just testing this with jhProtominer on a t1micro instance (remember, testing) but after launch it says:
Code: [Select]
xpt: Logged in with Sykh.t1micro
Illegal instruction (core dumped)

Does it work on the bigger ones?

Haven't tried with this miner software; but t1.micro are special in some ways; use at least a m1.small to test. Also be sure to use a 64bits OS.
I'll try this miner this evening.

jhprotominer works great on c1.xlarge -
Donate if you like it:
PTS: Pi236u2LoqHjt8xs75YdQ7ZEFGuMqVd9sJ
BTC: 1AngSrJcBxG3zBks8DnPzvTU3Q2d678XaF

Offline 5chdn

  • Sr. Member
  • ****
  • Posts: 487
  • i wonder how many chars i can put in this field 50
    • View Profile
    • Votesapp
  • GitHub: 5chdn
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #10 on: November 13, 2013, 12:14:13 PM »
I only get 80-90 hpm with coyote miner on an 32 core instance cc2.8xlarge...

Offline svd

  • Jr. Member
  • **
  • Posts: 46
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #11 on: November 13, 2013, 12:20:05 PM »
Just testing this with jhProtominer on a t1micro instance (remember, testing) but after launch it says:
Code: [Select]
xpt: Logged in with Sykh.t1micro
Illegal instruction (core dumped)

Does it work on the bigger ones?

Haven't tried with this miner software; but t1.micro are special in some ways; use at least a m1.small to test. Also be sure to use a 64bits OS.
I'll try this miner this evening.

jhprotominer works great on c1.xlarge -

I get 160c/s on 6core i7

Offline evisu1

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #12 on: November 13, 2013, 12:24:31 PM »

Code: [Select]
#! /bin/bash
sudo apt-get -y install git build-essential htop libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libminiupnpc-dev git
git clone https://github.com/donSchoe/ptsminer.git
cd ptsminer
git reset --hard 03e2d73566fb5b380fd3584e220894464a9a0510
cd src/
make -f makefile.unix -j8
echo '#! /bin/bash' > run.sh
echo 'while true; do ./ptsminer -poolip=ptsmine.beeeeer.org -poolport=1337 -poolpassword=xx -pooluser=XXXXXXXXXXXXXXXXXXXX -genproclimit=8; sleep 1; done' >> run.sh
chmod +x run.sh
nohup ./run.sh &

i had to sudo all this to get it to work, if that helps anyone.

Offline Sy

  • Full Member
  • ***
  • Posts: 91
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #13 on: November 13, 2013, 01:23:53 PM »
Just testing this with jhProtominer on a t1micro instance (remember, testing) but after launch it says:
Code: [Select]
xpt: Logged in with Sykh.t1micro
Illegal instruction (core dumped)

Does it work on the bigger ones?

Haven't tried with this miner software; but t1.micro are special in some ways; use at least a m1.small to test. Also be sure to use a 64bits OS.
I'll try this miner this evening.

Semms to be true, running fine on my m3.xlarge test.
ptsweb.beeeeer.org Stats

Offline hiddenvalleyranch

  • Full Member
  • ***
  • Posts: 67
    • View Profile
Re: [GUIDE] Mining on Amazon EC2 using Spot instances
« Reply #14 on: November 13, 2013, 04:18:31 PM »
"Your spot request price is lower than the minimum spot request fulfillment price". Current price says it's .096 though.

 

Google+