Skip to content

no data after connecting to mongos (sharded cluster) #1447

Closed
@benishak

Description

@benishak

I setup a cluster with 3 Shards with MongoDB Cloud Manager,

When I migrated my database I migrated it to one shard instead of the whole cluster using the following connection string:

mongodb://user:pass@host1:27000,host2:27000,host3:27000/test-db?ReplicaSet=myShard_0

myShard_1 and myShard_2 are now empty with data size (4.0K)

now after I setup 3 mongos I tried to connect my application to the 3 mongos (connect it to the whole cluster

mongodb://user:pass@mongos1:27017,mongos2:27017,mongos3:27017/test-db

the connection has been accepted but my application (parse) can't gather data I receive this info "You have no classes yet"

Although mongos1 is hosted on the myshard_0

Why is this happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions