nginx-gridfs
nginx-gridfs copied to clipboard
set SlaveOK?
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.
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.
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.