Qhov txawv ntawm Load Balancing thiab Round-robin DNS

Qhov txawv ntawm Load Balancing thiab Round-robin DNS
Qhov txawv ntawm Load Balancing thiab Round-robin DNS

Video: Qhov txawv ntawm Load Balancing thiab Round-robin DNS

Video: Qhov txawv ntawm Load Balancing thiab Round-robin DNS
Video: TOP 10 Most Dangerous Animals In The World (Multilingual Subtitles) 2024, Kaum ib hlis
Anonim

Load Balancing vs Round-robin DNS | Load Balancer vs Round Robin DNS

Load Balancing thiab Round-robin DNS yog siv los faib cov khoom thauj mus rau cov tswv tsev sib txawv lossis cov tes hauj lwm kom ua tiav cov khoom xa tuaj, muaj ntau, thiab thaj chaw xa khoom sai. Feem ntau, nws yog siv nyob rau hauv web raws li internet daim ntawv thov rau saum toj no yog vim li cas. Niaj hnub no, cov txheej txheem tshiab hu ua CDN (Content Delivery Network) tau qhia, tab sis nws tsuas yog tsom rau cov ntsiab lus zoo li qub xwb. CDN yuav tsis muab qhov hloov tshiab tam sim, tshwj tsis yog nws tus tswv tsev synchronization zaus nce.

Load Balancing (Load Balancer)

Load balancers yog daim ntawv thov software lossis cov cuab yeej kho vajtse muab tso rau hauv lub network architecture kom ntsib cov neeg siv sab, pom tseeb tom qab firewall. Yeej, lub load balancer yuav raug muab nrog tus IP chaw nyob rau cov neeg siv kev cuam tshuam nrog kev pabcuam chaw nres nkoj. Piv txwv li, thaum koj tau txais lub web load balancer koj yuav tau txais qhov chaw nyob IP los ntawm tus kws kho mob, nrog rau qhov ntawd tsuas yog koj daim ntawv qhia nrog DNS cov ntaub ntawv. Yog tias koj yuav siv qhov ntawd rau lub vev xaib neeg rau zaub mov, koj yuav tsum tsim qhov chaw nres nkoj 80 hauv cov khoom sib npaug. Tom qab load balancers, koj tuaj yeem muaj sever ua liaj ua teb rau tib cov kev pabcuam nrog tib cov ntsiab lus thiab teeb tsa. Ib feem pua ntawm http thov tuaj rau thauj khoom sib npaug IP yuav muab faib rau cov tswv tom qab lub load balancer raws li tau hais los ntawm koj. Ib yam uas koj yuav tsum tau ua kom paub tseeb yog tias, txhua tus tswv servers tau synchronized nrog tib cov ntsiab lus thiab teeb tsa, ces tsuas yog cov neeg siv yuav tau txais tib cov ntsiab lus.

hom kev tsim vaj tsev no yuav pab peb kom muaj kev txaus siab los ntawm cov tswv lag luam tsis tu ncua. Muaj ob hom load balancers; ib qho yog hauv zos los yog cov ntaub ntawv chaw load balancer thiab lwm qhov yog thoob ntiaj teb load balancer. Nyeem qhov sib txawv ntawm lub ntiaj teb load balancers thiab lub zos los yog cov ntaub ntawv chaw load balancers.

Round-robin DNS

DNS yog Lub Npe Lub Npe Txheej Txheem faib hauv ntau lub databases los muab tib neeg nyeem tau thiab siv tau rau tus tswv. Cov tswv tsev raug txheeb xyuas los ntawm lawv tus IP, thiab lub npe raug muab rau tus IP ntawd hauv DNS server kom tsis txhob nco txog tus IP chaw nyob kom ncav cuag tus tswv tsev. Piv txwv li, thaum koj thov rau qhov sib txawvbetween.com koj lub zos DNS server yuav muab cov ntsiab lus ntawm tus tswv tsev sib txuas lus. Feem ntau, nws yog ib qho chaw nyob IP ntawm qhov sib txawv ntawm lub party.com. Hauv Round-robin DNS, koj tuaj yeem teeb tsa ntau qhov chaw nyob IP tiv thaiv ib lub npe sau npe, thiab cov chaw nyob IP yuav raug muab rau cov neeg siv thov hauv ib puag ncig robin. Ntawm no, lub tshuab computer lossis server tuaj yeem nyob txhua qhov chaw hauv ntiaj teb, uas yog sib npaug rau Ntiaj Teb Load balancer.

