Skip to content

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

Closed

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?

Activity

  1. steven-supersolid commented on Apr 18, 2016

    @steven-supersolid
    Contributor

    Could it be that _Schema is not being found because the data is on the wrong shard due to the way you migrated?

    Perhaps you could try turning the mongo profiler fully on to see what is happening with queries, or try querying through mongos for _Schema and other special Parse collections to see if you can find data.

    I don't think there is any official support for sharded clusters but it seems like it should just work.

  2. flovilmart commented on Jul 12, 2016

    @flovilmart
    Contributor

    Closing due to lack of activity, please reopen if the issue persist.

    Don't forget to include your current:

    • node version
    • npm version
    • parse-server version
    • any relevant logs (VERBOSE=1 will enable verbose logging)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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