[ MongoDB 6 ] How to Deploy a MongoDB ReplicaSet

[ MongoDB 6 ] How to Deploy a MongoDB ReplicaSet

Just me and Opensource

4 года назад

57,750 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@josuedegbun6270
@josuedegbun6270 - 28.11.2023 14:12

the greatest video about MongoDB i ever watch

Ответить
@vuat1494
@vuat1494 - 27.10.2023 07:08

Hey Bro
You forgot an experiment in this Lab
mongodb replica set with 3 Nodes will be very good but if 1 of 3 Nodes die then there is no problem. But if 2 out of 3 nodes, an even number, die, you know the consequences. Without a Primary Node, what will you do now?
And the next thing is that the Primary's job is divided among the Slave Nodes. But the main responsibility is still the Primary Node. Suppose at some point your Primary Node is Full Disk and your system resources cannot be scaled vertically, what do you plan to do with your MongoDB Cluster?.
Please give me your answer as soon as possible. Thanks!!!

Ответить
@josephuzuegbu7431
@josephuzuegbu7431 - 01.05.2023 17:32

Nice video. @Just me and Opensource can you show how you set-up docker

Ответить
@jrosimo098
@jrosimo098 - 22.04.2023 17:13

I just found this video, i couldve saved hours from the things i did which is only 12 minutes in this videos creating a replica set with 3 instances of mongdb. Wow! im gonna watch the whole series now. Thank you so much!

Ответить
@sambasiva1702
@sambasiva1702 - 27.01.2023 12:33

Excellent..do you have any video to show cross region replication for mongodb 3 pods?

Ответить
@pmg83
@pmg83 - 20.01.2023 07:18

There does not seem to be mongo services deployed on docker swarm , just separate mongodb containers on different hosts. Mapping in /etc/hosts also seems counter productive , because it implies you always want mongo0 on hostA , mongo1 on hostB and mongo2 on hostC. That is not how services deployed on docker swarm work - mongo0 , mongo1 and mongo2 as services could be deployed randomly on hostA or hostB or hostC.

Ответить
@ahmettortumlu9285
@ahmettortumlu9285 - 14.06.2022 17:47

But what is the replicaset and what if we want to create rs1 and rs2, another question why can we need rs"n" ?

Ответить
@Haile1Selassie
@Haile1Selassie - 11.06.2022 18:01

thanks)

Ответить
@mks2443
@mks2443 - 31.03.2022 20:04

Is there any gui tool to setup replication rather than running through manual procedures?

Ответить
@jaypdevaney
@jaypdevaney - 30.03.2022 16:46

I love your videos. Great quality work and very useful and practical. Thanks!

Ответить
@jameswongleongyew6098
@jameswongleongyew6098 - 28.03.2022 09:07

Hi, using the local server with three instances without issue, but if have three separate servers, facing node not found error. Are you able to advice? Thank you.

Ответить
@phanindrakumarkondeti2590
@phanindrakumarkondeti2590 - 15.03.2022 11:04

Hi bro thank you for this very explanatory . how to bind multiple ip address

Ответить
@ahfa7983
@ahfa7983 - 04.03.2022 15:50

How to force secondry to become primery

Ответить
@atruismoti2402
@atruismoti2402 - 30.01.2022 20:56

Awesome Thank's

Ответить
@achyuthvishwamithra
@achyuthvishwamithra - 14.01.2022 04:34

Great job Venkat, this is really helpful!

Ответить
@mostaphaghribi7512
@mostaphaghribi7512 - 01.01.2022 15:32

thankkkkkkkkssss you are literally a life saver <3

Ответить
@deepakshah4037
@deepakshah4037 - 13.12.2021 08:09

very nice video

Ответить
@giovanni.piedimonte
@giovanni.piedimonte - 09.12.2021 17:53

Hi very good tutorial thanks. A question how to enable authentication into a replicaset? Only on primary and how using a docker? Thanks.

Ответить
@xuantungtrinh5584
@xuantungtrinh5584 - 15.11.2021 05:14

Great demonstration. Thank you for the video!

Ответить
@kingsite8328
@kingsite8328 - 19.09.2021 12:36

Do we have to install docker on each machine (mongodb0...)

Ответить
@mackynikat8833
@mackynikat8833 - 20.07.2021 14:24

. bos i subscribed to your channel , now already had another one to depend at times like this . got ur back

Ответить
@1487atul
@1487atul - 09.07.2021 15:37

why ddn't you use

rs.add("ServerB")
rs.add("ServerC")

Ответить
@1487atul
@1487atul - 09.07.2021 15:23

what is the difference between
rs.initiate()
vs
rs.initiate( {
_id : "rs0",
members: [
{ _id: 0, host: "localhost:27017" },
{ _id: 1, host: "localhost:27018" },
{ _id: 2, host: "localhost:27019" }
]
})





what is the condition of both cases.

Ответить
@1487atul
@1487atul - 09.07.2021 14:55

