MongoDB Sharding Demo | MongoDB Sharding Windows 10 localhost

MongoDB Sharding Demo | MongoDB Sharding Windows 10 localhost

Neeraj Garg

2 года назад

9,946 Просмотров

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


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

@maheshpnjg9
@maheshpnjg9 - 02.03.2022 05:15

Thank you for making this content. Not many good mongodb videos online. I watched your videos on mongodb and they are very detailed.

Ответить
@nehanabdulghani8385
@nehanabdulghani8385 - 12.12.2023 23:37

Hi, where to get database files which you used "zips.json". can you share that too. TIA!

Ответить
@safaferchichi2097
@safaferchichi2097 - 09.12.2023 22:32

Hi , sir I have a problem : the collection test in chunkMetadata have only 'shard_repl1' not like you the two shards .how to do?

Ответить
@rohansingh2703
@rohansingh2703 - 03.12.2023 15:54

Sir where are the sample data files zips and test (json files from which you imported data)?

Ответить
@DineshKumar-mz7hm
@DineshKumar-mz7hm - 02.11.2023 16:48

It's very helpful but after adding these lines "mongosh --host localhost --port 27017" and "sh.addShard( "shard_repl/localhost:28081,localhost:28082,localhost:28083")" console shows this error "Warning: MongoshWarning: [SHAPI-10003] You are not connected to a mongos. This command may not work as expected.
MongoServerError: no such command: 'addShard' "
Please help in this out

Ответить
@anuragkrishnan8190
@anuragkrishnan8190 - 20.10.2023 08:30

Please give the collections folder

Ответить
@76rakshith
@76rakshith - 23.09.2023 03:29

Hi - I am facing the same issue which others have been facing.

I have created the same, replica set created but I am unable to connect directly to mongos using mongosh —host localhost —port 27017 . In place I am connected to mongo. i.e. to > test
Not [direct: mongos] test>. Hence unable to perform any sh command like sh.addShard

If i use any other port like : mongos --configdb config_repl/localhost:28041,localhost:28042,localhost:28043 --bind_ip localhost --port 27517

[direct: mongos] test> does come up. However on trying to add the shards, gives the below error message:

Could not find host matching read preference { mode: "primary" } for set shard_repl.

Status:

{
apiVersions: [ 1, Infinity ],
returnsPromise: true,
serverVersions: [ '0.0.0', '999.999.999' ],
topologies: [ 'ReplSet', 'Sharded', 'LoadBalanced', 'Standalone' ],
returnType: { type: 'unknown', attributes: {} },
deprecated: false,
platforms: [ 'Compass', 'Browser', 'CLI' ],
isDirectShellCommand: false,
acceptsRawInput: false,
shellCommandCompleter: undefined,
help: [Function (anonymous)] Help
}

Ответить
@qurbanhaidari8565
@qurbanhaidari8565 - 17.05.2023 11:14

sir secondly how to check performance and and how data are efficient in sharding

Ответить
@qurbanhaidari8565
@qurbanhaidari8565 - 17.05.2023 11:11

how can i have the test.json or suggest how to find json file greater than 200MB to check chunks disterbution

Ответить
@quratulain3297
@quratulain3297 - 29.03.2023 19:48

I'm facing issue in replication, it says this node was not started with replication enabled, kindly help me in this

Ответить
@RameshRamalingam84
@RameshRamalingam84 - 10.02.2023 08:07

Thank you for making this video. Really very useful and easy-to-understand sharding.

Ответить
@seamashraf2855
@seamashraf2855 - 26.08.2022 19:20

I am facing "addShard" is not a command

Ответить
@amitsharma-jn6jm
@amitsharma-jn6jm - 12.07.2022 07:12

Cannot use non-local read concern until replica set is finished initializing. getting this error

Ответить
@aimenkhalid9620
@aimenkhalid9620 - 27.06.2022 10:24

my cmd says mongosh is not recognized as internal or external command. what do i do?

Ответить
@ravimishra1003
@ravimishra1003 - 05.06.2022 23:36

Thank you for the Damo of full Sharding on a single machine. I have created the same, replica set created but I am unable to connect directly to mongos using mongosh —host localhost —port 27017 . In place I am connected to mongo. i.e. to > test
Not [direct: mongos] test>. Hence unable to perform any sh command like sh.addShard. Pls give me solution

Ответить
@reenanain4709
@reenanain4709 - 01.06.2022 08:53

good work

Ответить
@priyanshuyadav5109
@priyanshuyadav5109 - 13.03.2022 14:50

Good work , hoping for more videos on mongoDB.

Ответить
@pradipkumar8498
@pradipkumar8498 - 06.02.2022 02:48

👍

Ответить
@sachinmaurya4897
@sachinmaurya4897 - 05.02.2022 13:05

Sir one video for mongofiles

Ответить
@sureshrani667
@sureshrani667 - 30.01.2022 08:45

👌👍

Ответить
@codewithnegi
@codewithnegi - 30.01.2022 06:38

👌

Ответить