Dab tsi yog kev siv arbiter hauv MongoDB?
Dab tsi yog kev siv arbiter hauv MongoDB?

Video: Dab tsi yog kev siv arbiter hauv MongoDB?

Video: Dab tsi yog kev siv arbiter hauv MongoDB?
Video: MISSION ON FIRE: 666 Number of the Beast. 2024, Kaum ib hlis
Anonim

Ib Arbiter tshwj xeeb yog tsim los tsim kom muaj "kev tsis sib haum xeeb" lossis feem ntau ntawm ib sab kom tus thawj coj tuaj yeem raug xaiv nyob rau hauv rooj plaub no. Yog tias koj tau txais ib tus lej ntawm cov nodes ntawm ob sab MongoDB yuav tsis xaiv tus thawj thiab koj lub teeb yuav tsis lees txais cov ntawv sau.

Yog li ntawd, dab tsi yog qhov kev ua haujlwm ntawm tus arbiter node?

Arbiter nodes tsis txhob khaws tej ntaub ntawv; lawv muaj nuj nqi yog los muab kev pov npav ntxiv rau hauv cov kev xaiv tsa replica. Qhov tsawg kawg nkaus yuav tsum tau rau MongoDB pawg yog kom muaj tsawg kawg yog ob nodes : ib tug thawj thiab ib tug thib ob node . Cov txheej txheem replica tuaj yeem muaj txog 50 nodes , tab sis tsuas yog 7 tus neeg tuaj yeem xaiv tsa.

Tsis tas li ntawd, replication ua haujlwm li cas hauv MongoDB? MongoDB - Rov ua dua . Replication yog cov txheej txheem ntawm synchronizing cov ntaub ntawv hla ntau lub servers. Rov ua dua muab redundancy thiab nce cov ntaub ntawv muaj nrog ntau cov ntawv theej ntawm cov ntaub ntawv ntawm cov servers sib txawv. Rov ua dua kuj tso cai rau koj rov qab los ntawm hardware tsis ua hauj lwm thiab kev pab cuam cuam tshuam.

Tom qab ntawd, lub hom phiaj ntawm arbiter nyob rau hauv replica teeb yog dab tsi?

Arbiter . Ib arbiter tsis khaws cov ntaub ntawv, tab sis kom txog rau thaum lub cov arbiter mongod txheej txheem yog ntxiv rau lub replica teev , cov arbiter yuav ua zoo li lwm yam mongod txheej txheem thiab pib nrog ib teeb ntawm cov ntaub ntawv cov ntaub ntawv thiab nrog ib daim ntawv teev tag nrho.

Dab tsi yog replica hauv MongoDB?

A luam tawm teem rau hauv MongoDB yog ib pab pawg mongod txheej txheem uas tswj cov ntaub ntawv tib yam. Rov ua dua cov txheej txheem muab redundancy thiab muaj siab, thiab yog lub hauv paus rau tag nrho cov ntau lawm deployments. Ntu no qhia txog replication hauv MongoDB as well as lub Cheebtsam thiab architecture ntawm luam tawm teeb.

Pom zoo: