Installing boinc client on Amazon Linux2 (EC2 spot instance)

Message boards : Documentation : Installing boinc client on Amazon Linux2 (EC2 spot instance)
Message board moderation

To post messages, you must log in.

AuthorMessage
rene.duettra

Send message
Joined: 13 Apr 20
Posts: 1
Message 97557 - Posted: 13 Apr 2020, 16:56:40 UTC

Hi,

This thread is about this wiki page.

Following steps taken to fire up a boinc-client on Amazon EC2 spot instance, with boinc data deployed on EFS so it survives instance termination.

Hope it helps others when deploying boinc client on AWS cloud.

1. Login to AWS console, EC2 page
2. Launch instance e.g. c5.xxx (CPU optimized) one
3. Login to EC2 instance by SSH
4. Install boinc-client on AWS EC2 Amazon Linux2
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum localinstall http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install boinc-client

5. Rename /var/lib/boinc to /var/lib/boinc.tmp (we will move content to EFS later)
6. Login to AWS console, EFS page. Create EFS share. Optional: access point with boinc user/group ID
7. Install EFS tools and mount EFS share
sudo yum install -y amazon-efs-utils
sudo mount -t efs -o tls,accesspoint=access-point-id file-system-id efs-mount-point
/etc/fstab (to survive system restart): file-system-id efs-mount-point efs _netdev,tls,accesspoint=access-point-id 0 0

8. move content of /var/lib/boinc.tmp to EFS based /var/lib/boinc
9. Start boinc-client, add service
sudo systemctl enable boinc-client
sudo service boinc-client start

10. Add your project (lookup account key & attach project) e.g.
sudo boinccmd --lookup_account project-url email password
sudo boinccmd --project_attach project-url account-key


Happy data crunching!
ID: 97557 · Report as offensive
ProDigit

Send message
Joined: 8 Nov 19
Posts: 642
United States
Message 97625 - Posted: 14 Apr 2020, 18:36:46 UTC - in response to Message 97557.  

Are we talking about Amazon Fire tablets, Amazon Echo, or amazon cloud services?
ID: 97625 · Report as offensive
Dr Who Fan
Avatar

Send message
Joined: 10 May 07
Posts: 715
United States
Message 97631 - Posted: 14 Apr 2020, 19:17:31 UTC - in response to Message 97625.  

ProDigit, Maybe you need to learn how to use your favorite search engine before posting a dumb question.
Amazon EC2 spot instance is a "cloud" aka internet virtual computer.
ID: 97631 · Report as offensive
ProDigit

Send message
Joined: 8 Nov 19
Posts: 642
United States
Message 97637 - Posted: 14 Apr 2020, 20:23:01 UTC - in response to Message 97631.  
Last modified: 14 Apr 2020, 20:34:04 UTC

ProDigit, Maybe you need to learn how to use your favorite search engine before posting a dumb question.
Amazon EC2 spot instance is a "cloud" aka internet virtual computer.

Not a single question is 'dumb'. Though comments like these are arrogant, and unnecessary.
In the past I've tried finding solutions for Google Cloud services, but I did not imagine boinc could be ran from any cloud services; hence the question. Not many (if any) search results in this forum's search bar are a hit, when using 'spot' as search parameter.

It's the first I hear about Amazon renting their CPUs to do this kind of work.
Apparently there's a free trial offer to make use of it.
How viable is it? I mean what do you get for the price in terms of Boinc PPD processing power? And what would be the sweet spot to run? a1.medium has enough ram for most projects, but has only 1 CPU disposable; while the higher tiers charge a lot more, and have more RAM at disposal than WUs use.
ID: 97637 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 4536
United Kingdom
Message 97638 - Posted: 14 Apr 2020, 20:27:35 UTC - in response to Message 97637.  

I did not imagine boinc could be ran from any cloud services; hence the question.
Then you're lacking in imagination. It's even documented: https://boinc.berkeley.edu/trac/wiki/CloudServer
ID: 97638 · Report as offensive
ProDigit

Send message
Joined: 8 Nov 19
Posts: 642
United States
Message 97641 - Posted: 14 Apr 2020, 20:44:56 UTC

Looking into it now...
Seems interesting, especially if one gets a trial at no cost.
Still need a lot more info to get one set up.
ID: 97641 · Report as offensive
BOINC Moderator
Volunteer moderator
Project administrator
Avatar

Send message
Joined: 10 Mar 20
Posts: 43
Message 97674 - Posted: 15 Apr 2020, 11:56:40 UTC

Keep it civil, everyone.
ID: 97674 · Report as offensive

Message boards : Documentation : Installing boinc client on Amazon Linux2 (EC2 spot instance)

Copyright © 2021 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.