hi Sir,

I am getting some different message of the command rs.status()


rs.status()
{
"ok" : 0,
"errmsg" : "not running with --replSet",
"code" : 76,
"codeName" : "NoReplicationEnabled"
}


What is the meaning of this ?

Ответить
@vipinkoul595
@vipinkoul595 - 27.06.2021 21:09

Awesome!

Ответить
@milonhossain4554
@milonhossain4554 - 27.06.2021 13:28

Thanks a lot!

Ответить
@VenkateshMogili
@VenkateshMogili - 09.06.2021 01:20

Thank you bro, got the clear idea on mongodb replica set.👍

Ответить
@davidb.3266
@davidb.3266 - 01.06.2021 02:28

Thank you so much

Ответить
@revellipraveen6902
@revellipraveen6902 - 25.05.2021 13:43

Hi venkat I am from India..the explanation was really great but I have one doubt: I have converted my standalone to replica sets in windows lastday but today after restarting my system

1.I am unable to Rerun my replica sets(getting this error: connect failed to replica set myReplicaSet/localhost:27017,localhost:27027,localhost:27037).

2.when I run my primary node(27017)..it is telling me that " "errmsg" : "This node was not started with the replSet option" when i typed rs.status() and also giving throwing as "Document(s) exist in 'system.replset', but started without --replSet."


PLEASE HELP ME VENKAT

Ответить
@sreekanthadari1
@sreekanthadari1 - 19.05.2021 16:55

Wonderful, appriciate the efforts to help

Ответить
@mdellertson
@mdellertson - 29.04.2021 07:34

Great video thanks for sharing! Do you need to have a minimum of three servers to configure a replica set? Or can I set one up with only two?

Ответить
@DunSety
@DunSety - 24.04.2021 16:55

Thank you from Russia))

Ответить
@burakkartal6666
@burakkartal6666 - 20.03.2021 12:34

This is gold. Thank you..

Ответить
@skkummetha
@skkummetha - 28.02.2021 16:51

Hi Venkat,
Thanks for nice video. I did mongodb replica set by seeing your vidoe, however noticed secondary node asks to run rs.slaveOk() command before run any command when i connects to its(secondary node) mongo shell. Could you please let me know is this expected beheaviour.

Ответить
@anushapulichintha3709
@anushapulichintha3709 - 20.01.2021 07:44

Hi , thanks for the great tutorial. is it possible to get the docker file that you used for this deployment?

Ответить
@azadpoursadegh9761
@azadpoursadegh9761 - 12.01.2021 21:45

awesome thanks.

Ответить
@asdfasdfwae
@asdfasdfwae - 12.01.2021 15:34

Shut up and take my subscribe

Ответить
@foued7155
@foued7155 - 22.12.2020 15:38

thank you for this very explanatory tutorial.
I have a question: can we just use 2 machines for replication or 3 machines is the minimum?
I can't find anything about it in the documentation
Thanks.

Ответить
@djosefandersson7605
@djosefandersson7605 - 19.12.2020 22:14

thanks , really clever explanation!

Ответить
@nimaiahluwalia5678
@nimaiahluwalia5678 - 16.12.2020 11:51

Hello, I had a question that can we set up sync or replication between my on-prem MongoDB server and my azure VM MongoDB server.

Ответить
@snv94
@snv94 - 01.12.2020 15:50

Why I got "writeConcern is not allowed within a multi-statement transaction" when trying the "multi-document transaction". I ran in on primary node. Please help!

Ответить
@swatisharma4676
@swatisharma4676 - 01.12.2020 01:23

How to update hosts

Ответить
@nikolabozic3918
@nikolabozic3918 - 26.11.2020 16:39

Thanks for very helpful video. I have one confusion When you connected to first mongo instance and did rs.initiate() In mongo prompt appears that is secondary but after you rs.status() it shows that node is primary?

Ответить
@pranabbharali3787
@pranabbharali3787 - 06.11.2020 14:19

I have two secondary server.both are not syncing.
They are on rs0:other mode instead of rs0: secondary.
Please help.
8876856851
Whatsapp please

Ответить
@leonardoanez217
@leonardoanez217 - 28.10.2020 01:31

As always - phenomenal video Venkat!! You're the best buddy :)

Ответить
@nikhilrajan2370
@nikhilrajan2370 - 23.09.2020 11:38

what would be connecting string if we wanted to connect to this same replica set using the mongsqld commands
i used './mongosqld --mongo-uri "mongodb://mongo-0.mongo:27017,mongo-1.mongo:27017,mongo-2.mongo:27017/?replicaSet=rs0&readPreference=secondary"'
and i am getting the error current topology: Type: ReplicaSetNoPrimary, unable to discover

Ответить
@rajeshkunda6704
@rajeshkunda6704 - 19.09.2020 07:28

Hi Venkat, these mongodb series are very very useful and clearly explained many things. Can you please make some videos on Mysql DB. Thanks.

Ответить