Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Patroni + etcd PostgreSQL HA in Docker | Auto Failover 🐘 #docker #postgresql #etcd #highavailability
Play lesson

πŸš€ Docker Tutorial for Beginners | Master Containers & Modern DevOps 🌐🐳 - Patroni + etcd PostgreSQL HA in Docker | Auto Failover 🐘 #docker #postgresql #etcd #highavailability

5.0 (0)
10 learners

What you'll learn

This course includes

  • 5.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Build a full Patroni + etcd PostgreSQL HA cluster in Docker with automatic failover, end-to-end. πŸ˜βš™οΈπŸ˜ We’ll do everything on Ubuntu 24.04 LTS (your server, e.g. 192.168.136.128) using Docker + Docker Compose. ## πŸ” Optional: Bring Old Node Back as Replica You can wipe node1-data/ and rejoin node1 as a fresh Patroni member (it will clone from current leader automatically), but for this tutorial the key is: * etcd + Patroni coordinate cluster state * One leader, one replica * Leader crash β†’ automatic promotion * Data preserved and new writes possible ## 🧾 Quick Recap (great for your slide) 1. Build Patroni+Postgres image from postgres:16 2. Run etcd as DCS in Docker 3. Configure two Patroni nodes via YAML (scope, etcd, bootstrap, postgresql) 4. Start cluster with docker compose up -d 5. Test leader/replica with psql and pg_is_in_recovery() 6. Simulate failure by stopping leader container β†’ Patroni promotes replica automatically -------------------------------------------------------------------- ######## ⚠️ Disclaimer / ΰ€…ΰ€Έΰ₯ΰ€΅ΰ₯€ΰ€•ΰ€°ΰ€£ ######## 1️⃣ All trademarks, logos, and names belong to their respective owners. 2️⃣ This video is made only for educational & informational purposes under Fair Use (Section 107, Copyright Act 1976). 3️⃣ No copyright infringement intended. 4️⃣ For any copyright concerns, email πŸ“© [email protected] β€” action will be taken promptly. ## 🌐 πŸ‘‡ Follow & Support: πŸŽ₯ YouTube: https://www.youtube.com/@ChiragMahtoOfficial πŸ“· Instagram: https://www.instagram.com/chirag_._mahto πŸ’Ό LinkedIn: https://linkedin.com/in/chittrmahto πŸ“˜ Facebook: https://www.facebook.com/chittrmahto πŸ’¬ WhatsApp Channel: https://whatsapp.com/channel/0029VbBgm16002T93KB16U12 πŸ’¬ Telegram Channel: https://t.me/+GAATbmOU4z1mMDY9 πŸ“˜ Note: Follow the process exactly as shown in the video. πŸ’Ύ DM me for paid PDF/Document β†’ πŸ“© [email protected] ✨ Share this tutorial with your friends & colleagues! πŸ’¬ Drop your questions in the YouTube comments β€” I’ll reply personally. πŸ”” Subscribe for FREE tutorial and Certification Tutorials! πŸ”₯ Don’t forget to πŸ’› LIKE, πŸ’˜ SHARE, πŸ’ COMMENT, & πŸ’™ SUBSCRIBE to @ChiragTutorial πŸ’― Thanks & Regards, πŸ’« Chitt Ranjan Mahto β€” β€œCHIRAG” πŸ’« 🌍 https://www.chirags.in #chiragtutorial #chirag #chittranjanmahto #chiragmahto #postgresql #patroni #etcd #docker #highavailability #autofailover #dbacluster #postgresha #devops

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere