Permalink
Switch branches/tags
Commits on May 6, 2013
  1. Save memory in lookup_ids_by_channel.

    archaelus committed May 6, 2013
    Costs a try-catch instead.
  2. Re-arrange exports.

    archaelus committed May 6, 2013
  3. Export token type.

    archaelus committed May 6, 2013
  4. Add logplex_token:new(TokenId, ChannelId).

    archaelus committed May 4, 2013
    Conflicts:
    	src/logplex_token.erl
  5. Add logplex_token:cache/1.

    archaelus committed May 4, 2013
Commits on May 3, 2013
  1. Removing lengthy redis checks

    ferd committed May 3, 2013
    Looking for drains is too expensive as a regular operation. In
    production it may take up to two minutes just to run all the checks and
    Redis is what makes it slow. Tests have shown that no drain currently on
    a production node appears to be orphaned in either ETS or Redis, but
    always both. As such, we drop this lookup.
Commits on May 2, 2013
  1. Reducing delay to 5 minutes for leak monitor

    ferd committed May 2, 2013
    The operations are long-lived and there isn't a lot of expected benefits
    to having things run very frequently. A 5 minutes check ought to be
    sufficient.
Commits on May 1, 2013
  1. Upgrade path v65 -> v66

    ferd committed May 1, 2013
  2. Increasing kill time on health monitor

    ferd committed May 1, 2013
    The health monitor's own supervisor gives 8 seconds and it's useless to
    give only 2 to its parent. The 8 seconds might be required because
    scanning entire tables for orphans might be a bit long before seeing
    sys messages.
  3. Minor fixes

    ferd committed May 1, 2013
  4. Fixing channel deletion to include drains

    ferd committed Apr 30, 2013
    Channel deletion would delete only the ETS table entries for each drain,
    leaving the door open for new nodes and NSYNC'ing to bring back dead
    drains (that were not killed on existing nodes).
    
    This patch makes it so that deleting a channel, which calls
    logplex_drain:delete_by_channel/1 actually removes said drain via redis.
    nsync callbacks will then clean up the rest.
    
    Conflicts:
    	src/logplex_drain.erl
    	src/logplex_mon_serv.erl
  5. Adding basic monitoring of drains & channels

    ferd committed Apr 30, 2013
    Looks for orphans (both in ETS vs. drain, or channels vs. drains, in any
    storage available).
    
    Also looks at total drain and channel count, and compares it with other
    nodes.
Commits on Apr 22, 2013
Commits on Apr 19, 2013
  1. Fix malfomed_messages typo.

    archaelus committed Apr 19, 2013