Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
benishak opened this issue Apr 10, 2016 · 2 comments
Closed

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

benishak opened this issue Apr 10, 2016 · 2 comments

Comments

@benishak
Copy link
Contributor

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?

@steven-supersolid
Copy link
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.

@flovilmart
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants