top of page
Search

SQLSplitter - High Availability (HA)

  • Writer: Smart AmiStrator
    Smart AmiStrator
  • Feb 24, 2017
  • 2 min read

Updated: Feb 7, 2019

Today's blog is a reaction to queries regarding high availability coming more and more often from our Customers. We would like to focus on a few different ways you can achieve HA in your AWS environment. Below we explain two ways to achieve HA.



Cost-effective HA through one instance in auto-scaling group


This option is the most cost-effective as you run just one SQLSplitter instance in your AWS environment. It means that if the instance fails then your application will experience a few minutes downtime. The exact length depends on your configuration but it should be between 1-5 minutes. After this time the new instance with the recent configuration will be started.


There are a few ways which you can make sure that your new instance will have the same IP address as the previous one so you don't have to modify the configuration of your application.

One of the ways to preserve the IP address is to use a separate network interface and assign it to the instance during launch.


You can achieve this by setting the following in your 'user data' section: #!/bin/bash -ex INSTANCEID=`curl -s http://169.254.169.254/latest/meta-data/instance-id` aws ec2 attach-network-interface --region us-east-1 --instance-id $INSTANCE --device-index 2 --network-interface-id eni-xyz123


If there is a failure of your SQLSplitter instance AWS EC2 auto-scaling group will spin up a new SQLSplitter based on your last image. In this scenario it is required to make sure that you create a new AMI image after each change of your SQLSplitter configuration. We are currently working on the solution that will store the whole configuration in your private S3 bucket so creation of images after each change won't be necessary. We are aiming to have this feature available in March 2017.


To create an auto-scaling group please follow these steps: http://docs.aws.amazon.com/autoscaling/latest/userguide/GettingStartedTu...


High-availability using two SQLSplitter nodes

If you want to keep your application running without downtime during an instance failure you can use an extra SQLSplitter node. If one of them fails your application needs to know that there is another one to try. This way during one instance failure the other one will take over until the first one will be launched as described in the previous step. The figure below presents two SQLSplitter nodes operating with one master database and one slave database.
























 
 
 

3 Comments


Valentina Kykyrudza
Aug 16

У кухонної техніки сервісна індикація потрібна для того, щоб відрізнити тимчасовий захисний режим від стабільної несправності. Якщо пристрій раптово припиняє роботу, користувач часто бачить лише кілька символів, які без пояснення мало що говорять. Саме тому Коди помилок Moulinex варто використовувати як довідник для первинної оцінки ситуації.


Найбільше інформації дає контекст: коли з’явився код, що саме працювало в цей момент, чи був перегрів, чи змінилося навантаження, чи передував збою нестабільний режим. Після розшифровки логічно перевіряти тільки ті зовнішні причини, які відповідають повідомленню. Якщо код зникає після нормального перезапуску, за технікою все одно варто поспостерігати. Якщо ж він повертається при тих самих умовах, це вже ознака повторюваної проблеми. Точна модель і опис сценарію часто важливіші за сам факт наявності помилки. Для кухонної…

Like

Victoriya Chaplenko
Victoriya Chaplenko
Aug 13

Я б не починав вибір Warehouse зі спроби згадати свій звичний розмір. Набагато корисніше спочатку зробити актуальні заміри, а вже потім зіставити їх зі сторінкою Верехаус. Це особливо важливо для жіночого повсякденного одягу, де різні категорії можуть мати різні принципи підбору.


Для суконь, брюк, жакетів і верхнього одягу варто звернути увагу на таку деталь: звіряти груди, талію та стегна, а для верхнього одягу враховувати шар під низом. Відгуки можуть допомогти помітити особливість конкретної моделі, але вони не замінюють таблицю. У людей різні пропорції, зріст і уявлення про те, наскільки щільно має сидіти одяг або взуття.


Не менш важливо дивитися на опис конкретної моделі: приталений і вільний крій, щільна та еластична тканина або різна конструкція взуття відчуваються по-різному при однаковому маркуванні.…

Like

©2019 by SmartAMI

bottom of page