2

So I have a raspberry pi running nextcloud and I want to add a second one to improve the availability.
I'm new to HA clusters. What stack would you recommend?

Comments
  • 0
    There is nothing that you could do with two Pis actually.
  • 0
    For me as well, i have everything on pi but the cloud. Im looping my dns trough to a second server with a small core2duo with a shitton of hdd's. The pi just cant handle the files i guess.
  • 0
    @Linux What do you mean by that? Are they too weak? Is it too hard to set them up into a two node cluster?

    I'm just interested in the reason why it would be impractical.
  • 0
    @Alice For me the raspberry pi actually works reasonably well. I don't even need to power the HDD separately. I'm using the WD PiDrive with 1TB.
  • 0
    @TheSilent

    How would a two node cluster work?

    How should the replication work for the files and the databases?

    Galera and Gluster would work, but that would require atleast three nodes and it would kill the poor pi :(
  • 0
    @Linux Well I'm still learning on this topic. What do you think about pacemaker + corosync. Would this be overkill for a pi?

    I know that a two node cluster is prone to the split brain problem, but it would be better than the current situation were my current pi will often fail and let me down, because someone accidentally unplugged the cable or a power cut reset the router an make the pi unreachable.

    I'm not looking for an enterprise solution. I'm basically the only one using the cloud.
  • 0
    @TheSilent

    Well, that would solve the database replication and file replication between the nodes really.

    Split brain is really nothing you want, it could corrupt shit
  • 0
    i use Rasp Pi W as a Kodi media center + 4Tb hdd + bluetooth speakers. i also have installed transmission, habridge (for Alexa) and shairport (disclaimer: due to low power i have a couple of scripts running all the time that start/stop the transmission daemon) other than that it can easily play any 1080p file (i also have sonarr/radarr+jackett combo on a vps that feeds automatically transmission 😎)

    overall i can say rasp pi is quite powerful if you know how to manage it
  • 0
    @Linux What do you think about a master - slave setup would that improve things?
  • 0
    @TheSilent

    That would be much more suitable, but you still have to solve file replication and database replication
  • 0
    @Linux
    According to this:
    https://raspberrypi.org/forums/...

    It is possible to get fencing going with a raspberry pi cluster using stonith.
    What is your opinion on this?
    Are the raspberry pis powerful enough to handle nextcloud and the clustering stuff?
  • 0
    @TheSilent

    Well, as I said - that only solves a minor part of the cluster. How should you do replication between the nodes? If you can't solve that, running a cluster would be pointless.
  • 0
    @Linux Well you would use DRBD or Ceph right?
  • 0
    @TheSilent

    DRBD - yes. But that does not take care of the database :)

    I suggest you get atleast three Pi's and then you could to Galera+Gluster
  • 0
    @Linux Can't you just also sync the databases files using DRBD?
  • 0
  • 0
    Ransomed is issued for the management of the offers for the people. The struggle of the https://essaysoriginreview.com/abou... is issued for the humans. The prospects have been done for the approval of the ransomed for the comfort of the people. It is charged with the help of the humans.
Add Comment