Setup MongoDB for Production deployment - Replica Sets cluster

Setup MongoDB for Production deployment - Replica Sets cluster

Mafia Codes

3 года назад

68,218 Просмотров

In this video you will learn how to setup #mongodb for #production. We will be creating a #cluster of mongodb using #replicaset, which is the recommended way to #deploy mongodb for production. Replica sets allow you to have #high-availability, #load-balancing and data is replicated in separate mongodb instances running on different machines.

--------------------------------------------------------------------------
More on MongoDB
--------------------------------------------------------------------------
MongoDB Tutorial: https://youtu.be/liocKBCVJyw
MongoDB inside Docker: https://youtu.be/uklyCSKQ1Po
Installation on Windows: https://youtu.be/hQLRCzLHYMM
Installation on Mac: https://youtu.be/GTuJ1p7gpx4

--------------------------------------------------------------------------
🚀Deploy apps: https://zeet.co/r/yourstruly
(One FREE project forever 😘)
--------------------------------------------------------------------------
📦FREE $100 credit @Digital Ocean: https://m.do.co/c/3208f08b3324
Subscribe: https://www.youtube.com/c/yourstruly267?sub_confirmation=1
--------------------------------------------------------------------------
💵Support the channel:
Paypal: https://www.paypal.me/trulymittal
Patreon: https://www.patreon.com/trulymittal
--------------------------------------------------------------------------
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=yourstruly&utm_content=description-only
--------------------------------------------------------------------------

======================
✔ Other useful Playlists
======================
#RestAPI (#NodeJS and MongoDB): https://www.youtube.com/playlist?list=PLdHg5T0SNpN3EoN3PEyCmPR42Ok_44OFT
#API Authentication using #JWT: https://www.youtube.com/playlist?list=PLdHg5T0SNpN0ygjV4yGXNct25jY_ue70U
#Firebase: https://www.youtube.com/playlist?list=PLdHg5T0SNpN2NimxW3piNqEVBWtXcraz-
Docker: https://www.youtube.com/playlist?list=PLdHg5T0SNpN0gFlL8AXvZdAHsvpkuW0Ba
MongoDB: https://www.youtube.com/watch?v=liocKBCVJyw&t=7s
Html/Css/Js: https://www.youtube.com/playlist?list=PLdHg5T0SNpN0saXVT9gfb2MESkiHG8YbP
Android: https://www.youtube.com/playlist?list=PLdHg5T0SNpN2cv8zhK-zQx2qXfJKap9kU
Challenges: https://www.youtube.com/playlist?list=PLdHg5T0SNpN20F2v0xYWeLRZtdehexzDi

#yoursTRULY #tutorial #howto #nodejs #android

Тэги:

#How_do_deploy_cluster_in_mongodb #What_is_a_a_mongodb_cluster #Mongodb_for_production #how_to_setup_mongodb_for_production #how_to_setup_replica_sets_in_mongodb #what_is_a_replica_set #what_is_a_sharded_cluster
Ссылки и html тэги не поддерживаются


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

@enesdogan1801
@enesdogan1801 - 09.12.2023 20:15

It works perfectly in local. What about if we work on mongoDB Atlas or server?

Ответить
@MayankMishra-oy5xe
@MayankMishra-oy5xe - 25.11.2023 08:17

But what happens to the mongodb running at 27017? Whats is purpose now?

Ответить
@tareqmahmud3902
@tareqmahmud3902 - 19.11.2023 23:54

I couldn't solve this issue
"msg":"Failed to refresh key cache","attr":{"error":"NotYetInitialized: Cannot use non-local read concern until replica set is finished initializing.","nextWakeupMillis":4400}}

this never goes away

Ответить
@hinditech4143
@hinditech4143 - 11.11.2023 09:35

Add authentication in it as well. Things get messy when you need to add keyfile

Ответить
@saisatya3569
@saisatya3569 - 18.10.2023 20:56

In windows also same process or not? Sir

Ответить
@mrspecial3170
@mrspecial3170 - 18.10.2023 03:09

Which terminal do you to write the code ??

Ответить
@alamjamal
@alamjamal - 08.08.2023 22:34

Is it possible to have a localhost and atlas replicaset??

Ответить
@BaharKeshavarz
@BaharKeshavarz - 06.08.2023 11:06

Thank you. It was truly amazing. I really appreciate the way you explain everything in details.

Ответить
@utubetvux5170
@utubetvux5170 - 18.07.2023 14:20

Production without authentication?

Ответить
@dsowriraj9450
@dsowriraj9450 - 12.06.2023 18:44

Beautifully explained.

Thanks

Ответить
@spacecorp1669
@spacecorp1669 - 07.06.2023 23:48

Doesn't Work !

Ответить
@josephuzuegbu7431
@josephuzuegbu7431 - 28.05.2023 20:46

I just watched the best mongodb video.

Ответить
@senkottuvelan
@senkottuvelan - 11.05.2023 10:39

You are really awesome man ☺️. I have a question man. Will the application we design that uses the DB know that it is having a failover setup or it will have zero knowledge on that. What I mean is which url should I specify to connect to the mongodb cluster so that it doesn't matter whichever instance goes down. It may be a noob question but please help with that if possible. Thank you.

Ответить
@AbiodunSam
@AbiodunSam - 04.04.2023 18:18

