Fail-over and High-Availability (Explained by Example)

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ม.ค. 2025

ความคิดเห็น • 77

  • @hnasr
    @hnasr  5 ปีที่แล้ว +11

    * What is Failover? 1:47
    * ARP - Address Resolution Protocol 3:00
    * VIP & VRRP 5:40
    * High-availability Example 12:12

  • @_SoundByte_
    @_SoundByte_ 4 ปีที่แล้ว +8

    Can’t sleep without watching one of the backend video of yours

  • @psstream889
    @psstream889 ปีที่แล้ว +3

    TH-cam is going to make good and quality engineers

  • @mohammedhewedy8231
    @mohammedhewedy8231 4 ปีที่แล้ว +4

    Your channel is awesome, you are hitting very important topics for the developer to understand how the parts underneath them are working, and most of the time you find developers just ignore it.
    I Like your channel and your choice of topics ALOT

    • @hnasr
      @hnasr  4 ปีที่แล้ว

      Thank you Mohamed! Appreciate your kind words bro 🙏

  • @sureshk763
    @sureshk763 5 ปีที่แล้ว +7

    Thanks for taking your time to share your knowledge with us....

    • @hnasr
      @hnasr  5 ปีที่แล้ว +2

      Suresh K Thanks Suresh!!! I am so happy I could share my knowledge . It gives me great pleasure.. let me know what should i talk about next

    • @sureshk763
      @sureshk763 5 ปีที่แล้ว

      @@hnasr thanks for the reply,
      Could you create a video for Cloud servers connectivity with Storage devices

  • @intelpakistan
    @intelpakistan 4 ปีที่แล้ว +4

    Excellent videos Hussein, you are an excellent and fun techie! Quick question, do you have a DraaS video as well, if not please do so.

  • @stutteringcris468
    @stutteringcris468 ปีที่แล้ว

    i learned a litte, here.
    you're funny as hell!

  • @snowman7480
    @snowman7480 3 ปีที่แล้ว

    This is what we call passionate. Good luck buddy ;)

  • @ial9809
    @ial9809 ปีที่แล้ว

    glad i found ur channel gotta learn a lot from u

  • @joechen9498
    @joechen9498 2 ปีที่แล้ว

    Great example. I love it. Thank you for the video. i subscribed.

  • @himanshupatel4264
    @himanshupatel4264 3 ปีที่แล้ว

    Great video man.. haven’t seen some content in while

  • @amitarora0623
    @amitarora0623 4 ปีที่แล้ว

    At 13:01, you mentioned "if you are still doing REST". What do you recommend "if not doing REST" ?

    • @hnasr
      @hnasr  4 ปีที่แล้ว

      Nothing really wrong with REST if it works

    • @stealtime
      @stealtime 3 ปีที่แล้ว

      @@hnasr What do you use if you're not using REST?

  • @jamiekim5430
    @jamiekim5430 3 ปีที่แล้ว

    So succinct and easy to understand!

  • @ice194
    @ice194 3 ปีที่แล้ว

    Thanks for the explanation! It’s really good. Subbed!

  • @d.s.5157
    @d.s.5157 2 ปีที่แล้ว

    Hi how would this still work if laptop was at another site and the 2 servers were in two separate locations ?

  • @anvitasingh5
    @anvitasingh5 3 ปีที่แล้ว

    who can dislike this lovely video !!! 13 people are legit crazy.

  • @yahyaensa
    @yahyaensa 3 ปีที่แล้ว +3

    Thank you Hussein for you GREAT VIDEO, i'm in love with your channel !
    Quick question, what happen when the 2 haproxy are not in the same LAN (ARP requests won't work right) ? What if we want to do High-Availibility but accross multiple geolocation ?

    • @hnasr
      @hnasr  3 ปีที่แล้ว +3

      DNS load balancing combined with this technique is one idea

  • @wh264
    @wh264 4 ปีที่แล้ว

    love the examples, subscribed.

  • @AnkitSingh9787
    @AnkitSingh9787 2 ปีที่แล้ว

    great explanation

  • @GoblinICON
    @GoblinICON 3 ปีที่แล้ว

    Thank you so much for all the work you put into your videos, these examples are extremely helpful and well-made. I subscribed and hope to learn a lot from you!

    • @hnasr
      @hnasr  3 ปีที่แล้ว +1

      Appreciate it thanks Ryan! I hope you enjoy the content

  • @tanumoymajumdar874
    @tanumoymajumdar874 ปีที่แล้ว

    Wonderful explanation. Just one doubt. We are still with one single database instance so single point failure. How can we achieve high available system with single instance of database ?

  • @douglasmakey
    @douglasmakey 4 ปีที่แล้ว +1

    Hi bro thanks for taking your time to share your knowledge with us, I have a question, I know each computer has a local ARP table to store each know mac addresses, the first time when the machine ask "who has the ip *.100", it will add the response to this table 10.0.0.100 == AAA, so how is the machine know that the first machine with mac AAA has failed, and it need to ask again "who has the ip *.100" ?
    Sorry for my English, thanks

    • @hnasr
      @hnasr  4 ปีที่แล้ว +5

      Douglas Mendez good question!! When the client asks who has the ip address 10.0.0.100 it will be received by all machines and machine AAA will respond. So the client will know update its ARP table that 10.0.0.100 is AAA.
      When AAA dies BBB takes over (because BBB knows that AAA died since it didn’t receive heartbeat 💓) BBB now sends a broadcast to all clients to flush their ARP table so that 10.0.0.100 is now BBB. Its a reverse operation

  • @truthadjustr
    @truthadjustr 2 ปีที่แล้ว

    Can you describe a little bit what is happening in the background between a primary and secondary to ensure that their file systems are in sync. Does it need running services within the node for the fail-over to be successful? If I can ssh into an Ubuntu machine, how can I tell that it is being configured for fail-over?

  • @jamesking890
    @jamesking890 2 ปีที่แล้ว

    i like this guy. great stuff

  • @vivekdey1827
    @vivekdey1827 3 ปีที่แล้ว

    Hello Sir, is it what the heartbeat protocol does?? Thanks.

  • @ammarel-shabrawy6275
    @ammarel-shabrawy6275 10 หลายเดือนก่อน

    Could explain example using Message queue example instead of HTTP server ?

  • @adityasethi9794
    @adityasethi9794 2 ปีที่แล้ว

    if communication b/w master n backup has an issue. backup thinks master is down but its not really down. in this case both will reply yes for the ARP. how does in work now?

  • @sagartyagi2450
    @sagartyagi2450 3 ปีที่แล้ว

    Just curious to know, can we have the fail over at any level?? Like even after having it at the top of load balancer, we can add one more fail over at the backend server levels right?

  • @soufianta8374
    @soufianta8374 4 ปีที่แล้ว

    Hi. Stupid question maybe: from which ip does the browser send a packet in case of multiple IP interfaces (1 physical and x-virtual)? I know that every trafic can only travel through the physical one but how does it actually work? I’m trying to understand how I can go on internet, communicate with local machines, remote machines from the intranet (through vpn) etc. with only 1 physical interface !!! Thanks

  • @AmitKumar-qg5mu
    @AmitKumar-qg5mu 4 ปีที่แล้ว

    Nicely explained

    • @hnasr
      @hnasr  4 ปีที่แล้ว

      Thanks Amit! 😊

  • @sunshineheavens6473
    @sunshineheavens6473 3 ปีที่แล้ว

    How to actually set up a failover IP? before it can be used with keepalived or other setup. Thanks in advance.

  • @dawahtv7942
    @dawahtv7942 4 ปีที่แล้ว

    hello please give me some advice to solve my problem sir. i have load balancer TPlink TL-ER6200 and i setup a fail-over i have two ISP sometimes my 1 ISP goes wrong no internet but modem is active just no internet. the load balancer not outomatic switch the backup isp in the back up wan. they switch only the backup wan when main wan not connected in ISP 1

  • @krishnakondapalli
    @krishnakondapalli 4 ปีที่แล้ว

    IP failover is good, but what if want a certain filesystem to be failedover as well along the IP?

    • @hnasr
      @hnasr  4 ปีที่แล้ว

      Krishna Kondapalli hmm like Raid cluster?

    • @krishnakondapalli
      @krishnakondapalli 4 ปีที่แล้ว

      @@hnasr yeah some clustering system that can failover IP and a filesystem for app to write its data on.
      Also have to say this - you're doing a great job sharing you knowledge. thank you!

  • @edufree565
    @edufree565 5 ปีที่แล้ว

    Nice video, thanks for the simple explanation. I have a question, slightly off-topic but pls excuse me. I want to know what happens in real prod scenarios, say both of the front end servers(or app or db) go down, how is the third one introduced? I assume the newly introduced server will need some configuration before it can handle requests. How is that handled automatically?

    • @hnasr
      @hnasr  5 ปีที่แล้ว +2

      edufree good question, I don’t have a straight answer unfortunately. The originations I worked for always used Passive Active model just two servers and when the main server goes down the new server takes over (fail over) clients will have to close and reopen.
      The probability where both servers go down at the same time is low in enterprise environment. And if it does you will basically go offline. Here it depends on your SLA. Do you want to cater for that case? You have just add another server to the cluster to fail over to.
      In high active environment such as google, twitter this is done through containers and orchestrating layer (kubernetes) if something fails another container is always available..
      Databases are tricky to scale as containers people are still figuring this out.. essentially making the DBMS stateless and decoupled from storage.
      Hope that helps or did u have something else in mind?

    • @edufree565
      @edufree565 5 ปีที่แล้ว

      @@hnasr Thanks for the reply, yeah I guess containers provide more bandwidth for failures in HA environments

  • @MayankAggarwal
    @MayankAggarwal 5 ปีที่แล้ว

    Awesome video! Can you please let me know from where you prefer to read about all this?

    • @hnasr
      @hnasr  5 ปีที่แล้ว +4

      I start from Wikipedia then scroll all the way down to resources to read original resources. The more I read the more questions I have, I search for answers , sometimes with luck sometimes without.. so I put the pieces together here is where most of my own work come to place and prior knowledge of the topic.
      hope that helps :)

    • @MayankAggarwal
      @MayankAggarwal 5 ปีที่แล้ว

      @@hnasr Thanks! You have done an awesome work in these videos.

  • @siddharthdeshpande4086
    @siddharthdeshpande4086 4 ปีที่แล้ว

    Does Application running on Microsoft Cluster works on same ARP/ VIP concept? For example we need to deploy IIS/Web server as HA using Microsoft Cluster Service... I always used to think may be DNS is getting updated every failover happens but never thought about ARP... Great Video !!

    • @hnasr
      @hnasr  4 ปีที่แล้ว +1

      Yeah MS uses NLB as a layer 4 load balancer. Thanks!

  • @hassanawodi5888
    @hassanawodi5888 5 ปีที่แล้ว

    Thanks for this. What other software will you recommend for high availability on Linux?

    • @hnasr
      @hnasr  5 ปีที่แล้ว

      Definitely keepalived for high availability mixed with either nginx or haproxy for layer 7 load balancer and layer 4 load balancing ..

    • @hassanawodi5888
      @hassanawodi5888 5 ปีที่แล้ว

      @@hnasr thanks. Will give it a go.

  • @zahrasadeghibogar
    @zahrasadeghibogar 4 ปีที่แล้ว +1

    First of all, I would like to thank you for your positive energy and your interesting way of teaching. Thank you:-)
    Second, I want you to help me. or maybe to make a video about the structure of the network, in terms of languages, for example, I am a beginner in learning networks, firewall, security and the languages that are related to this area, in fact, I always confused what languages are for server-side and which are for client-side, I did search about it but I am still confused and have no clear image of the structure. I hope, I explained my purpose clearly:-(
    I also want you to help in in learning IPsec VPN and SSL VPN and their differences and also, whats the meaning of this statement that IPsec is a layer 3 protocol which is better then SSL which is a layer 4 protocol, I do not know what it is mean
    Thanks a lot

    • @hnasr
      @hnasr  4 ปีที่แล้ว

      Hi Zahra,
      Thank you for your comment! Almost any language can be server side or client side check out my latest video.
      Check out my network engineering playlist, the more you learn the more questions you will have and that is when you know you are beginning to understand
      th-cam.com/play/PLQnljOFTspQUBSgBXilKhRMJ1ACqr7pTr.html

  • @pramodpatil3925
    @pramodpatil3925 4 ปีที่แล้ว

    Superb !

  • @PerfectBonzo
    @PerfectBonzo 4 ปีที่แล้ว

    Look at me! Look at me! I’m the master now

  • @ArpanDasS
    @ArpanDasS 4 ปีที่แล้ว

    Dope content! 🔥

  • @vibekdutta6539
    @vibekdutta6539 4 ปีที่แล้ว

    Sir could you please make a video on RAFT, its a protocol by which nodes in a distributed system agree upon who is master and whos follower, please add some example also :}

  • @omaramine8710
    @omaramine8710 5 ปีที่แล้ว

    good job!

    • @omaramine8710
      @omaramine8710 5 ปีที่แล้ว

      Hussein , what about keepalived master and slave ! ?

    • @hnasr
      @hnasr  5 ปีที่แล้ว +1

      I explain the concept in the video, I just call it master backup instead.
      Ill make a dedicated keepalived practical video . This one was to explain fail over concept

    • @omaramine8710
      @omaramine8710 5 ปีที่แล้ว

      @@hnasr Any update here bro :-) thank you !

    • @husseinnasser
      @husseinnasser 5 ปีที่แล้ว

      omar amine not yet, still busy with other projects. Stay tuned :)

  • @joeyalfaro2323
    @joeyalfaro2323 3 ปีที่แล้ว

    Reminds me of tunnel rats of Vietnam. 2 man teams number 1 and number 2 guy. If number 1 guy dies number 2 guy becomes number 1 guy gets fresh recruit he becomes number 2.

  • @atomicluis
    @atomicluis 3 ปีที่แล้ว

    I’m the OG now... lol

  • @agrawalbansal88
    @agrawalbansal88 4 ปีที่แล้ว

    its good video, but try to avoid voice modulations, its irritating. btw content is quite good

    • @hnasr
      @hnasr  4 ปีที่แล้ว +1

      ankur agrawal I will do better in future videos (with audio quality) apologies

    • @agrawalbansal88
      @agrawalbansal88 4 ปีที่แล้ว

      @@hnasr thanks for quick response :)

  • @gam3955
    @gam3955 3 ปีที่แล้ว

    Good explanation but too long !

  • @vigneshkini9489
    @vigneshkini9489 3 ปีที่แล้ว

    It could have been better.. didn't like the way you sing and dance with the words to explain the concepts..

  • @johnfernandes455
    @johnfernandes455 3 ปีที่แล้ว

    irritiating

    • @hnasr
      @hnasr  3 ปีที่แล้ว

      ❤️

  • @naziaqureshi2563
    @naziaqureshi2563 2 ปีที่แล้ว

    Hi hussein , i wanted to connect with you regarding some queries related to fail over scenarios. Please share your email id