DNS teb rau cov lus nug, uas tuaj yeem txhais tau nyob ntawm daim ntawv thov. Feem ntau nws yog nyob rau hauv round robin yam; uas yog, yog tias IP 1 raug muab rau thawj cov lus nug, ces qhov lus nug thib ob yuav tau txais IP 2, thiab lwm yam. Tab sis, koj tuaj yeem txhais qhov no nyob ntawm koj qhov kev xav tau thiab kev siv peev xwm. Yog tias koj lub DNS ntse txaus los txheeb xyuas thaj chaw thaj chaw los ntawm lub sijhawm teb lossis lwm yam txheej txheem, koj tuaj yeem muab tus IP ze tshaj plaws rau cov neeg siv khoom hauv cheeb tsam ntawd.

Qhov txawv ntawm Load Balancer thiab Round-robin DNS yog dab tsi?

(1) Peb tuaj yeem ua tiav IP chaw nyob thiab tus lej chaw nres nkoj zais hauv cov khoom sib npaug, tab sis peb tsis tuaj yeem ua qhov ntawd hauv DNS txoj kev.

(2) DNS txoj kev, qee zaum, yuav tsis ua haujlwm vim qee tus neeg muab kev pabcuam siv DNS caching, uas tsis tau txais tus IP tshiab rau tus neeg thov kev thov thiab coj mus rau tib tus IP, tab sis hauv cov khoom sib npaug no yuav tsis muaj teeb meem..

(3) DOS, DDOS tawm tsam yuav tsis cuam tshuam ncaj qha rau tus tswv servers, hloov pauv nws yuav cuam tshuam rau kev thauj khoom sib npaug IP, thaum hauv DNS txoj kev nws yuav ncaj qha ntaus tus tswv server.

(4) Hauv txoj kev thauj khoom sib npaug, load balancer siv ib qho kev sib txuas TCP rau ntau qhov kev thov HTTP, uas yuav txo tau cov kev sib txuas ntawm lub network thiab cov neeg rau zaub mov hla lub taub hau kom taug qab TCP ntu, hos hauv DNS txoj kev no tsis muaj feem xyuam.

(5) Hauv HTTPS, SSL encryption thiab decryption siv CPU ntau dua, thiab qhov kev thauj khoom no tuaj yeem yooj yim los ntawm kev thauj khoom sib npaug thiab cia tus tswv servers ua lawv txoj haujlwm; qhov no kuj tsis tuaj yeem ua tiav hauv txoj kev DNS.

(6) Qee cov khoom sib npaug tuaj yeem muaj qhov chaw caching, thiab muab cov neeg siv nrog cov ntsiab lus cached yam tsis muaj teeb meem rau host servers. Qhov no yuav ua rau kom ceev ceev ntawm lub sij hawm teb ceev.

(7) Nyob rau hauv Load balancers, load balancer polls host server's he alth condition, and if server is dead, it will remove the serving poll and distribute the load of others, uas tseem tsis muaj nyob rau hauv DNS txoj kev.

(8) Load balancer yog ib qho ntawm qhov tsis ua haujlwm, qhov twg hauv DNS txoj kev, feem ntau, DNS cov ntaub ntawv yuav raug hloov kho thoob plaws lo lus hauv hierarchical thiab cached hauv zos DNS, uas yuav pab daws qhov IP sai dua.

Pom zoo: