Closed ngan closed 13 years ago
It's just a vague attempt at load balancing, without dealing with any clever logic. And nope, there's no option for it - if you can offer a patch though, I'll certainly consider merging it :)
Sure I'll come up with a patch, no problem. Should this change be made in the Riddle repo? Or this one?
@freelancing-god I'm starting to think that it would make more sense for Riddle should not be shuffling at all. If shuffling is desired, that logic should be in Thinking-Sphinx when it initializes the Riddle::Client. e.g.:
Riddle::Client.new(servers.shuffle)
Yeah, that's a fair call. Feel free to patch both so that's the case.
Patch for Riddle: https://github.com/freelancing-god/riddle/pull/37
Sphinx patch coming soon...
Patches merged, so closing this issue.
Is there a reason why the servers are shuffled when they are assigned to Riddle? I can't really see the benefit to doing this... Is there an option to not do this?