Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6361807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:49:29+00:00 2026-05-24T23:49:29+00:00

We have a Rails-based application , deployment infrastucture binds to AWS . Current schema

  • 0

We have a Rails-based application, deployment infrastucture binds to AWS. Current schema included the following layers:

  • load balancer (HaProxy)
  • Rails-application (EC2) x2
  • MySQLd database (EC2 master-slave)
  • Redis, DelayedJob background processes
  • Wowza media server (EC2)
  • S3 assets storage (shared data)

There is 3 SPFs: load balancer, database, media server.

My questions are about redundancy, how can I reduce SPF:

  1. load balancer. We have a plan to setup secondary load balancer, but domain name still the same. Is DNS A/AAAA roundrobin failover good solution in that case? Is AWS load balancer good to use?
  2. Is MMM (Multi-Master Replication Manager) reliable? How does it work with Rails (read/write to independent hosts)?
  3. Wowza media server, is there any well-known HA solutions to work with?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:49:29+00:00Added an answer on May 24, 2026 at 11:49 pm

    I love these questions as they always seem so simple to answer when in fact they are not.

    For starters, your BIGGEST SPF is that everything is on Amazon. I love AWS for many reasons, but in all situations where you need real availability, you’re essentially shooting yourself in the foot by relying on them 100%. So your first plan should be to distribute your services to more than 1 provider (cloud, VPS, or dedicated).

    I want to aks you a question: if AWS goes down, how long does/can/will it take you to notice and then do something about it, and how quickly do you need your services to be back up and running?

    The reason I ask is this: DNS load-balancing of A/AAAA records is a wonderful solution, unfortunately you can’t set weights or priorities as you can with SRV/MX records. This means if AWS becomes completely unavailable, you’ll have to make a DNS change real quickly to remove the IP. That CAN be automated if your DNS provider has an API which allows that. On the other hand, DNS caching is performed in so many places that it might not be worth making the DNS change, meaning you’ll have from 50% to 100% availability if 1 IP is unavailable (assuming you have 2 A records), because some browsers are able to try the 2nd IP if the 1st doesn’t work.

    In my opinion, considering AWS’s excellent uptime, you won’t be at fault to assign 2 different IPs (on 2 different providers) to your domain. I think it’s better than having 0% availability when 1 IP is down, but there’s still no joy in losing 50% of your requests.

    You can have 2 load-balancers on each provider, and let them forward requests to the other provider if certain instances/servers are down. In other words, you only need functional load-balancers at BOTH providers, and functional servers/instances at ONE provider. Make sure to select an alternate provider which doesn’t have too much latency to AWS 😉

    MMM is also a great tool, but it’s not related to Rails in any way. Personally I prefer to place a load-balancer in front of all my Database servers and let them handle who gets requests etc. Since data on a database server is so important, it’s usually better to have a human look at it and make sure everything is OK when there’s a problem, as opposed to letting a tool manage its availability, configuration, etc. MMM works in many situations, perhaps you should try it and see if it answers your needs. I can’t say anything bad about it.

    I’m not at all familiar with Wowza media server, but a quick search explained a few things. Since Wowza uses RTSP (UDP and TCP), HAProxy is NOT a solution as it only does TCP. Keepalived on the other hand can perform UDP load-balancing (it uses IVPS/LVS). In fact, Keepalived should also be used for your database slave load-balancing if you have long queries.

    One final note, there are many ways to “roll your own” AWS-like services such as S3 storage. If you want to avoid having SPFs but still need the same functionality as your AWS services, you should look into running the open source variants, such as Eucalyptus/Cloud.com/Openstack/GlusterFS. There’s a lot of work involved in setting up all that stuff, but you’ll be happy the day you can say: “so what if X provider is down, Y can take over”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the Ruby on Rails-based application Redmine (based on the BitNami redmine package)
Im working on a Rails based application where I have the need to allow
I have created a simple API for a Rails application using token-based-authentication that supports
I have developed a normal browser-based Rails game application. I'm now adding CloudMailin to
I have rails 3 application and the following problem. I need to calculate a
I have the following Nokogiri rake task in my Rails (3.1) application: desc Import
I have a the following rails models: class Release < ActiveRecord::Base has_many :release_questionnaires, :dependent
I have a rails application where each user has a separate database. (taking Joel
I have a rails application which is still showing the cachebusting numeric string at
I have a rails application running on a Linux server. I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.