+ All Categories
Home > Documents > Failover with Consul

Failover with Consul

Date post: 05-Jul-2018
Category:
Upload: der-schlaechter
View: 233 times
Download: 0 times
Share this document with a friend

of 19

Transcript
  • 8/16/2019 Failover with Consul

    1/19

    How we cooked Elasticsearch, Consul,Haproxy and DNS-recursor

    In comic strip

    Authors:

    Shcherako! S"Sin A"

    #okare! $"

  • 8/16/2019 Failover with Consul

    2/19

    DNS

    I resol!e my elasticsearch

     location y DNSAnd send re%uest to it

     &  i m m e

      m y  d a

     t a '

               (            h        e

            r        e             i        s

             m         y              E

                l        a        s          t            i        c

            s        e        a        r        c            h          )

  • 8/16/2019 Failover with Consul

    3/19

    (hat happens i* Elasticsearch down)

  • 8/16/2019 Failover with Consul

    4/19

    DNS

                      (                   h

                 e              r             e                   i             s               m

                  y                       E                   l             a

                 s                t                   i             c

                 s             e             a              r             c

                       h                 )

  • 8/16/2019 Failover with Consul

    5/19

    $k" I will hide my Elasticsearch+es ehind HAproxy'''

  • 8/16/2019 Failover with Consul

    6/19

      D a  t a 

     r e %  u

     e s  t

     S e r !  i c

     e  m o n  i t o r  i n -

  • 8/16/2019 Failover with Consul

    7/19

    DNS

    $k" Now I can access my data

    e!en i* one o* elasticsearch is down'

    &imme my data'

       (   h  e  r  e   i  s  m  y   E

       l  a  s   t   i  c  s  e  a  r  c   h   )

  • 8/16/2019 Failover with Consul

    8/19

    DNS

       (   h  e  r  e   i  s  m  y   E

       l  a  s   t   i  c  s  e  a  r  c   h   )

    ./0123/0204230//2310566765

  • 8/16/2019 Failover with Consul

    9/19

    $k" 8et9s add extra alancer *or redundancy'

  • 8/16/2019 Failover with Consul

    10/19

    DNS

    $k" Now DNS points to one o* alancer"

    But what will happenif one of balancer down??

     & i m m e 

     m y  d a t a

     '

    {OR}

       (   h   e   r   e   i   s   m   y

       E   l   a   s   t   i   c   s   e   a   r   c   h   )

  • 8/16/2019 Failover with Consul

    11/19

    DNS

        (   h   e   r   e   i   s   m   y   E   l   a   s   t   i   c   s   e   a   r   c   h   )

     & i m m e 

     m y  d a t a

     '

  • 8/16/2019 Failover with Consul

    12/19

    DNS

       (   h   e   r   e   i   s   m   y   E   l   a   s   t   i   c   s   e   a   r   c   h   )

      &   i  m

      m  e   m   y 

      d  a   t  a   '

  • 8/16/2019 Failover with Consul

    13/19

    DNS

        (   h   e   r   e   i   s   m   y

        E   l   a   s   t   i   c   s   e   a   r   c   h   )

     & i m m e 

     m y  d a t a

     '

    It makes me craythat DNS continues i!e me

    An address o* rokenser!er

  • 8/16/2019 Failover with Consul

    14/19

    How to make DNS *oret roken alancer ser!er

    ASA;)')

  • 8/16/2019 Failover with Consul

    15/19

  • 8/16/2019 Failover with Consul

    16/19

  • 8/16/2019 Failover with Consul

    17/19

    DNS

    Still works""NOT B"D))

  • 8/16/2019 Failover with Consul

    18/19

  • 8/16/2019 Failover with Consul

    19/19

    ● Cloud● Cluster

    ● >ail-o!er● ?edundancy

    ● >ault tolerance

    /fashionable stlish for outh0


Recommended