Creating a Supercomputer with a Raspberry Pi 5 Cluster and Docker Swarm!

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024

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

  • @enzolongobucco4914
    @enzolongobucco4914 3 часа назад +1

    Thank you for the tutorial you absolute legend!

  • @TreeLuvBurdpu
    @TreeLuvBurdpu 6 месяцев назад +3

    The live debugging adds value to the video.

  • @TreeLuvBurdpu
    @TreeLuvBurdpu 6 месяцев назад +2

    "what the bot's going on there?" Is a new favorite phrase.

  • @tommyvanpelt2408
    @tommyvanpelt2408 6 месяцев назад +1

    Hello Kevin from Pensacola, Florida... because of work and time availability, haven't been able to watch your live events but great videos and i appreciate your Raspberry Pi tips and projects. Thanks again! Be well!

  • @aravjain
    @aravjain 6 месяцев назад +2

    Great video, Kevin! Thanks again for creating this!

  • @sunday-thequant8477
    @sunday-thequant8477 5 месяцев назад +1

    i loved the tutorial bro! im actually loving to learn docker, i wanna create my own cluster.

  • @armisis
    @armisis 6 месяцев назад +3

    Building mine bit by bit, I want to make a cluster powerful enough to run my plex, nas, home assistant, and maybe if I can figure it out a local Mincraft server... I am aiming for a 8 Raspberry PI 5 cluster but due to finances will have to add the nodes as i get them or change them from pi 4 to pi 5 as I get the 5 in, I have a load of 4s laying around.

    • @armisis
      @armisis 4 месяца назад

      Not had luck ran a Minecraft server no one could join.

  • @steve230870
    @steve230870 6 месяцев назад +1

    Great video, just put together a Pi cluster with 3 raspberry pi 4 using the uctronics case, will add a 4th node eventually.
    New to docker and swarms, so your videos have been really useful.

  • @abzs5811
    @abzs5811 5 месяцев назад +1

    Can you make the screen bigger next time so we can see up close what you’re typing in the terminals cheers bro, good video

  • @HometownUnicorn
    @HometownUnicorn 6 месяцев назад

    Hey Kevin, I really love your videos. This one's great but I'm just wanting to set up a portainer .Would you be able to if you've not already show us how to set up portainer and docker and some containers? Because I like the way that you present it and the way that you can teach us how to do this. Thank you.

  • @DeepakNayak-vg8vu
    @DeepakNayak-vg8vu 5 месяцев назад +1

    Hey Kevin, absolutely gr8 and superbly done presentation.
    Question: can I use PoE instead individual power adapter to above cluster configuration?

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

      Yes - you’ll need a PoE Hat to use that power though as I understand it

  • @consig1iere294
    @consig1iere294 Месяц назад

    Can you do a Blender render with the cluster for some of simpletons to understand the power of the cluster please.

  • @Pngwolffman
    @Pngwolffman 6 месяцев назад +1

    Can I use different Raspberry Pi's in a cluster? So basically, a combination of Raspberry Pi 3, Pi 4, and Pi 5. Could I even possibly add an X86 computer like a Zimaboard to run specific x86 containers? How about managing them so that the lower powered Pis get the easier workloads?

    • @aslukili
      @aslukili 4 месяца назад

      interesting

  • @neilvass6805
    @neilvass6805 6 месяцев назад +2

    Great Clear Video Thank you. I have just setup a super6c CM4 cluster with a view to learning about clusters. I was planning to use k3s but Docker swarm looks easier to use and still meets my needs.
    My Questions:
    1/ Do I need to worry about setting up public-key authentication on all the nodes before I start. (This is confusing me right now)
    2/ I am am planning to run InfluxDB and Grafana so do I need/can I setup persistent storage for this.
    3/ Can I use the multiple attached NVME drives in such a way as to provide a duplicate of all the swarm data and containers in case one manager node fails and how many manager nodes would you suggest!
    4/ Is there a way to simply backup this storage every night to my seperate NaS storage in case I have a major problem.
    Thanks.

    • @kevinmcaleer28
      @kevinmcaleer28  6 месяцев назад

      Hi Neil, Some great questions there. 1 - don't think you need to worry about that, ssh is fine, 2) Yes you'll need to setup a bind volume rather than using a container volume, that way you can persist the data even if the container is recreated. This also means you'll need to constrain that container to a specific node (where the data is). 3) I'm not aware of any multi-NVMe hats or bases yet, but I'm sure they will be available **soon**. Docker doesn't do live file system replication across the cluster. 4) Yes - just follow the docker docs - docs.docker.com/desktop/backup-and-restore/

    • @neilvass6805
      @neilvass6805 6 месяцев назад

      Thank you for a quick response. I can move forward now using your answers@@kevinmcaleer28

  • @ivint
    @ivint 6 месяцев назад +1

    Great video, thank you. But can't understand why use Docker Swarm instead of Kubernetes.

    • @kevinmcaleer28
      @kevinmcaleer28  6 месяцев назад +1

      Uses less memory, which is essential on single board computers with limited resources. Its also simpler to learn for people with no experience in container orchestration.

  • @TreeLuvBurdpu
    @TreeLuvBurdpu 6 месяцев назад +2

    What about using them for running local LLMs? Do we need a GPU?

    • @kevinmcaleer28
      @kevinmcaleer28  6 месяцев назад +1

      You can absolutely run a LLM on the cluster - that's what I used for a recent video on Ollama and WebUI

    • @eMgotcha77
      @eMgotcha77 6 месяцев назад +2

      Can the LLM workload be distributed? I know you can run multiple instances, yes, but can you "split" a huge LLM to multiple PIs. LLMs can use way more RAM than any PI has.

    • @kevinmcaleer28
      @kevinmcaleer28  6 месяцев назад

      @@eMgotcha77 Thats a great question - I've not seen that done yet, but it should be possible to break the work in to parallel tasks and for them to work on it independently. Pretty sure Ollama could be used to do that

  • @chrisparker8539
    @chrisparker8539 6 месяцев назад +1

    Great video as usual, Kevin. One note for you though. You said "depreciate" when talking about, well I forget what it was now, but the word is "deprecate". Keep up the great work!

  • @armisis
    @armisis 4 месяца назад

    I thought swarm would be parellel processing for containerised applications. Not what I experienced. Got all these devices but cannot find a great home use yet....

  • @investidorcalejado8344
    @investidorcalejado8344 4 месяца назад +1

    would a raspberry pi cluster, with 30+ raspberries, be good for metatrader 5 backtesting?

    • @kevinmcaleer28
      @kevinmcaleer28  4 месяца назад

      Save your money (buy the pis though)

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

    Hi, great video, can you please elaborate on the network setup part?

  • @RickySupriyadi
    @RickySupriyadi 6 месяцев назад +1

    in terms of security i really want to hear your thought this setup vs qubes os setup

    • @kevinmcaleer28
      @kevinmcaleer28  6 месяцев назад +1

      I'm not familar with qubes os. I'll look into this and let you know

  • @seridyan
    @seridyan 6 месяцев назад +1

    Hi Kevin, how do you power your Raspberry PI 5 cluster? POE?

  • @bradfeet3418
    @bradfeet3418 4 дня назад +1

    What is the correct definition of a supercomputer?

  • @Robert-sj8ld
    @Robert-sj8ld 6 месяцев назад +1

    👍👍👍👍👍👍

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

    Hey Kev. I have a q! I was thinking to use wifi for my clusters . But now I’m seriously thinking about Ethernet.
    Which Cat/ Cat e cable to use?
    Cat 6/ 7 or even 8???

  • @rca7591a
    @rca7591a 6 месяцев назад +1

    Pi 5, you gonna heat your house with that cluster?
    I'm trying to figure out how to mitigate the heat generated from a single Pi 5.

  • @molonlabe8792
    @molonlabe8792 4 месяца назад

    I'd be interested to know your opinion on uilding a Pine4 RockPro cluster.

  • @srsqtee
    @srsqtee 6 месяцев назад +1

    Thanks for the video. Curious, are you running a single power supply per pi? I have two raspberry pi 5s and 2 4bs and Im wondering if theres a more efficient way to power them

    • @offakerala
      @offakerala 2 месяца назад

      You can use multiport mobile chargers like Anker charger, 60w 6 port charging station or you get cheaper Chinese charges.

    • @srsqtee
      @srsqtee 2 месяца назад

      @@offakerala i have actually tried this, but because I use SSD as storage instead of SD card, my power requirements are a lot higher :(

    • @offakerala
      @offakerala 2 месяца назад

      @@srsqtee Oh ok, then its better to use power supplies as per the current consumption. Did you install K3S or Swarm?

    • @srsqtee
      @srsqtee 2 месяца назад

      @@offakerala yea I ended up having a separate power supply for each. Once i can get my hands on some PoE hats for these, Ill swap to those.
      I have been running k3s on my pi cluster for a few years now. Whatre you installing on yours?

    • @offakerala
      @offakerala 2 месяца назад

      @@srsqtee I am a newbie, made a K3S cluster with 5 X pi 4B's. I tied to make custom power supplies, unfortunately dint work. I feel pi's need some kind of isolation. Or may be something like an Online UPS setup backed by a battery might work. Not sure though :)

  • @ananyabhat9874
    @ananyabhat9874 4 месяца назад +1

    Could I use Raspi 3 instead of Raspi 5?

    • @kevinmcaleer28
      @kevinmcaleer28  4 месяца назад +1

      Yes! Raspberry Pi 3B only have 1Gb of Ram, which might restrict what you can do with it, but it will work fine (One of my Pi 4's is a 1Gb and that's happily serving up www.kevsrobots.com to 1000s of people per month)

    • @ananyabhat9874
      @ananyabhat9874 4 месяца назад

      Hey! Thanks a lot for replying! Could this be done for a college project using just one or two raspi boards!?

    • @kevinmcaleer28
      @kevinmcaleer28  4 месяца назад

      @@ananyabhat9874Sure - you'll need to Pi's minimum to make a swarm, otherwise if its just on one Pi its a standalone docker instance

    • @kevinmcaleer28
      @kevinmcaleer28  4 месяца назад +1

      I've created a free docker course you can check out here: www.kevsrobots.com/learn/docker/

  • @bluesdog88
    @bluesdog88 6 месяцев назад

    Hi Kevin, sorry I cant quite make out where you got the cluster rack from?

    • @kevinmcaleer28
      @kevinmcaleer28  6 месяцев назад +1

      Hey - its from ThePiHut

    • @bluesdog88
      @bluesdog88 6 месяцев назад

      @@kevinmcaleer28 Thank you ;)

    • @wanjalaproduction
      @wanjalaproduction 2 месяца назад

      @kevinmcaleer28 Can you share the link to the case?

  • @marcusworrell7175
    @marcusworrell7175 6 месяцев назад

    I can't get my nvme base to work. I have pineberry pi. I think I know what the issue is. I'm waiting on a raspi5 charger. The old ones worm, but I don't think I have enough juice for external pcie. We will see. I want to make sure I can get one to work before I buy 4, lol. Also, I'm running Ubuntu. I don't think that changes anything except the name of the configuration file that you edit to enable pcie. If anyone else is running Ubuntu with nvme base, and you have it working, please let me know if that's the only difference.

    • @cicadaskoan6260
      @cicadaskoan6260 2 месяца назад

      Might want to check the compatibility of the drive on the pineboard. Not all work.

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

    Please do better close ups please! 🙏🏽

  • @marci1270
    @marci1270 4 месяца назад

    Docker swarm is very uncool in 2024 better use kubernetes.

    • @kevinmcaleer28
      @kevinmcaleer28  4 месяца назад

      It’s not a fashion cluster - it has work todo.

    • @marci1270
      @marci1270 4 месяца назад

      @@kevinmcaleer28 K8s is heavly production ready and used by your most used apps like youtube. I dont know why you think, that k8s cannot do some work.

    • @RichardKovacs
      @RichardKovacs 4 месяца назад

      ​@@marci1270 utilization should be higher compare to docker swarm, but the features are not comparable :) if i have to run something simple i wote on Nomad

  • @darah.k3221
    @darah.k3221 5 месяцев назад +1

    buy a rpi 5 was waste of my time and money

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

      Explain pls??? Cause I got 4

    • @darah.k3221
      @darah.k3221 5 месяцев назад

      @@abzs5811 with adaptor, case, heatsink and memory the price will be equal to a mini pc. mini pc is more powerfull and faster pci with m2 nand and better os support. i wish i would buy a mini pc instead

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

      How is that? Just out of curiosity.

    • @armisis
      @armisis 4 месяца назад

      Wow I have 6 rpi 5 and their all. Clustered and brilliant

  • @Sven_Dongle
    @Sven_Dongle 6 месяцев назад +9

    A "supercomputer" with boulder sized granularity of tasking and dog slow switching fabric isnt very interesting. To make this shine ideally a crossbar that would plug into the PCIe to interconnect the nodes combined with a custom linux distro that would present a virtualized, unified image of a multi-core processor architecture and a ccNUMA memory that could run native apps transparently, even if recompilation of source was necessary. Granted, the cost would increase but usability and performance would be orders of magnitude beyond this setup. There are already switching fabrics that could be utilized so it wouldnt be a ground up endeavor; infiniband, or even ethernet thats now pushing 10gb+ and MPI drivers integrated into the linux kernel would make it doable.

    • @kevinmcaleer28
      @kevinmcaleer28  6 месяцев назад +9

      That would be an entirely different show; this show was about showing everyone how to build a cluster using a bunch of Raspberry Pi 5 (first 4 seconds). I am interested in the progress you make on your suggestion, though

    • @Sven_Dongle
      @Sven_Dongle 6 месяцев назад +2

      @@kevinmcaleer28 Perhaps then the term "supercomputer" could have been de-clickbaited from the title 😀

    • @kevinmcaleer28
      @kevinmcaleer28  6 месяцев назад +3

      @@Sven_Dongle it’s not inaccurate

    • @Sven_Dongle
      @Sven_Dongle 6 месяцев назад +3

      @@kevinmcaleer28 And yet somehow, not truly accurate. It's like the Schrödinger's Cat of titles.

    • @somenygaard
      @somenygaard 3 месяца назад

      “Super” is a pretty relative word.