Dab tsi yog pawg MongoDB?
Dab tsi yog pawg MongoDB?

Video: Dab tsi yog pawg MongoDB?

Video: Dab tsi yog pawg MongoDB?
Video: yog hmoov dab tsi tub huas xyooj 2024, Kaum ib hlis
Anonim

38. Ib mongodb pawg yog lo lus feem ntau siv rau sharded pawg hauv mongodb . Lub hom phiaj tseem ceeb ntawm sharded mongodb yog: Scale nyeem thiab sau nrog ntau lub pob. Txhua lub node tsis tuav tag nrho cov ntaub ntawv yog li koj tuaj yeem cais cov ntaub ntawv raws tag nrho cov nodes ntawm shard.

Tom qab ntawd, Sharded pawg yog dab tsi?

Ib MongoDB sharded pawg muaj cov nram qab no Cheebtsam: shard: Txhua shard muaj ib tug subset ntawm cov sharded cov ntaub ntawv. Raws li MongoDB 3.6, shards yuav tsum tau muab xa mus raws li cov txheej txheem replica. mongos: Lub mongos ua raws li cov lus nug router, muab kev sib txuas ntawm cov neeg siv khoom thiab cov sharded pawg.

Tom qab ntawd, lo lus nug yog, MongoDB Atlas pawg yog dab tsi? MongoDB Atlas yog ib tug tag nrho-tswj huab database tsim los ntawm tib neeg uas tsim MongoDB . Atlas ua haujlwm txhua qhov nyuaj ntawm kev xa tawm, tswj, thiab kho koj cov kev xa tawm ntawm huab cua uas koj xaiv (AWS, Azure, thiab GCP). Ua raws li cov txuas hauv qab no kom pib. Tso koj thawj zaug pub dawb pawg.

Ib yam li ntawd, dab tsi yog pawg hauv nws?

1) Hauv computer system, a pawg yog ib pab pawg ntawm cov servers thiab lwm yam kev pabcuam uas ua haujlwm zoo li ib qho system thiab ua kom muaj kev txaus siab thiab, qee zaum, kev sib npaug thiab kev ua haujlwm sib luag. Txhua cov ntaub ntawv khaws cia rau ntawm lub hard disk yuav siv li ib lossis ntau dua pawg ntawm cia.

MongoDB replica yog dab tsi?

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

Pom zoo: