Thuta Learning
ရှာဖွေရန်
Redis
ExercisesData & Databasesbeginner

Exercise — Memory၊ Latency နှင့် Failover Incident

ဒီခန်းပြီးရင် ဘာတတ်သွားမလဲ

  • Exercise — Memory၊ Latency နှင့် Failover Incident concept ကို နားလည်ရှင်းပြနိုင်ရန်
  • နမူနာ Redis command/code ကို ကိုယ်တိုင် run ပြီး output စစ်နိုင်ရန်
  • Tutorial Platform project နှင့် production scenario တွင် မှန်ကန်စွာအသုံးချနိုင်ရန်

နားလည်ထားရမယ့် အချက်

Incident response တွင် change freeze၊ user impact၊ timeline နဲ့ hypotheses ကိုခွဲထားရပါတယ်။ Redis `INFO` sections၊ latency tools၊ slow log၊ client connections၊ key samples၊ persistence/replication state ကို low-impact အစဉ်ဖြင့်စစ်ရပါတယ်။ Mitigation နဲ့ root-cause fix ကိုခွဲပြီး data-loss window ကိုမဖုံးကွယ်ရပါ။

လက်တွေ့ scenario နဲ့ ချိတ်ကြည့်မယ်

Scenario: memory 95%၊ evictions 50k/min၊ p99 800ms၊ AOF rewrite၊ replica lag 20s၊ leader restart နောက် sessions ပျောက်သည်။ First 15 minutes actions၊ commands၊ stop conditions၊ traffic shedding၊ failover/restore decision နဲ့ stakeholder update ရေးမယ်။

အတူတူ စမ်းရေးကြည့်မယ်

shell
INFO memory
INFO stats
INFO persistence
INFO replication
SLOWLOG GET 20
LATENCY LATEST
CLIENT LIST
MEMORY STATS
You should see
Low-impact evidence bundle နဲ့ prioritized incident decision tree ရမည်။

၅ မိနစ် စမ်းကြည့်

Incident timeline၊ five hypotheses၊ confirm/refute signal၊ immediate fix နဲ့ prevention actions ရေးပါ။

သတိလေးတစ်ချက်

Pressure အချိန် production ပေါ် `KEYS *`၊ full dump သို့ untested failover မလုပ်ပါနှင့်။ Blast radius တိုးနိုင်ပါတယ်။

Redis — Latency MonitoringRedis

ဒီနေရာမှာ လူအများမှားတတ်တယ်

  • Pressure အချိန် production ပေါ် `KEYS *`၊ full dump သို့ untested failover မလုပ်ပါနှင့်။ Blast radius တိုးနိုင်ပါတယ်။
  • နမူနာ command ကို production Redis ပေါ် တိုက်ရိုက်မစမ်းဘဲ local/test instance နဲ့ recoverable data ပေါ်တွင် အရင်အတည်ပြုပါ။

လေ့ကျင့်ခန်း

Incident timeline၊ five hypotheses၊ confirm/refute signal၊ immediate fix နဲ့ prevention actions ရေးပါ။

You'll know it worked when: Low-impact evidence bundle နဲ့ prioritized incident decision tree ရမည်။

Exercise — Memory၊ Latency နှင့် Failover Incident | Thuta Learning