📝 Section Review: Load Balancing
اہم نکاتKey TakeawaysKey Takeaways
- Global LB کا ایک anycast IP دنیا بھر میں کام کرتا ہے؛ regional LB صرف اپنے ریجن میںGlobal LB ka ek anycast IP duniya bhar mein kaam karta hai; regional LB sirf apne region meinA global LB's anycast IP works worldwide; a regional LB works only in its region
- Health check بتاتا ہے کون سی VM زندہ ہے — بیمار VM کو ٹریفک نہیں ملتاHealth check batata hai kaun si VM zinda hai — beemar VM ko traffic nahi miltaThe health check tells which VM is alive — an unhealthy VM gets no traffic
- Backend service، VM گروپ کو health check سے جوڑتی ہے — LB اسی کی طرف ٹریفک بھیجتا ہےBackend service, VM group ko health check se jorti hai — LB isi ki taraf traffic bhejta haiThe backend service binds the VM group to the health check — the LB sends traffic to it
- Forwarding rule، ریزرو IP کو target proxy سے جوڑتی ہے — یہی LB کا داخلہ ہےForwarding rule, reserve IP ko target proxy se jorti hai — yehi LB ka dakhla haiThe forwarding rule binds the reserved IP to the target proxy — this is the LB's entry point
- Health-check فائر وال رینجز (130.211.0.0/22، 35.191.0.0/16) کی اجازت لازمی ہےHealth-check firewall ranges (130.211.0.0/22, 35.191.0.0/16) ki ijazat lazmi haiAllowing the health-check firewall ranges (130.211.0.0/22, 35.191.0.0/16) is mandatory
خود جانچ (مشق)Self-Check (Practice)Self-Check (Practice)
یہ مشقی سوالات ہیں، امتحانی سوالات نہیں۔These are practice questions, not exam questions.These are practice questions, not exam questions.
❓ Global اور regional LB میں IP کا کیا فرق ہے؟Global aur regional LB mein IP ka kya farq hai?What is the IP difference between global and regional LB?
Global کا IP global (anycast) ہوتا ہے؛ regional کا IP صرف اسی ریجن کا ہوتا ہے۔Global ka IP global (anycast) hota hai; regional ka IP sirf usi region ka hota hai.Global's IP is global (anycast); regional's IP belongs to that region only.
❓ یہ صرف مشق ہے، امتحانی سوال نہیں: LB 502 دے رہا ہے — سب سے ممکنہ وجہ؟Yeh sirf mashq hai, imtihani sawal nahi: LB 502 de raha hai — sab se mumkinah wajah?Practice only, not an exam question: the LB returns 502 — the most likely cause?
کوئی healthy backend نہیں — health check فیل ہو رہا ہے یا health-check رینجز فائر وال میں بند ہیں۔Koi healthy backend nahi — health check fail ho raha hai ya health-check ranges firewall mein band hain.No healthy backend — the health check is failing or the health-check ranges are blocked in the firewall.
❓ URL map کس کام آتا ہے؟URL map kis kaam aata hai?What is a URL map for?
یہ طے کرتا ہے کہ کون سا راستہ (مثلاً /api) کس backend service کو جائے گا۔Yeh tay karta hai ke kaun sa rasta (masalan /api) kis backend service ko jayega.It decides which path (e.g. /api) goes to which backend service.
❓ ایک VM بند کرنے پر ٹریفک کہاں جائے گا؟Ek VM band karne par traffic kahan jayega?If one VM is stopped, where does traffic go?
صرف صحت مند VMs پر — health check بیمار VM کو خود بخود ٹریفک سے باہر کر دیتا ہے۔Sirf sehatmand VMs par — health check beemar VM ko khud bakhud traffic se bahar kar deta hai.Only to healthy VMs — the health check automatically removes the unhealthy VM from traffic.