I’m working on setting up a MongoDB replica set on EC2. I’d like to configure auto-sharding such that my nodes can easily come up and down.
Is it possible to use the native PHP driver to trigger sharding and add/remove nodes? If so, how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you have your connection to
mongosright, you can use the MongoDB::command() method for that: