ufraan

3 posts

ufraan

ufraan

@ufraaaan

given enough eyeballs, all bugs are shallow.

Katılım Mayıs 2020
708 Takip Edilen39 Takipçiler
Ram
Ram@ramxcodes·
#100_cans Giveaway Winners Announcement Top 5'ves (Winning 12 Cans) 1. Pratham Yadav \ @iiprathamyadav Project Link: metamax-alpha.vercel.app Built MetaMax — a performance auditing website. 2. Mitali Sinha \ @kayleecodez Project Link: github.com/Kayleexx/tsuki Built Tsuki — A Tiny self hosted deployment platform built in Rust. 3. Ufraan \ @ufraaaan Project Link: github.com/ufraaan/tex-le… Built TexLeaf — A web-based LaTeX editor with real-time preview, syntax highlighting, and PDF compilation. 4. Nijeesh NJ \ @nijeeshnj Project Link: github.com/codebyNJ/AdenV… Built AdenVault — A personal CLI password manager. 5. Aditya Yadav \ @adityadotdev Project Link: fasturl.in Built FastURL — a URL shortening platform.
Ram tweet media
English
15
2
59
4.3K
ufraan
ufraan@ufraaaan·
@arpit_bhayani when the VIP switches from the failed master to the backup, whats actually doing the switching under the hood? like is it purely keepalived updating some config or is there a network level mechanism involved?
English
0
0
0
351
Arpit Bhayani
Arpit Bhayani@arpit_bhayani·
Yes, when the active node goes down, the passive (backup) node takes over - but how exactly? How are they configured? BTW, this is where keepalived comes in. Let's dig deeper into the nuances. Keepalived is used to create a virtual IP. This IP automatically follows your healthy instances, and clients use this virtual IP to connect to the healthy instance. Keepalived implements the VRRP protocol, where multiple instances share a virtual IP address (their actual IP addresses would be different). The instance with the highest priority becomes the master and owns the VIP, while the others stay as backups (passive). After configuring keepalived, the master node sends heartbeat advertisements every second to the multicast IP, and backup nodes listen for these packets. When the master fails, the backup detects silence after ~3 seconds and promotes itself, moving the VIP instantly. When a failover occurs, the new master announces that it now owns the virtual IP, updating all switch MAC tables immediately. Clients connecting to the VIP seamlessly reach whichever instance is currently healthy. Thus, your load balancer or clients always connect to the same virtual IP regardless of which physical instance is serving - no DNS changes, connection resets, or manual intervention during failures. So, three important keywords here - virtual IP, VRRP, and keepalived. Use your favorite LLM to dig deeper into the configuration and actually see seamless failover in action.
English
7
8
210
15K
ufraan
ufraan@ufraaaan·
hi twitter
English
1
0
4
241