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. Feature Requests
  3. Hotswap server backups

Hotswap server backups

Scheduled Pinned Locked Moved Feature Requests
multi-hostredundancy
9 Posts 6 Posters 1.3k Views 7 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 Offline
      marcusquinnM Offline
      marcusquinn
      wrote on last edited by girish
      #1

      I think this would be a luxury/business/pro feature.

      Can we consider a way to have 2 x Cloudrons:

      One would be the live and active server.

      The second would be the destination for backups but directly cloning to a second instance as a hot-swap.

      The use case would be faster recover from a total server failure or some kind of provider issue.

      It could be a second VPS with the same provider (I appreciate server snapshots are also an option there), or with another provider.

      I appreciate this is not a high-availability setup, and there would be data-loss in the event of needing - but that's no different to a backup restore.

      Switching to the hot-swap would just involve updating the DNS A record for the hot-swap, and then logging into it to trigger it to update all other DNS managed by the Cloudron.

      It can come with all the usual warnings on data-loss from swapping, and not recommending swapping back after etc.

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

      1 Reply Last reply
      4
      • jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #2

        Could this even be done now with e.g. VPS snapshot plus floating IPs?

        I use Cloudron with Gandi & Hetzner

        marcusquinnM 1 Reply Last reply
        1
        • jdaviescoatesJ jdaviescoates

          Could this even be done now with e.g. VPS snapshot plus floating IPs?

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

          @jdaviescoates within the same provider, sure. I found an article on something similar for a wordpress managed platform, will see if I can remember what it was...

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

          1 Reply Last reply
          1
          • marcusquinnM Offline
            marcusquinnM Offline
            marcusquinn
            wrote on last edited by
            #4

            This was it: https://gridpane.com/kb/how-to-setup-snapshot-failover-with-dns-made-easy/

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

            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              The hard part is not the DNS failover but how to keep the data in sync between two servers. This is easy if the data is "static". Indeed, for static stuff, you can just probably put into some CDN and you are good. For dynamic stuff, you have to somehow sync the files/database etc. To design this is very application specific. Does anyone of a product that does this? Would be good to know how they approached it/solved it.

              (AWS does this with multi-AZ deployments but these are for apps you developed. And also these are quite expensive solutions.).

              marcusquinnM 1 Reply Last reply
              1
              • girishG girish

                The hard part is not the DNS failover but how to keep the data in sync between two servers. This is easy if the data is "static". Indeed, for static stuff, you can just probably put into some CDN and you are good. For dynamic stuff, you have to somehow sync the files/database etc. To design this is very application specific. Does anyone of a product that does this? Would be good to know how they approached it/solved it.

                (AWS does this with multi-AZ deployments but these are for apps you developed. And also these are quite expensive solutions.).

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

                @girish Hey. Yeah, the point is it wouldn't be any more in sync than the backups. Rsync would make it a bit friendlier for a more frequent update interval.

                Completely respect this isn't true high-availability (Unless you use MariaDB Cluster or PerconaDB Xtra-DB )

                • https://www.wpintense.com/2018/04/26/how-to-maintain-and-manage-a-wordpress-cluster/

                Unison could work for more up-to-date file replication:

                • https://www.cis.upenn.edu/~bcpierce/unison/
                • https://www.wpintense.com/2018/05/01/how-to-use-unison-instead-of-glusterfs-for-faster-file-replication/

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

                1 Reply Last reply
                2
                • robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #7

                  This is easier with Yugabyte DB.

                  Conscious tech

                  1 Reply Last reply
                  1
                  • T Offline
                    T Offline
                    threetrees3
                    wrote last edited by
                    #8

                    So recently I had a RAID failure and was wishing we had a hot spare option - any further insight into this, 4 years down?

                    1 Reply Last reply
                    2
                    • swheeler78S Offline
                      swheeler78S Offline
                      swheeler78
                      wrote last edited by
                      #9

                      I'm currently doing something similar. I have a Proxmox cluster setup with local and cloud backups. If a server goes down the other 2 take over. I'd have to have a 3 server failure to be offline.

                      1 Reply Last reply
                      4
                      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