How can you use database in production with credential?
This shouldn't be titled production, but development.

Ответить
@amitnota5189
@amitnota5189 - 16.03.2023 08:13

abee tujhe hindi nhi aati kya ?

Ответить
@rajeshaltavista6571
@rajeshaltavista6571 - 25.01.2023 10:20

Thanks so much. Well explained.

Ответить
@KoljaMineralka
@KoljaMineralka - 06.12.2022 10:17

I have a situation where Primary and Secondary1 wen down so all I have is Secondary0, I deployed three new servers Primary,Secondary0 and Secondary1 how would I replicate data from old Secondary0 that is still available but didn't become primary ?

Ответить
@marzukzarir
@marzukzarir - 30.10.2022 08:28

Thank you. But I have a question. If one node goes down, after sometimes it backs again....will it contain the same data as other nodes?

Ответить
@sebastiandahlstrom4971
@sebastiandahlstrom4971 - 01.09.2022 16:12

wow! Good shit man, big thanks for this great explanation!

Ответить
@venraviutube
@venraviutube - 27.07.2022 04:05

how to restore backup from a different server to newserver with data loaded to a specific folder

Ответить
@pxft475
@pxft475 - 01.06.2022 14:52

Magnifico!

Ответить
@BabluKumar-jy8bn
@BabluKumar-jy8bn - 29.05.2022 07:29

Thanks for making the video so comprehensive.
but also let me know

HOW TO MAKE SECONDARY NODE AS A PRIMARY NODE MANUALLY?

Ответить
@yannguigui3701
@yannguigui3701 - 13.05.2022 21:59

Thanks a lot for your explantation, You are the best. I'm a beginner in MongoDB , I understand

Ответить
@matheusscheffer5463
@matheusscheffer5463 - 09.05.2022 17:01

Which terminal are you using?

Ответить
@georgelza
@georgelza - 27.04.2022 09:11

... I assume to have a shared setup with a cluster you will first be creating a 2 way or 3 way or x way shared setup and then as a 2nd step take each of the masters and add replicas for the ?
do you have an example of such.

Ответить
@tharun8164
@tharun8164 - 22.04.2022 12:37

How do we set the read preferences? How do we verify the read preferences?

Ответить
@naveedalirehmani4135
@naveedalirehmani4135 - 19.04.2022 22:24

This video is pure Gold!...
I am so happy that I found this video, bro you are amazing thank you very much! 💙
and no I will never scream Chuck Norris' name during sex, This will never happen 😂

Ответить
@jeffreyhunter4115
@jeffreyhunter4115 - 14.04.2022 18:55

Great tutorial. Very well organized. Thanks for sharing.

Ответить
@VK-fr5mc
@VK-fr5mc - 14.04.2022 04:36

Thank You !! 🙏🙏🙏

Ответить
@MursaleenMomin
@MursaleenMomin - 11.04.2022 12:01

Great quality, well explained.

Ответить
@rishiktiwari
@rishiktiwari - 29.03.2022 00:55

Simply Excellent!

Ответить
@himanish2006
@himanish2006 - 14.03.2022 11:38

Please explain encryption also for production ready...

Ответить
@adelminayi
@adelminayi - 13.03.2022 13:09

How can i set authorization for mongo-query-router node in mongo cluser? Specially for mongos
i want to restrict users to connect query-router

Ответить
@AhmedRakibImran
@AhmedRakibImran - 01.03.2022 21:36

great content. Can you please do one for postgresql? Thanks

Ответить
@diwa0071983
@diwa0071983 - 18.02.2022 05:29

That's one seamless explanation. Bravo.

Ответить
@Telmosampaio
@Telmosampaio - 01.02.2022 19:17

Fantastic videooo! You are the man! <3

Ответить
@abhishekjagtap1069
@abhishekjagtap1069 - 22.01.2022 16:03

Do I need to install mongodb enterprise version for this? Or it can also work on the community version?

Ответить
@dungvuanh7162
@dungvuanh7162 - 20.12.2021 14:13

Why you didnt create arb?

Ответить
@sanwalfarooque2747
@sanwalfarooque2747 - 17.12.2021 06:51

Awesome. Thanks <3

Ответить
@megaklis.vasilakis
@megaklis.vasilakis - 08.12.2021 01:43

Perfect tutorial.

Ответить
@leamon9024
@leamon9024 - 10.11.2021 10:23

Awesome explanation! Thanks man. Looking forward to sharded cluster tutorial too :D

Ответить
@saidinesh6733
@saidinesh6733 - 03.11.2021 14:29

I'm getting error like count failed

Ответить
@sa123p
@sa123p - 02.10.2021 15:49

Thanks. It is very informative for me.

Ответить
@007antas
@007antas - 01.10.2021 22:26

Thank you. This made me understand how to setup a cluster in a very simplified way! Please also make videos on how to implement sharding

Ответить
@kingsite8328
@kingsite8328 - 28.09.2021 10:11

How do you start multiple tabs on sigle machine

Ответить
@opemesonrale7598
@opemesonrale7598 - 05.09.2021 19:19

Properly explained. You are a lifesaver. Thank you.

Ответить
@somyagupta7471
@somyagupta7471 - 17.08.2021 18:27

after that how to setup authentication on this process

Ответить
@somyagupta7471
@somyagupta7471 - 17.08.2021 17:29

GREAT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Hates Off brother

Ответить