Building a 4-node Raspberry Pi Cluster

Поделиться
HTML-код
  • Опубликовано: 6 окт 2024
  • How to build a Raspberry Pi cluster and manage it using Python.
    === Hardware ===
    PiRacks kit: www.amazon.com...
    === Software ===
    Raspbian: www.raspberryp...
    Etcher: etcher.io/
    Angry IP Scanner: angryip.org/dow...
    Fabric: www.fabfile.org/
    Music: www.bensound.com
    Davy Wybiral
    wybiral.github...
    / davywtf

Комментарии • 647

  • @alexfolsom3910
    @alexfolsom3910 3 года назад +132

    "You don't have to use color coated cables like this but be aware that it won't look nearly as cool." classic

    • @marcsmithsonian9773
      @marcsmithsonian9773 3 года назад +4

      Dont be shy let your rainbow run,

    • @WaffleTM420
      @WaffleTM420 2 года назад +1

      @@marcsmithsonian9773 My flow of electrons run

    • @marcsmithsonian9773
      @marcsmithsonian9773 2 года назад

      @@WaffleTM420 and here you are very wrong my dear... Acirding to RUclips since youtubers set the laws of phisics there are no electrons flowing inside the cables but electricity is a magical radio wave.. propagating instantly.

    • @WaffleTM420
      @WaffleTM420 2 года назад

      @@marcsmithsonian9773 Woah, well hey thanks for letting me know, do you have discord by any chance?

    • @marcsmithsonian9773
      @marcsmithsonian9773 2 года назад

      @@WaffleTM420 yes there ate things called electron tubes, and it conducts based on the principle.of electron flow and.not a radio vawe.. and I have a Disco- Ball in my living room. The theories about electricity flow was a coordinated research of umiversities to validate degree of stupidity that can be induce by youtube to general population... results are catastrophic.

  • @vsweetbread
    @vsweetbread 5 лет назад +38

    One Russian schoolboy also made a cluster of only 3 raspberries, and you know what? It was played on TV as the "Supercomputer Inventor." That’s why I haven’t been watching TV for 7 years

    • @raven4k998
      @raven4k998 3 года назад +2

      lol 3 is not that much for a super computer you need like a few thousand for that level and a few thousand would be much harder to pull off then just three in a cluster

  • @fusion9619
    @fusion9619 3 года назад +16

    I'm pausing 9 min in to say, this is a really great video. I just got my first pi, and am a little bit afraid of it, so I really appreciate the time you've put into making this and explaining things clearly.

  • @bobmixon6021
    @bobmixon6021 5 лет назад +12

    Great video, thank you. I see a lot of comments about it not being a cluster, asking what it can be used for, etc. Let me see if I can help. First and foremost, it is a cluster; it is a cluster of Raspberry Pi's. Each will be and act as an independent Pi. What Davy is showing here is how to use fabric is to easily send commands to all at the same time. You don't need the case to do this; its just a nice way to house them.
    Now take one of those Pi's and make it the master and the others slaves. The master receives commands (keyboard, switch, sensor, another computer, whatever) and sends those commands to slave Pi's to do the actual processing. Each Pi can be configured to do specific things. In a robot, you may have one Pi dedicated to differential steering and object avoidance, another for video input processing, etc.

    • @casper8210
      @casper8210 5 лет назад

      Best comment here. It's the bottom bit I came here for, the video doesn't cover it

  • @technichron
    @technichron 5 лет назад +162

    3:25 it sounds like he just ate the micro SD cards.

  • @TheNZJester
    @TheNZJester 6 лет назад +1

    I'm glad I can just log into my current router and check the allocation of IP addresses on its LAN devices list quickly rather than having to scan my network. Most of my most recent routers have had a feature to list their DHCP assigned IP addresses in some form or other. I tend to also add devices like this onto a DHCP reservation list as well to make sure the hardware is bound to that IP address in the future by its MAC address. I have had problems in the past where I have shelved projects for a few weeks only to come back to them later and the IP addresses are different as their lease expired and the old adress has been given away to something else in the weeks they have been offline.

  • @randynyify
    @randynyify 6 лет назад +381

    This is t really a “cluster”. It a collection of 4 individual Pis. A cluster is a system that allows for parallel computing.

    • @esra_erimez
      @esra_erimez 5 лет назад +8

      +1

    • @Thezuule1
      @Thezuule1 5 лет назад +14

      Could have made a legit beowulf cluster with linux easily enough.

    • @Nobbie248
      @Nobbie248 5 лет назад +16

      The word "cluster" is not defined like that, so you just mad that it is not what you wanted it to be

    • @VolgClawtooth
      @VolgClawtooth 5 лет назад +17

      @Samuel Self yes, but he did not do that either.. This is merely a small rack of Pi's. Disappointing....

    • @rikdenbreejen5230
      @rikdenbreejen5230 5 лет назад +10

      but what does it actually do?

  • @nogosnoqt
    @nogosnoqt 5 лет назад +29

    I like how you do videos: it just so much more genuine than what you find in many others.

    • @miguelbravo3050
      @miguelbravo3050 5 лет назад +1

      nogosnoqt i heavily agree; my dude seamlessly described in depth a quite complex rpi project, made it funny and threw in some optional CLI powertools usage like its nada. ill press ‘f’ repeatedly!

  • @matthewstott3493
    @matthewstott3493 5 лет назад +201

    It's a Bushel of RaspberryPi's not a cluster. Well not yet. Not until you set them up to be a cluster. Right now they are just a lonely bushel of RaspberryPi's in a nice stack.

    • @abuenoadiosmaster7212
      @abuenoadiosmaster7212 5 лет назад +1

      "close your eyes" XD

    • @patrik5123
      @patrik5123 5 лет назад +17

      Exactly. This video did not - sadly - explain what I came here for.

    • @drewblay
      @drewblay 4 года назад

      Yeah, cluster was the wrong word to use here.

    • @PaulJohnsonM
      @PaulJohnsonM 4 года назад +1

      @@patrik5123 It still had a couple of cool tricks that would come in handy when it comes time to actually set up a workflow.

    • @patrik5123
      @patrik5123 4 года назад +1

      @@PaulJohnsonM 100% irrelevant. And not even true.

  • @behysun
    @behysun 6 лет назад +10

    You solved something that I was looking how to fix it for many hours, really thank you for giving a rich explanation about it. You are the man.

  • @Techforcurious
    @Techforcurious 5 лет назад +11

    These four PIs still appears to be working independently. It will be useful if they can be combined and used as a single system. Then, we can have multiples cores to do parallel processing. Anyway even in the current state one can assign the job to different pi and share the workload. Thank you for the basic introduction of combining PIs.

    • @je-fq7ve
      @je-fq7ve 2 года назад

      it would require a new kernel extension or something like it. I dont think Pi will do real parallel processing out of the box.

  • @BillBrandon
    @BillBrandon 4 года назад +12

    I need to try this, as soon as I understand what kind of purpose it is for,

    • @wlouisharris
      @wlouisharris 3 года назад +1

      I'm going to use it to setup a training lab for clustering which is where several computers act as a single computer - opensource.com/article/20/6/kubernetes-raspberry-pi. I'm also going to use it to build out Ansible which basically will use one Pi as a master to run and schedule automations on the other 2 or 3 Pi's.

  • @alexzalesny2414
    @alexzalesny2414 4 года назад +48

    It is 8:17 in the morning and I haven’t slept yet and I’m watching this only because RUclips recommended it to me my life is meaningless
    Also this video is pretty cool you got a new sub

    • @sadf1416
      @sadf1416 3 года назад

      Hey, I feel you man. Sometimes I dont get a wink of sleep, just watching youtube videos-we're all just specks of dust floating in an infinite void. If you wanna talk just leave a comment.

  • @d.barnette2687
    @d.barnette2687 5 лет назад +2

    No, it isn't a cluster. But it is a good description of how to control multiple RPi computers. Turning his stack of Pi's into a parallel computer using OpenMPI or MPICH or MPI4PY is definitely a topic for another video, but this video gives a good description of how to control a stack of Pi's once you do have a genuine cluster. Give credit where credit is due!

  • @christopherrichards1763
    @christopherrichards1763 5 лет назад +1

    It could be used as web servers, pen testing lab, install ubuntu and different OS meant for it together and try individually the OS, by either considering individual processing with different OS or parallel processing, try out Docker, Kubernetes, Ubuntu Server, Fedora server it's Security. Try to view it as different servers with different methodology, DHCP server on on, Web page on another, Security Server, etc and mimic a complete operational infrastructure that's seen in big huge companies. We could mimic all those properties within a cluster or individually, just install its dependencies. It's like a total Lab we have in front of us with which we could study, play, organize and learn different programming languages and such. Just consider it either as a stack/cluster which we use to learn or individual pi's in such a cradle.

  • @Wildersport
    @Wildersport 5 месяцев назад

    Something like that little stacker sized up to fit Pi 8s with NVME bases / NVME drives would be pretty awesome...

  • @VexMage
    @VexMage 5 лет назад +12

    Your title seems misleading. All you're showing is how to use a tool to configure 4 Pis at one time. It would have been cooler if you were configuring them to operate in some sort of actual cluster.

  • @therealjackfisher
    @therealjackfisher 2 года назад +1

    Nice. Great idea on using color coded cables. I have also seen people use usb cables with LED light, that is also looking very impressive.

  • @wlouisharris
    @wlouisharris 3 года назад +1

    Very cool. It's very cool that we have the technology now to build a small Linux cluster at a low cost. I really need to advance my skills for work in a pure lab environment and this will give me some tools to learn Kubernetes and docker.

  • @ThexXTURBOXx
    @ThexXTURBOXx 5 лет назад +15

    I exptected him to say "Hey Vsauce, Davy here" in the beginning

  • @user-hv5jv9gb6c
    @user-hv5jv9gb6c 11 месяцев назад

    What a fantastically well done video. Looking to build a video editing cluster from workstations I've got sitting around and know nothing about it. first video out of about 15 I could follow.

  • @williamjones7288
    @williamjones7288 6 лет назад +2

    Fantastic video. The attention to detail is appreciated for a Raspberry Pi novice such as myself. Keep up the great work!

  • @stephenjones8928
    @stephenjones8928 6 лет назад +107

    @8:39 "You don't have to use colour-coded cables like this, but, be aware that it won't look nearly as cool". :D LMAO. That was funny man. Thanks for posting.

  • @spooky5297
    @spooky5297 4 года назад

    Great video. Exactly what I have been looking for. Wish you record the screen so I can understand you commands. Thank you so much!

  • @drjmansplace5174
    @drjmansplace5174 6 лет назад +1

    That Wack-A-Mole entrance was funny. Loved it.

  • @Demkeys
    @Demkeys 6 лет назад +19

    Great video man! Very informative! And I like how you've given attention to certain small details, like the thing about using a USB hub with an external power source. Lol and the small bits of comedy are definitely a plus point!
    Keep it up!

  • @victorshane4134
    @victorshane4134 4 года назад +5

    Can I ask a simple question?
    - what cluster did you built here?
    Ok got my point. So misleading title, please correct it. You just showed us how to update our systems but not done any clustering at all.

  • @digichef918
    @digichef918 6 лет назад

    Making this today!! I'm only using 3 Rpi3 Model B's, but I'm super excited. Thanks for posting this video!!

    • @digichef918
      @digichef918 6 лет назад

      Sooo to any future watchers of this video, the Fabric code referenced is now deprecated. It's honestly much easier to use Ansible to accomplish the same concept, but amazing video nonetheless! Definitely inspired me to tackle this

  • @michaelurig3887
    @michaelurig3887 3 года назад

    Nice video, you should have posted where you bought the cables, switch and usb power hub. And it would be nice for us newbies if you posted the fabric file but I'll keep pausing the video to see if I can figure it out. Thanks again Dave

  • @marcus_w0
    @marcus_w0 6 лет назад +41

    8:46 - "You don't have to use color coded cables like this, but be aware that it won't look nearly as cool!" :) Thumbs up. This was maybe 10 seconds after I thought - "wow, these colored cables look cool!"

    • @kg4giy
      @kg4giy 6 лет назад +1

      Not only does it look cool, but it helps you figure out which end goes to which CPU when you are troubleshooting your stack!

    • @tlcoucke
      @tlcoucke 6 лет назад

      Hehe, he would have gotten it anyway, but that comment of his triggered my up vote.

    • @jfan4reva
      @jfan4reva 6 лет назад +2

      Having worked as a network technician for a few years,,,yeah, anything you can do to simplify cabling pays off. Even if it's just 4 devices.
      You'll never actually see the savings in things like time, frustration and hardware damage, but it's there. It's like not falling off a cliff that you don't know is there.

    • @ryanwilson5079
      @ryanwilson5079 5 лет назад

      They are not for decoration they are to organize. Them

  • @AndrewErwin73
    @AndrewErwin73 5 лет назад +17

    "...be aware that it won't look nearly as cool!" - excellent!

  • @jairrossettofilho1189
    @jairrossettofilho1189 4 года назад

    Thank you for teaching me how to do it. I really liked the video. You teach in a very clear way.

  • @MicahTheManiac
    @MicahTheManiac 6 лет назад +4

    I've always wondered what use a Raspberry Pi cluster has. Does it actually increase performance or is it just easier to run a server or something, or do something like calculate a large number easier? (let's say a number like Pi.) Anyways these little things always seem to amaze me and are very cool and unique...

    • @ultraviolet.catastrophe
      @ultraviolet.catastrophe 2 года назад +2

      Yes, such a cluster would be very useful in scientific computing. A classic problem is generating all the prime numbers up to N (a sufficiently large number, like a million). Each node will work on a portion of the problem, and then the results can be merged later. This is extremely faster compared to running the same program on a single Pi.

  • @N3KN1L
    @N3KN1L 6 лет назад +7

    Actually didn't know about Fabric! Nice one :)

  • @backyardwindow
    @backyardwindow 3 года назад +1

    This is very cool, and you made it seem super easy! However, I don't have any idea what one does with a cluster of Raspberry Pi, nor do i know what Python is for. Just grabbed my first Pi for audio streaming.

  • @bradiporitmico
    @bradiporitmico 6 лет назад +2

    To send a command to multiple devices I suggest to use terminator and select "broadcast all" option

  • @joonasfi
    @joonasfi 6 лет назад +1

    Thanks for explaining things super clearly, but yet in a concise way. For example "pip install" you explained that it's a command for installing Python programs. :) Also, I've thought about building a Pi cluster - thanks for the idea of using a USB charger hub!

  • @jagsrs28
    @jagsrs28 5 лет назад

    Change your default "pi" usernames. Having a default username makes the pi less secure because an attacker is gonna try the username 'pi' because they know its the default username.

  • @DaveAndrus
    @DaveAndrus 3 года назад

    Very useful info. Thanks for taking the time to make this video!

  • @RT-eb6vo
    @RT-eb6vo 6 лет назад

    Thanks for taking the time to put this video together. I learnt some new tricks :).

  • @andygonzalez7012
    @andygonzalez7012 4 года назад

    you should show the links to the Anker hub. All of the items you are using including the switch. You can then eventually go to these manufacturers and present your base and how you recommend their products, etc.

  • @wrzq
    @wrzq 11 месяцев назад

    Thank you for this awesome tutorial, it helped me a lot. You're the Man! Quick question: what should I do in order to use this type of cluster as a home cloud for hosting my website(s) and mysql databases?

  • @fredgibbs4664
    @fredgibbs4664 5 лет назад

    Great video, fruiend. I just received 5 of these little creatures to do exactly what you did. I failed to buy colored cables, so you with the "cool " factor. Keep the vids coming - I'm an IT grad student and learn more here than in class/books. Cheers, mate!

  • @CRasputin4
    @CRasputin4 4 года назад +7

    I really like the color of those wires, would anyone happen to know the brand?

  • @garyreardon11
    @garyreardon11 6 лет назад

    Great video Davy Wybiral!! I never heard of the fabric program before.

  • @DDBAA24
    @DDBAA24 6 лет назад +11

    is Fabric actually clustering them though ? Or is it more or less just a way to execute the same SSH command on different devices at the same time. The cluster would distribute data evenly across the pi's, and not the execute the same command but separate parts of the command simultaneously utilizing the full power of the "cluster". I get what you did here with Fabric and it was cool , but how can I use it to combine the hardware resources ?

    • @taskforce-it-group
      @taskforce-it-group 6 лет назад +2

      It's only to execute the same SSH command on all devices.

    • @DDBAA24
      @DDBAA24 6 лет назад +2

      Still a cool concept. I wound up going with a machine file so the pi's could actually see && speak to eachother. What are some practical applications for a cluster ? The first thing I tried was a bruteforce lol

    • @taskforce-it-group
      @taskforce-it-group 6 лет назад +2

      Yes, Fabric is definitely cool. It's a fairly extensive tool and worth checking out.
      I'm currently using my RPi cluster to prototype a small microservice-based infrastructure with multiple Node.js instances communicating with each other over IPC. Next would be using a message broker like RabbitMQ and making the RPis run on multiple different languages.

    • @DDBAA24
      @DDBAA24 5 лет назад

      @Umbrelladroid Actually I am familiar with what a Beowulf cluster or grid computing is. Although I am familiar with the term, I have never built one. I know you can make a cluster that serves the function with mpi/mpich openMPI for arm devices. Have you tried either of these methods beowulf or mpi ? What I was looking to do was find an office that was getting all new computers and getting rid of the old ones in order to attempt making the beowulf cluster. Usually they're recycling or throwing machines away. I have a bunch of machines at home but they're not the same, in order to make this type of cluster, do the machines have to be identical ? I only have two rpi's, a3b+ and pi0w. I was thinking of trying this ruclips.net/video/RqcHj1DgAMM/видео.html , I know either way I am not going to be breaking any benchmarks with the Pi but the concept is cool. Let me know what you think, and what you think about the video I linked. Thanks.

    • @DDBAA24
      @DDBAA24 5 лет назад

      @Umbrelladroid Okay I will see what its about, is it exclusive to Debian or can I make this type of cluster with other distros ? Personally I like Debian , but I have a few systems running Arch, and centOS, thanks for your suggestion.

  • @johnkasonga6634
    @johnkasonga6634 4 года назад

    This was so interesting. Please do more videos like these. Thanks again

  • @jazzynet1
    @jazzynet1 5 лет назад +2

    Thanks for demonstrating Fabric! I personally don't have any idea why you would cluster or have multiple pi machines but I guess someone will tell me! Cause I don't know! Great video!
    I still prefer Amiga!

  • @ceh4702
    @ceh4702 5 лет назад

    By the time you purchase 4 boards cant you just buy something like a low-end Intel i3 or get a barebones Asrock Desk Mini that comes with the wireless kit and a power adapter? I have one with an intel i3 8100 4 core CPU. Dont really get what you do with a cluster? Too many wires to connect for a cluster. With 4 Pi's you need 4 network cables, 4 power cables, a swithch and a network cable for the switch. All of that costs money. Color coded cables are just fine and make sense. My son works at an ISP and they use a rasberry PI to monitor messages from the network that need addressing and similar things. Probably most of that is text based on a monitor.

  • @ms1_77
    @ms1_77 5 лет назад

    Fans on them would look pretty cool aswell and if they were all matching colours

  • @barbaznexus9347
    @barbaznexus9347 5 лет назад +1

    really clean and cool build

  • @bleepsblops
    @bleepsblops 6 лет назад

    As I start wondering if i should build a pi cluster for plex and octoprint your video came at the right moment. Also, totally unrelated but I have the same shirt! LOL

  • @MrWilde
    @MrWilde 5 лет назад +1

    Thanks I enjoyed that and your right, I like the color coded cables. Love your Work

  • @TraceguyRune
    @TraceguyRune 4 года назад

    With the newer Pis having PoE the new setup won't require all those power cables. Provided you buy a PoE switch.

    • @user-hx7dc9uz6s
      @user-hx7dc9uz6s 3 года назад

      you could also just connect power to the pi's 5v and ground pin

  • @stevewhite5816
    @stevewhite5816 5 лет назад +1

    You should do a tutorial on how you program multi pi at once step by step and what programs to get and how to set them up. I tried and it's not working.

  • @demonmaestro
    @demonmaestro 6 лет назад +20

    Awesome video. Just a friendly helper. Look into OBS (Open Broadcast Software). To record your screen.

  • @ph1l911
    @ph1l911 6 лет назад +7

    To me it looks like you made a typo when you specified the ip range (192.168.60 instead of 192.168.1.60) but it still worked - why?

    • @DavyBot
      @DavyBot  6 лет назад +5

      It was a typo during the video and I'm surprised that it worked that way too. The scan probably would have been faster if I had entered the range correctly.

  • @JanneOksanen
    @JanneOksanen 6 лет назад +2

    Meh, I came here to see a cluster and found just 4 pis stacked together. I still learned a couple of things so I guess it wasn't a complete waste of time.

  • @kg4giy
    @kg4giy 6 лет назад +1

    Thanks for the demo. Great job! Not sure when you did it, but `pip install fabric` on the 3-13-2018 version of Stretch fails with a missing dependency (at least this morning). An apt-get install fabric seems to work OK (again, as of this morning) for those that encounter it.

  • @tomt9152
    @tomt9152 5 лет назад +6

    Definition = (cluster )
    Posted by: Margaret Rouse
    WhatIs.com
    1) In a computer system, a cluster is a group of servers and other resources that act like a single system

    • @agentbong138
      @agentbong138 5 лет назад +1

      Clusters are not only used for sharing computational load. A cluster can also be used for redundancy, providing fault tolerances in the event of node failure. Look up "failover cluster". You're definition is very basic and only describes one type of cluster, and I would argue its incorrect, a dumbed down definition for layman.

  • @justy1337
    @justy1337 6 лет назад +10

    You forgot to lock the ip address by the mac addresses or you'll have to change the ips each time you restart the PIs or the router.

  • @antsgaragehobbiesandrandom8427
    @antsgaragehobbiesandrandom8427 4 года назад +2

    Perfect for a kubernetes cluster!

  • @zhachoryvolker4531
    @zhachoryvolker4531 5 лет назад

    It's true this isn't a cluster, but this is still amazingly helpful!!!

  • @chetana9802
    @chetana9802 3 года назад

    you should do an update on how the cluster is performing now

  • @HShango
    @HShango 6 лет назад

    I'd love to build a small mini supercomputer cluster out of raspberry Pi to be honest.

  • @Crypt0Crossf1re
    @Crypt0Crossf1re 4 года назад

    I found it comical how you had used your fingers to “close your eyes”. That’s was funny.

  • @JohnnyMcMenamin
    @JohnnyMcMenamin 6 лет назад

    This helped me get off and running. Thanks.

  • @bondarworld
    @bondarworld 5 лет назад +2

    Sooo... This is a cool build indeed. But I missed the part on what exactly you built it for. And what kind of uses there are for it. What are the benefits compared to just a single board?
    Thanks!!

    • @ghostexblades2137
      @ghostexblades2137 5 лет назад

      you can have more computing power with the 4 raspberry pi's if you connect it to your pc. another thing you can also use raspberry pi's for is using it is a sort of motherboard for other things you might build

    • @user-hx7dc9uz6s
      @user-hx7dc9uz6s 3 года назад

      @@ghostexblades2137 "you can have more computing power with the 4 raspberry pi's if you connect it to your pc" that is not true at all xD

  • @napillnik
    @napillnik 6 лет назад

    Instead of Etcher, isn't it easier to just dd if=/path/to/raspbian.img of=/dev/sdb (replace sdb with whatever device the SD card is)? Works for ISOs, and dd is a core Linux program.
    Be careful though with it, dd has been nicknamed "Disk Destroyer" by the community, because it writes bytes directly on file/device, so if you write faulty input, I don't know what will happen. Hopefully you can use dd again to repair it, or any partition manager to re-initialize the broken disk, but I never tried.

  • @craigstone975
    @craigstone975 3 года назад

    Get a PoE+ bridge and PoE÷ hats. Connect external m2 ssd and usb boot it. Then PXE boot the other pi boards off that first pi... Personally run arch arm v8 for os.

  • @adambombcreations3542
    @adambombcreations3542 5 лет назад +7

    Great instruction, Thanks for the info, I was wondering what applications or projects this 4 node setup can be used for?

    • @alissonfl
      @alissonfl 5 лет назад +3

      im wondering that too

  • @gelfling6
    @gelfling6 5 месяцев назад

    great video on setup. slowly bringing a 5-node cluster online, which I got from a college student whom besides not wanting to pack it to go home (from Ct. to Ca.), I'm guessing lost interest.
    I'm starting with the latest 15-Mar-2024 lite 64-bit image. my question, is once everything is up and running, how do I go about running an actual app, that will take advantage of all the nodes,
    i.e. something like rarcrack, which is a pre-compiled app. thanks

  • @needforkno
    @needforkno 6 лет назад +66

    The start was creepy bro never do that again

    • @ArunTr
      @ArunTr 5 лет назад +2

      Y are so fucking 😂😂😂

  • @MrHasie
    @MrHasie 4 года назад

    Kudos to color coordinating

  • @bbminetesting6837
    @bbminetesting6837 6 лет назад +1

    WOW! I didn't know about fab command! VERY useful! Will definitely be using it now!
    Just subscribed :D

  • @vn9528
    @vn9528 6 лет назад

    Great video....didnt ever thought of this. Thanks for the share mate.

  • @b_mb4948
    @b_mb4948 6 лет назад +30

    Just a quick question from a "non-developer"; Is it possible to build a Pi cluster such that it behaves like an ordinary Pi (Raspbian GUI interface etc.), but makes use of the other units in the cluster to increase raw processing power & available RAM, giving you what is in effect some sort of "super Pi"?

    •  6 лет назад +9

      As far as I know, there is no easy way to "add" like this. This is a non trivial question and goes down with how easy or hard is to split your problem. You could use some work schedulers like kubernetes or nomad, to deploy jobs to the PIs. Some works can not be done without some algorithms changed. The trivial situation is calculate Pi itself. To calculate a new decimal you need the previous, so it is not easy to split this job on many nodes, although statistical approaches can help you there.
      In real world, most f the guys out there are using some combination of job schedulers or network load balancing to use the full power of the cluster.

    • @Beany2007FTW
      @Beany2007FTW 6 лет назад +9

      Aye, something like Docker managed by Kubernetes or RancherOS would be a good way to get that sort of functionality. You get the same practical results, although only in parallel fasion (IE you can scale out horizontally - running multiple apache services - but not vertically - you can't make apache *faster*).
      Actually making the services combine into one homogenous cluster is something that is more of the thing that serious high-performance computing types would do, but the lack of grunt on the Pi makes it a bit redundant for that.
      If the idea of horizontal scaling sounds good, have a look at Rancher. I'm an idiot when it comes to Docker, but even I managed to get a loadbalanced, scalable Wordpress install out of it in the space of about two hours, having previously been (technically) niave on it (I'm familiar with the concepts, but never tried it before).
      I'd say if I can get it working - and I'm an idiot - then others probably can to.
      rancher.com/docs/os/v1.2/en/running-rancheros/server/raspberry-pi/

    • @JohannSwart_JWS
      @JohannSwart_JWS 6 лет назад +8

      The proper answer to your simple question is simply - no.

    • @gorillaau
      @gorillaau 6 лет назад

      Short answer: not really. You could run a graphical program on a secondary node but tell it that the display is vis this ip address which is the node that has your monitor plugged into it.

    • @charlotteantiquepowerengin6277
      @charlotteantiquepowerengin6277 6 лет назад

      Thanks. Very informative.

  • @yannkitson116
    @yannkitson116 10 месяцев назад

    Great stuff, thanks for sharing!

  • @hardrocklobsterroll395
    @hardrocklobsterroll395 5 лет назад

    Thanks for this video. Literally everything I was looking for :)

  • @eddierice3254
    @eddierice3254 6 лет назад

    this guy is epic, love the Raspberry Pi

  • @georginamcewan8846
    @georginamcewan8846 4 года назад

    I love the colour coding

  • @JJSloan
    @JJSloan 5 лет назад +3

    Nice, I learned about some new tools. Good show

  • @simantasaha8974
    @simantasaha8974 Год назад

    You are a good explainer ❤️

  • @brodarrin
    @brodarrin 6 лет назад

    To instructions on assembly some mention should be made of properly grounding yourself and your work area.

  • @chriswallace207
    @chriswallace207 6 лет назад +2

    I'm sorry if you've already answered this. What software did you use to edit this video?

    • @DavyBot
      @DavyBot  6 лет назад

      I think I was still using OpenShot at that point but I've since started using Blender (and ffmpeg for some quick conversions and track mixing).

  • @sjoervanderploeg4340
    @sjoervanderploeg4340 5 лет назад +3

    This is just four Pi's networked, there are much better solutions to manage the packages across them and please don't run four apt-get updates at once lol you can actually use NFS for that.
    Also explain a topic like MPI if you talk about clusters.

  • @CProton69
    @CProton69 5 лет назад

    I would have liked to know after building this how much of each Pi is combined if it is at all and what you can accomplish with it if at all. I don’t expect everything is literally combined but if it’s a ‘super’ computer I suspect it has more computing power and more memory maybe?

  • @spawn666reaper
    @spawn666reaper 3 года назад

    What the benefits of having a cluster? Can they do a single task together? Only with more power and speed?

  • @henryschroer
    @henryschroer 2 года назад

    great video; but fabric is giving me a hard time; can you elaborate more?

  • @mohamedfarid7499
    @mohamedfarid7499 3 года назад

    best idea for labtop build better than MSI or Acer and in the same time low cost

  • @blackneos940
    @blackneos940 5 лет назад +3

    I love black coffee and Programming and Linux and Windows!!!..... :DDD

  • @elusive.firstname.lastname
    @elusive.firstname.lastname 6 лет назад

    so i read all the comments and you mentioned that this devices use is for web applications and web services. im unfamiliar with this term, are you able to clear this up for me?

  • @garethbromley1229
    @garethbromley1229 6 лет назад

    Thanks for the useful assembly video. Was there a reason to choose python fab over something like ansible (or other CM tool) for machine configuration?
    Look forward to what you do with these next, keep up the good work!!

  • @MathsAndStats
    @MathsAndStats 3 года назад

    Hi Davy. Great video. Just wondering how reliable was the Anker power supply? Have you tried it with more than four RPi? Thanks. Jonathan.

  • @freeradical1567
    @freeradical1567 2 года назад +1

    What is the cluster going to be used for?????

  • @techsanbernardino6339
    @techsanbernardino6339 5 лет назад +2

    hmmm, how is this a cluster?

  • @TheEricBrian
    @TheEricBrian 2 года назад

    Cool. Do you have something more current? Maybe Kubernetes?

  • @RightToSelfDefense
    @RightToSelfDefense 6 лет назад

    Thanks a bunch.
    Excellent explanations.

  • @looneyburgmusic
    @looneyburgmusic 5 лет назад +1

    That frame would have been so much cooler if it lit up when the Pi's were active....

  • @brucej2490
    @brucej2490 5 лет назад

    It's very very useful and good quality video, thx