-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Riak base #378
Conversation
travis is using test branch |
6c41e31
to
5c46d7e
Compare
This PR goes on top of #426 now |
#scram{} = Scram -> | ||
scram:check_digest(Scram, Digest, DigestGen, Password); | ||
PassRiak when is_binary(PassRiak) -> | ||
ejabberd_auth:check_digest(Digest, DigestGen, Password, PassRiak) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check_password/3 function has _
clause. Do we need the same clause here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't, it's covered in do_get_password/2
.
I don't see any changes in the |
There is no |
Any updates regarding docs ? I think this is very important to not make the doc worse than it is now and |
automatically add worker to list of arguments in future can be used to update some metrics
by default travis sends build notifications to committer and author (I think that's enough). This will prevent unwanted notification from forks.
include riakc.hrl
this is required because riak plugin for rebar doesn't work with our rebar
if Mongoose should talk with cluster of Riak nodes without a LB
instead of creating pool of pools - each pool connecting to the one riak node, we move the responsiblity to the user. The user can use load balancer and point mongoose towards it. This simplifies reconfiguration of running Mongoose when the riak node is either added or removed. With this approach MiM has nothing to do, everything is handled by load balancer.
RFC - auto reconnecting pool?There is one thing that bothers me (not sure how to solve it), and I would like to here your opinion @esl/mongooseim-developers, because Right now when Riak is down, the pool after couple of supervisor's restarts goes down and The question is: what should we do? Of course the answer is: It depends on use case :) Option 1: Use auto reconnect feature from riakcWe are consistent with odbc pool behaviour - the pool is constantly trying to reestablish connections and is even Option 2: Take down the serverIt depends on the use case, but sometime it doesn't make sense to process messages - Riak's selling point is its high availability, so if whole Riak cluster is unavailable, Option 3: Make it configurable? What & How?We can put strategy in the I would vote for option 1, we keep configuration simple, it is the same as in case of odbc. Summary of my recent changes:
|
I also vote for option 1. We some additional effort we can add logs to riakc process (thanks to |
I also vote for #1. -S On Mon, Aug 17, 2015 at 11:25 AM, Michał Piotrowski <
Simon Zelazny |
I'm not sure if most installations are instrumented with Wombat. Did you count all the installations done without our knowledge? They are thousands I'd say :D and not necessarily using Wombat (yet :D ). |
Sure -- my point was rather that alarms are an easy and extensible way to notify operators about serious failures, and they cost nothing in terms of performance. Plus, there's no chance that an alarm will get throttled, as sometimes happens either at the lager or syslog level. It's a shame when critical information gets killed by an overwhelmed lager. Anyway, alarms are another topic that should be addressed separately, sorry for side-tracking the conversation! |
👍 for option 1 because of consistency with ODBC pooling. Moreover, server shutdown is something that requires manual intervention, which is labour, therefore cost. I'd say that providing a limited service (e.g. no archive) is a much lesser impact/deficiency from the end-user's point of view. IMO option 3 is subject to YAGNI. Also 👍 for alarms. |
👍 from me for merge |
This PR:
ejabberd_auth_riak
module