nginx-gridfs icon indicating copy to clipboard operation
nginx-gridfs copied to clipboard

set SlaveOK?

Open e1ven opened this issue 13 years ago • 2 comments

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.

e1ven avatar May 25 '11 01:05 e1ven

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.

banker avatar May 25 '11 23:05 banker

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.

cheeming avatar Aug 06 '12 03:08 cheeming