Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Scaling / High Availability Cloudron Setup

Scaling / High Availability Cloudron Setup

Scheduled Pinned Locked Moved Discuss
scalabilitymulti-host
41 Posts 15 Posters 7.6k Views 21 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • marcusquinnM marcusquinn

    Having been down the high-availability setup path with K8S, it isn't a small ask and without compromises. I prefer to think of HA on the server level - so good servers with RAID10 or VPS that does all that for you, couple that with a solid backup and restore setup and you can get as close to HA as those more complex solutions.

    I'd rather see focus on the multi-cloud control panel and granular backup policies first.

    It's the same as encryption - everyone thinks they want it, until they realise how many people and policies there needs to be for key holders because of the vulnerability for loss moving from the technology to the people.

    P Offline
    P Offline
    plusone-nick
    wrote on last edited by
    #18

    @marcusquinn More like common hypervisor HA features instead of full blow K8 HA? Mainly the ability to migrate an app to a different node and further move/manage its backup and DNS

    ✌💙+1

    marcusquinnM 1 Reply Last reply
    0
    • jimcavoliJ Offline
      jimcavoliJ Offline
      jimcavoli
      App Dev
      wrote on last edited by
      #19

      k8s is not a great fit imo for cloudron without introducing much bigger changes...there are roads to that runtime with some intermediary schedulers as well though, which is why I like Nomad in this space the most. I've actually been working up a prototype using the HashiStack Consul/Nomad (plus or minus vault) to provide a distributed runtime, but that's a reasonably long way off seeing any sort of integration into the core of things. It's a big shift on its own, and needs a lot of refinement. Obviously so would a k8s approach. In the immediate term, managing across multiple full-on cloudron instances is fairly clean, and if implemented correctly, could actually still be useful in that world as well. It's the first, easiest, smallest thing to do and therefore in my opinion is valuable, regardless of where the higher-powered distributed runtime ideas go.

      1 Reply Last reply
      3
      • P plusone-nick

        @marcusquinn More like common hypervisor HA features instead of full blow K8 HA? Mainly the ability to migrate an app to a different node and further move/manage its backup and DNS

        marcusquinnM Offline
        marcusquinnM Offline
        marcusquinn
        wrote on last edited by marcusquinn
        #20

        @plusone-nick I mean as in disk hardware redundancy. Most racks have 2 of everything else. In my experience a simple server setup on a good hardware rack will outperform K8S for uptime. I lost count of the times we were restarting one thing or another with Rancher to get something working that had no reason to fail than K8S getting it's knickers in a twist.

        The biggest risk to data loss is always the simple minds of the users!

        The biggest risk to availability is always the complex minds of the tools!

        No-one really needs high-availability, online banking goes offline frequently for maintenance. If Google has a bad day, people make a beverage and talk to each other.

        HA is snake oil in my experience.

        Web Design https://www.evergreen.je
        Development https://brandlight.org
        Life https://marcusquinn.com

        robiR MooCloud_MattM 2 Replies Last reply
        5
        • marcusquinnM marcusquinn

          @plusone-nick I mean as in disk hardware redundancy. Most racks have 2 of everything else. In my experience a simple server setup on a good hardware rack will outperform K8S for uptime. I lost count of the times we were restarting one thing or another with Rancher to get something working that had no reason to fail than K8S getting it's knickers in a twist.

          The biggest risk to data loss is always the simple minds of the users!

          The biggest risk to availability is always the complex minds of the tools!

          No-one really needs high-availability, online banking goes offline frequently for maintenance. If Google has a bad day, people make a beverage and talk to each other.

          HA is snake oil in my experience.

          robiR Offline
          robiR Offline
          robi
          wrote on last edited by
          #21

          @marcusquinn HA, no oil.
          https://neverfail.com/solution/continuous-application-availability/

          Conscious tech

          1 Reply Last reply
          0
          • marcusquinnM marcusquinn

            @plusone-nick I mean as in disk hardware redundancy. Most racks have 2 of everything else. In my experience a simple server setup on a good hardware rack will outperform K8S for uptime. I lost count of the times we were restarting one thing or another with Rancher to get something working that had no reason to fail than K8S getting it's knickers in a twist.

            The biggest risk to data loss is always the simple minds of the users!

            The biggest risk to availability is always the complex minds of the tools!

            No-one really needs high-availability, online banking goes offline frequently for maintenance. If Google has a bad day, people make a beverage and talk to each other.

            HA is snake oil in my experience.

            MooCloud_MattM Offline
            MooCloud_MattM Offline
            MooCloud_Matt
            wrote on last edited by
            #22

            @marcusquinn
            You can just not have live HA, but like a soft one.
            If a container is on a node that is not responding you can start it on a new node.

            Matteo. R.
            Founder and Tech-Support Manager.
            MooCloud MSP
            Swiss Managed Service Provider

            marcusquinnM 1 Reply Last reply
            0
            • MooCloud_MattM MooCloud_Matt

              @marcusquinn
              You can just not have live HA, but like a soft one.
              If a container is on a node that is not responding you can start it on a new node.

              marcusquinnM Offline
              marcusquinnM Offline
              marcusquinn
              wrote on last edited by
              #23

              @moocloud_matt Thanks, I know what HA is, and how it works, and far too many options for it - it's still the wrong approach for almost all online services.

              One thing I've learned in all my years is to always discount, ignore and do the opposite of anyone that says "just" in any comments, because they always represent the vast difference in time and cost between saying and doing.

              I'm well aware of the vast industry of people peddling HA pipe-dreams - I'm pretty sure I could beat all of them for uptime, by specifically avoiding doing every single thing they recommend, and just having the tried and tested strategy of keeping it simple.

              If you can't take a month off and then another month doing different things without having to do any maintenance or explain anything to anyone, your stack is too complicated.

              All HA ever did for me was cost me an additional couple of employees just to continually maintain it, and generally take away resources and attention from the actual things users wanted.

              No K8S, no excessive expertise costs, and no uptime problems since because there's just less to go wrong, and less opinion to distract from the actual usage of services that funds them.

              Web Design https://www.evergreen.je
              Development https://brandlight.org
              Life https://marcusquinn.com

              MooCloud_MattM 1 Reply Last reply
              3
              • marcusquinnM marcusquinn

                @moocloud_matt Thanks, I know what HA is, and how it works, and far too many options for it - it's still the wrong approach for almost all online services.

                One thing I've learned in all my years is to always discount, ignore and do the opposite of anyone that says "just" in any comments, because they always represent the vast difference in time and cost between saying and doing.

                I'm well aware of the vast industry of people peddling HA pipe-dreams - I'm pretty sure I could beat all of them for uptime, by specifically avoiding doing every single thing they recommend, and just having the tried and tested strategy of keeping it simple.

                If you can't take a month off and then another month doing different things without having to do any maintenance or explain anything to anyone, your stack is too complicated.

                All HA ever did for me was cost me an additional couple of employees just to continually maintain it, and generally take away resources and attention from the actual things users wanted.

                No K8S, no excessive expertise costs, and no uptime problems since because there's just less to go wrong, and less opinion to distract from the actual usage of services that funds them.

                MooCloud_MattM Offline
                MooCloud_MattM Offline
                MooCloud_Matt
                wrote on last edited by
                #24

                @marcusquinn

                HA is a bit overpower for most customer that's true, but is the idea that people have of it, that push MSP and CSP to have some lvl of HA.

                Good hardware components can be a good solution, but if you have to restore a raid from a backup it will take a lot of time, and some customer don't want to take that risk.
                They just prefer to have an soft HA set-up.

                KISS is always the good way in the IT, but not always it's possible to "keep it simple s*" .

                Matteo. R.
                Founder and Tech-Support Manager.
                MooCloud MSP
                Swiss Managed Service Provider

                marcusquinnM 1 Reply Last reply
                0
                • MooCloud_MattM MooCloud_Matt

                  @marcusquinn

                  HA is a bit overpower for most customer that's true, but is the idea that people have of it, that push MSP and CSP to have some lvl of HA.

                  Good hardware components can be a good solution, but if you have to restore a raid from a backup it will take a lot of time, and some customer don't want to take that risk.
                  They just prefer to have an soft HA set-up.

                  KISS is always the good way in the IT, but not always it's possible to "keep it simple s*" .

                  marcusquinnM Offline
                  marcusquinnM Offline
                  marcusquinn
                  wrote on last edited by
                  #25

                  @moocloud_matt In 20 years of hosting web apps, I cannot recall a single instance of hardware failure causing service or data loss. Not one.

                  There are network interruptions but they usually get solved through mutual interests in that being solved.

                  I have however see frequent data loss from software issues, and in the absolute vast majority of cases it was human error.

                  Software High Availability is a contradiction because it is adding the element of human reliance to a system, and my experience was that the software was never finished, always being updated and frequently failing.

                  Hardware resilience and redundancy is the only method of data security that is almost immune to interference.

                  In my experience "Customers" have no idea or interest in risk assessment, and they just want things to work - it is "solutions" sales people that try to sell them solutions to risks they didn't know they had to have in the first place for the sake of securing support retainers.

                  I'm sure you know what you want - but I would never invest in what you suggest purely because you are trying to sell it.

                  To me the best solution is one that does not need the person selling it, and that is where actually the oldest solutions have stood the test of time and new solutions are creating the problems they want to sell the solutions for because they cannot scare their customers into support retainers if they were given solutions that just worked because they don't need to keep changing.

                  Web Design https://www.evergreen.je
                  Development https://brandlight.org
                  Life https://marcusquinn.com

                  MooCloud_MattM 1 Reply Last reply
                  4
                  • marcusquinnM marcusquinn

                    @moocloud_matt In 20 years of hosting web apps, I cannot recall a single instance of hardware failure causing service or data loss. Not one.

                    There are network interruptions but they usually get solved through mutual interests in that being solved.

                    I have however see frequent data loss from software issues, and in the absolute vast majority of cases it was human error.

                    Software High Availability is a contradiction because it is adding the element of human reliance to a system, and my experience was that the software was never finished, always being updated and frequently failing.

                    Hardware resilience and redundancy is the only method of data security that is almost immune to interference.

                    In my experience "Customers" have no idea or interest in risk assessment, and they just want things to work - it is "solutions" sales people that try to sell them solutions to risks they didn't know they had to have in the first place for the sake of securing support retainers.

                    I'm sure you know what you want - but I would never invest in what you suggest purely because you are trying to sell it.

                    To me the best solution is one that does not need the person selling it, and that is where actually the oldest solutions have stood the test of time and new solutions are creating the problems they want to sell the solutions for because they cannot scare their customers into support retainers if they were given solutions that just worked because they don't need to keep changing.

                    MooCloud_MattM Offline
                    MooCloud_MattM Offline
                    MooCloud_Matt
                    wrote on last edited by
                    #26

                    @marcusquinn

                    Obviously, it's true what you say, it's just base on Hardware Defines Stuff.

                    We use a lot of software define storage SDS, or software defines networking, and with that, we can easily without many efforts push SoftHA to everybody.

                    Not for the customer, but for us especially.
                    If we maintain an HDD or just OS patch/update (we use LivePatch from January, so no need reboot now) take time and sometimes customer need to use their app on that time.

                    Some customers just want high SLA, just because the wrong maintenance or failure will make them lose a lot of money, and this is not seen as annual SLA, but maybe monthly, having just 5 min of downtime is really hard to offer without some kind of HA.

                    It's completely true that good hardware can reduce a lot of inconveniences, and in most cases, it will protect the customer really well. But now that we have SDS and is easy to manage and really robust, we can move to that and countless on hardware.

                    Obviously, there are 2 ways Hardware and Software and there are pros and cons for both, I just see Cloudron as more oriented on Software than hardware, and to replay the main question of this post, I think that softHA base on SDS can be easily implemented compared to some of the super costly hardware by DELL or HPE and provide scalability other than a soft approach to HA.

                    But I support your thesis to, good hardware is absolutely a good way to provide good SLA.

                    Matteo. R.
                    Founder and Tech-Support Manager.
                    MooCloud MSP
                    Swiss Managed Service Provider

                    robiR 1 Reply Last reply
                    1
                    • MooCloud_MattM MooCloud_Matt

                      @marcusquinn

                      Obviously, it's true what you say, it's just base on Hardware Defines Stuff.

                      We use a lot of software define storage SDS, or software defines networking, and with that, we can easily without many efforts push SoftHA to everybody.

                      Not for the customer, but for us especially.
                      If we maintain an HDD or just OS patch/update (we use LivePatch from January, so no need reboot now) take time and sometimes customer need to use their app on that time.

                      Some customers just want high SLA, just because the wrong maintenance or failure will make them lose a lot of money, and this is not seen as annual SLA, but maybe monthly, having just 5 min of downtime is really hard to offer without some kind of HA.

                      It's completely true that good hardware can reduce a lot of inconveniences, and in most cases, it will protect the customer really well. But now that we have SDS and is easy to manage and really robust, we can move to that and countless on hardware.

                      Obviously, there are 2 ways Hardware and Software and there are pros and cons for both, I just see Cloudron as more oriented on Software than hardware, and to replay the main question of this post, I think that softHA base on SDS can be easily implemented compared to some of the super costly hardware by DELL or HPE and provide scalability other than a soft approach to HA.

                      But I support your thesis to, good hardware is absolutely a good way to provide good SLA.

                      robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by
                      #27

                      @moocloud_matt Which SDS do you use?

                      Conscious tech

                      MooCloud_MattM 1 Reply Last reply
                      0
                      • robiR robi

                        @moocloud_matt Which SDS do you use?

                        MooCloud_MattM Offline
                        MooCloud_MattM Offline
                        MooCloud_Matt
                        wrote on last edited by
                        #28

                        @robi
                        Mostly Ceph, if is not needed an other stack by the customer.
                        But I have tested recently the new ScaleOutZFS by truenas scale, and it's really good and easy to manage, but is not a really 100% SDS.

                        Matteo. R.
                        Founder and Tech-Support Manager.
                        MooCloud MSP
                        Swiss Managed Service Provider

                        robiR 1 Reply Last reply
                        0
                        • MooCloud_MattM MooCloud_Matt

                          @robi
                          Mostly Ceph, if is not needed an other stack by the customer.
                          But I have tested recently the new ScaleOutZFS by truenas scale, and it's really good and easy to manage, but is not a really 100% SDS.

                          robiR Offline
                          robiR Offline
                          robi
                          wrote on last edited by
                          #29

                          @moocloud_matt have you played with Open vStorage? MaxIOPS? ...?

                          Conscious tech

                          MooCloud_MattM 1 Reply Last reply
                          0
                          • robiR robi

                            @moocloud_matt have you played with Open vStorage? MaxIOPS? ...?

                            MooCloud_MattM Offline
                            MooCloud_MattM Offline
                            MooCloud_Matt
                            wrote on last edited by
                            #30

                            @robi
                            Not that I remember, but I'm not actually the CTO, so in some cases i just know of the production / future production ready solution that we are testing or using.
                            I don't keep up with all the project that we test or try.

                            Matteo. R.
                            Founder and Tech-Support Manager.
                            MooCloud MSP
                            Swiss Managed Service Provider

                            robiR 1 Reply Last reply
                            0
                            • MooCloud_MattM MooCloud_Matt

                              @robi
                              Not that I remember, but I'm not actually the CTO, so in some cases i just know of the production / future production ready solution that we are testing or using.
                              I don't keep up with all the project that we test or try.

                              robiR Offline
                              robiR Offline
                              robi
                              wrote on last edited by
                              #31

                              @moocloud_matt Okie.. if you get to ask him, see what else he's tried.

                              Conscious tech

                              1 Reply Last reply
                              1
                              • M Offline
                                M Offline
                                msbt
                                App Dev
                                wrote on last edited by
                                #32

                                Hey everyone, hope it's ok if I chime in here and ask if anyone has built something in this direction. I'm asking because I got approached to host a static site (basically html, js and a few smaller images) which has trafficspikes where 50k+ users will try to access it for a short period of time and then mostly idles again. How would you go about that, is this doable on Cloudron? I did manage to have 100s of users, but 1000s is a different story 😬

                                Can the surfer app (being a node server and all) handle that load if there's enough CPU/RAM on the host machine? Or would you rather build a custom nginx app which does nothing but serve compressed static files? Or fire up some smaller VPS, install nginx and use a load balancer to spread the traffic? Any information and suggestion is appreciated 🙂

                                nebulonN girishG 2 Replies Last reply
                                2
                                • M msbt

                                  Hey everyone, hope it's ok if I chime in here and ask if anyone has built something in this direction. I'm asking because I got approached to host a static site (basically html, js and a few smaller images) which has trafficspikes where 50k+ users will try to access it for a short period of time and then mostly idles again. How would you go about that, is this doable on Cloudron? I did manage to have 100s of users, but 1000s is a different story 😬

                                  Can the surfer app (being a node server and all) handle that load if there's enough CPU/RAM on the host machine? Or would you rather build a custom nginx app which does nothing but serve compressed static files? Or fire up some smaller VPS, install nginx and use a load balancer to spread the traffic? Any information and suggestion is appreciated 🙂

                                  nebulonN Offline
                                  nebulonN Offline
                                  nebulon
                                  Staff
                                  wrote on last edited by
                                  #33

                                  @msbt I actually think for your scenario with mostly static content, you could put Cloudflare or similar in front of that app to sustain those spike times.

                                  M 1 Reply Last reply
                                  3
                                  • M msbt

                                    Hey everyone, hope it's ok if I chime in here and ask if anyone has built something in this direction. I'm asking because I got approached to host a static site (basically html, js and a few smaller images) which has trafficspikes where 50k+ users will try to access it for a short period of time and then mostly idles again. How would you go about that, is this doable on Cloudron? I did manage to have 100s of users, but 1000s is a different story 😬

                                    Can the surfer app (being a node server and all) handle that load if there's enough CPU/RAM on the host machine? Or would you rather build a custom nginx app which does nothing but serve compressed static files? Or fire up some smaller VPS, install nginx and use a load balancer to spread the traffic? Any information and suggestion is appreciated 🙂

                                    girishG Do not disturb
                                    girishG Do not disturb
                                    girish
                                    Staff
                                    wrote on last edited by
                                    #34

                                    @msbt said in Scaling / High Availability Cloudron Setup:

                                    Can the surfer app (being a node server and all) handle that load if there's enough CPU/RAM on the host machine?

                                    For static content, this should be quite easily achievable. Have you tried running any load tests? There's a bunch of variables here like network and disk speed. Best to measure the actual server setup.

                                    1 Reply Last reply
                                    3
                                    • nebulonN nebulon

                                      @msbt I actually think for your scenario with mostly static content, you could put Cloudflare or similar in front of that app to sustain those spike times.

                                      M Offline
                                      M Offline
                                      msbt
                                      App Dev
                                      wrote on last edited by
                                      #35

                                      thanks for the replies 🙂

                                      @nebulon I wanted to avoid Cloudflare traffic, but I reckon it's worth a try

                                      @girish I'll do some local and remote http benching as soon as I have an idea what the actual content of the site will be

                                      d19dotcaD 1 Reply Last reply
                                      1
                                      • M msbt

                                        thanks for the replies 🙂

                                        @nebulon I wanted to avoid Cloudflare traffic, but I reckon it's worth a try

                                        @girish I'll do some local and remote http benching as soon as I have an idea what the actual content of the site will be

                                        d19dotcaD Offline
                                        d19dotcaD Offline
                                        d19dotca
                                        wrote on last edited by
                                        #36

                                        @msbt said in Scaling / High Availability Cloudron Setup:

                                        I wanted to avoid Cloudflare traffic

                                        If you're simply against Cloudflare as some people seem to be but open to other CDNs, I can vouch for BunnyCDN, everyone raves about them and they are very inexpensive too for the offerings. They also seem to be about to launch some DNS packages, I think they're slowly taking direct aim at Cloudflare and seem a little more friendly to use.

                                        --
                                        Dustin Dauncey
                                        www.d19.ca

                                        M 1 Reply Last reply
                                        1
                                        • d19dotcaD d19dotca

                                          @msbt said in Scaling / High Availability Cloudron Setup:

                                          I wanted to avoid Cloudflare traffic

                                          If you're simply against Cloudflare as some people seem to be but open to other CDNs, I can vouch for BunnyCDN, everyone raves about them and they are very inexpensive too for the offerings. They also seem to be about to launch some DNS packages, I think they're slowly taking direct aim at Cloudflare and seem a little more friendly to use.

                                          M Offline
                                          M Offline
                                          msbt
                                          App Dev
                                          wrote on last edited by
                                          #37

                                          @d19dotca funny that you mention them, BunnyCDN was the provider I wanted to check out before any other 😄

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search