ItsMurf
Posts: 18
Joined: Tue Feb 23, 2016 8:57 pm
Location: Utah
Contact: Website

Cluster Question

Tue Feb 23, 2016 9:05 pm

I have a Pi2 and a PiB and I was wondering if there was any way to cluster them together?


Would it be worth it?


Or is it not possible due to OS's?
Much Pi Very Program.
-Murf

fsr
Posts: 88
Joined: Wed Jan 13, 2016 2:29 am

Re: Cluster Question

Wed Feb 24, 2016 6:09 am

define what you mean by 'cluster'.

fsr
Posts: 88
Joined: Wed Jan 13, 2016 2:29 am

Re: Cluster Question

Wed Feb 24, 2016 6:21 am

or to elaborate, it is something in an application stack that clusters (databases, web server etc).
The hardware remains discrete (it has its own identity, own name, own mac address, own ip and so on).

So the question should be how do you cluster tomcat? for example.

and yes linux is capable of it

User avatar
rpdom
Posts: 17170
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Cluster Question

Wed Feb 24, 2016 6:27 am

Generally a Pi cluster is only useful as an experiment. The processing power vs. cost of coupling them together is poor compared to a cheap PC. One of the main problem is the speed of inter-unit communication is limited by the network/USB bandwidth.

Having said that, some things are suited to running on multiple Raspis. There is a "make" command that will compile various parts of a program on individual systems (as long as all have access to a share file system location), which can speed up kernel compilation, but the quad-core Pi2 will be better at that on its own.

ItsMurf
Posts: 18
Joined: Tue Feb 23, 2016 8:57 pm
Location: Utah
Contact: Website

Re: Cluster Question

Wed Feb 24, 2016 6:03 pm

fsr wrote:define what you mean by 'cluster'.
Cluster meaning multiple Pi's (B and 2) connected together to get higher or better power.
Much Pi Very Program.
-Murf

ItsMurf
Posts: 18
Joined: Tue Feb 23, 2016 8:57 pm
Location: Utah
Contact: Website

Re: Cluster Question

Wed Feb 24, 2016 6:04 pm

rpdom wrote:Generally a Pi cluster is only useful as an experiment. The processing power vs. cost of coupling them together is poor compared to a cheap PC. One of the main problem is the speed of inter-unit communication is limited by the network/USB bandwidth.

Having said that, some things are suited to running on multiple Raspis. There is a "make" command that will compile various parts of a program on individual systems (as long as all have access to a share file system location), which can speed up kernel compilation, but the quad-core Pi2 will be better at that on its own.
Thank You Kind Sir!
Much Pi Very Program.
-Murf

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: Cluster Question

Wed Feb 24, 2016 6:08 pm

Your Pi2B has roughly 6x the processing power of your PiB, so there's virtually nothing to be gained by 'clustering' the two anyway.
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.

ItsMurf
Posts: 18
Joined: Tue Feb 23, 2016 8:57 pm
Location: Utah
Contact: Website

Re: Cluster Question

Fri Feb 26, 2016 1:20 am

GTR2Fan wrote:Your Pi2B has roughly 6x the processing power of your PiB, so there's virtually nothing to be gained by 'clustering' the two anyway.
Alright, sounds good.

Thank You!
Much Pi Very Program.
-Murf

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: Cluster Question

Fri Feb 26, 2016 4:21 am

ItsMurf wrote:
fsr wrote:define what you mean by 'cluster'.
Cluster meaning multiple Pi's (B and 2) connected together to get higher or better power.
You may find yourself needing to run more than one browser, an editor, compiler, server, etc. and running them all on the same board slows things down. In that case, you can divide them up between various systems and view them all on your main system.

If you had four pi2 boards, you'd have 16 cores and 4gig of RAM to spread out between all those requirements. This will work and people really should be doing it more than most do, which is to say that most don't do this at all.

When people ask about clusters, I think they mean can they just add the processors up and get one big really fast processor. Of course they can't do that. But they shouldn't be utterly dismayed because that might even be what they really need.

ItsMurf
Posts: 18
Joined: Tue Feb 23, 2016 8:57 pm
Location: Utah
Contact: Website

Re: Cluster Question

Mon Feb 29, 2016 2:18 am

stderr wrote:
ItsMurf wrote:
fsr wrote:define what you mean by 'cluster'.
Cluster meaning multiple Pi's (B and 2) connected together to get higher or better power.
You may find yourself needing to run more than one browser, an editor, compiler, server, etc. and running them all on the same board slows things down. In that case, you can divide them up between various systems and view them all on your main system.

If you had four pi2 boards, you'd have 16 cores and 4gig of RAM to spread out between all those requirements. This will work and people really should be doing it more than most do, which is to say that most don't do this at all.

When people ask about clusters, I think they mean can they just add the processors up and get one big really fast processor. Of course they can't do that. But they shouldn't be utterly dismayed because that might even be what they really need.

Thank you sir.

This clears lots of things up.

:) :D
Much Pi Very Program.
-Murf

Return to “Other projects”