mdirolf / nginx-gridfs

Nginx module for serving files from MongoDB's GridFS
http://www.mongodb.org
Other
796 stars 148 forks source link

set SlaveOK? #27

Open e1ven opened 13 years ago

e1ven commented 13 years ago

Is it possible to add a flag to enable SlaveOK? For 99% of my files, I don't mind if it loads off a replicaset. In fact, I prefer it! The files are static anyway, and I'm already hitting a MongoS instance, rather than mongod directly.

banker commented 13 years ago

It's possible, but not until the C driver supports the same setting. You can watch this issue here: https://jira.mongodb.org/browse/CDRIVER-68

Once that's resolved, I'll add.

cheeming commented 12 years ago

Hi, I forked https://github.com/cheeming/nginx-gridfs and applied a patch based on https://github.com/mongodb/mongo-c-driver/commit/f063fb1d1f9dbefb86d58fdede222c2d4c6285c8. I have not done extensive testing but some might find it useful.