ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Fail-over solutions

    IT Discussion
    mysql php apache windows server
    8
    25
    2.3k
    Loading More Posts
    • 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.
    • 1
      1337
      last edited by 1337

      I have a physical server running windows with an mysql database, lots of php and apache. The system is collecting information in real-time from an industrial process running 24/7/365 and presenting that information through the webserver on the intranet.

      I need to have some kind of fail-over solution for this type of server. What options / technology would you recommend I look into? Can it be done by adding just one more physical server?

      1 Reply Last reply Reply Quote 0
      • stacksofplatesS
        stacksofplates
        last edited by

        windows with an mysql database, lots of php and apache

        OMG I'm sorry.

        1 1 Reply Last reply Reply Quote 1
        • 1
          1337 @stacksofplates
          last edited by

          @stacksofplates

          The customer standardizes on windows but the software is cross-platform.

          jmooreJ stacksofplatesS scottalanmillerS 3 Replies Last reply Reply Quote 0
          • jmooreJ
            jmoore @1337
            last edited by

            @pete-s Is it virtualized at all?

            1 1 Reply Last reply Reply Quote 0
            • 1
              1337 @jmoore
              last edited by

              @jmoore

              Nope. But maybe it should be in some form.

              All the VMs the customer are running are located in datacenters off-site but this one has to be on-site. That's why it's not virtualized at the moment.

              coliverC stacksofplatesS scottalanmillerS 3 Replies Last reply Reply Quote 0
              • stacksofplatesS
                stacksofplates @1337
                last edited by

                @pete-s said in Fail-over solutions:

                @stacksofplates

                The customer standardizes on windows but the software is cross-platform.

                Yeah it's cross platform but hard to do on Windows.

                1 Reply Last reply Reply Quote 0
                • coliverC
                  coliver @1337
                  last edited by

                  @pete-s said in Fail-over solutions:

                  Nope. But it should be.

                  FTFY.

                  1 Reply Last reply Reply Quote 1
                  • coliverC
                    coliver
                    last edited by

                    MySQL has the a clustering/fault tolerance functionality. Use that as your backend and then do a load balancing with something on the front end.

                    Out of curiosity what web server are they running?

                    jmooreJ 1 Reply Last reply Reply Quote 0
                    • stacksofplatesS
                      stacksofplates
                      last edited by

                      The only thing I can think of for failover on MySQL is Galera. I've never done it so I can't answer to how hard or easy it is to set up. Apache can easily be done with a VIP but I have no idea how to do that on Windows. Linux has keepalived for VIPs, I know MS has some implementation but I've never set it up.

                      1 Reply Last reply Reply Quote 1
                      • stacksofplatesS
                        stacksofplates @1337
                        last edited by

                        @pete-s said in Fail-over solutions:

                        @jmoore

                        Nope. But maybe it should be in some form.

                        All the VMs the customer are running are located in datacenters off-site but this one has to be on-site. That's why it's not virtualized at the moment.

                        Yeah I would virtualize as soon as you can. Gives you much much more flexibility.

                        1 Reply Last reply Reply Quote 0
                        • jmooreJ
                          jmoore @coliver
                          last edited by

                          @coliver said in Fail-over solutions:

                          Out of curiosity what web server are they running?

                          Apache I believe

                          coliverC 1 Reply Last reply Reply Quote 0
                          • coliverC
                            coliver @jmoore
                            last edited by coliver

                            @jmoore said in Fail-over solutions:

                            @coliver said in Fail-over solutions:

                            Out of curiosity what web server are they running?

                            Apache I believe

                            You could setup HAProxy in front of two apache servers with the same information on each. Set it up to pull updates from something like GitLab (or a selfhosted GIT server) and have any changes published through that. Have them talk back to a MySQL cluster. If you want to go fully fault tolerant, setup a HAProxy cluster with Keepalived running. Of course none of this really matters if there is a single physical host.

                            1 Reply Last reply Reply Quote 1
                            • scottalanmillerS
                              scottalanmiller @1337
                              last edited by

                              @pete-s said in Fail-over solutions:

                              @stacksofplates

                              The customer standardizes on windows but the software is cross-platform.

                              But super slow and cumbersome on Windows 🙂 Both MySQL and PHP famously are dogs on Windows.

                              1 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @1337
                                last edited by

                                @pete-s said in Fail-over solutions:

                                @jmoore

                                Nope. But maybe it should be in some form.

                                Definitely. But that's not a factor in the current discussion.

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller
                                  last edited by

                                  For MySQL HA, the "go to" solution is generally Galera.

                                  http://galeracluster.com/

                                  It's similar licensing to MySQL so a good match there, and is specifically the primary MySQL application layer HA product out there. I've used this in some pretty demanding environments (over 35K concurrent users.)

                                  ObsolesceO dbeatoD 2 Replies Last reply Reply Quote 1
                                  • ObsolesceO
                                    Obsolesce @scottalanmiller
                                    last edited by Obsolesce

                                    @scottalanmiller said in Fail-over solutions:

                                    For MySQL HA, the "go to" solution is generally Galera.

                                    http://galeracluster.com/

                                    It's similar licensing to MySQL so a good match there, and is specifically the primary MySQL application layer HA product out there. I've used this in some pretty demanding environments (over 35K concurrent users.)

                                    Is this active:active load balancing or active:passive/standby?

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • dbeatoD
                                      dbeato @scottalanmiller
                                      last edited by

                                      @scottalanmiller said in Fail-over solutions:

                                      For MySQL HA, the "go to" solution is generally Galera.

                                      http://galeracluster.com/

                                      It's similar licensing to MySQL so a good match there, and is specifically the primary MySQL application layer HA product out there. I've used this in some pretty demanding environments (over 35K concurrent users.)

                                      You don’t recommend Percona right?

                                      1 scottalanmillerS 2 Replies Last reply Reply Quote 0
                                      • 1
                                        1337 @dbeato
                                        last edited by

                                        @dbeato said in Fail-over solutions:

                                        @scottalanmiller said in Fail-over solutions:

                                        For MySQL HA, the "go to" solution is generally Galera.

                                        http://galeracluster.com/

                                        It's similar licensing to MySQL so a good match there, and is specifically the primary MySQL application layer HA product out there. I've used this in some pretty demanding environments (over 35K concurrent users.)

                                        You don’t recommend Percona right?

                                        It looks like Galera is an integrated part of MariaDB since v10.1, a few years back. Maybe that would be another option.

                                        JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 1
                                        • JaredBuschJ
                                          JaredBusch @1337
                                          last edited by

                                          @pete-s said in Fail-over solutions:

                                          @dbeato said in Fail-over solutions:

                                          @scottalanmiller said in Fail-over solutions:

                                          For MySQL HA, the "go to" solution is generally Galera.

                                          http://galeracluster.com/

                                          It's similar licensing to MySQL so a good match there, and is specifically the primary MySQL application layer HA product out there. I've used this in some pretty demanding environments (over 35K concurrent users.)

                                          You don’t recommend Percona right?

                                          It looks like Galera is an integrated part of MariaDB since v10.1, a few years back. Maybe that would be another option.

                                          MariaDB is what is installed anymore when you do a yum/dnf install mysql anyway. Unless you have the specific repository for MySQL.

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                            1337 @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in Fail-over solutions:

                                            @pete-s said in Fail-over solutions:

                                            @stacksofplates

                                            The customer standardizes on windows but the software is cross-platform.

                                            But super slow and cumbersome on Windows 🙂 Both MySQL and PHP famously are dogs on Windows.

                                            I don't think that's true anymore. I haven't run any benchmarks on the same hardware but I think speed was brought up to parity with MySQL 5.5 by Oracle. And PHP after Microsoft started to work with Zend so around PHP 5.4 or so. Linux will probably always have the upper hand since that is the huge majority of installations and it would be my preference as well.

                                            ObsolesceO 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post