Permalink
Commits on Apr 2, 2013
  1. @ferd

    Upgrading dependencies

    ferd committed Apr 2, 2013
  2. @ferd

    Merge branch 'v60'

    ferd committed Apr 2, 2013
Commits on Apr 1, 2013
  1. @bgentry
  2. @bgentry

    fix logplex_drain:create/2

    bgentry committed Apr 1, 2013
  3. @bgentry
  4. @bgentry

    v59 -> v60 live upgrade

    bgentry committed Apr 1, 2013
  5. @bgentry
  6. @ferd @bgentry

    Upgrade path for v58 -> v59

    ferd committed with bgentry Mar 29, 2013
  7. @ferd @bgentry

    Fixing potential race condition on drain shutdown

    Drains are sometimes shut down through the API by sending themselves a
    'shutdown' message. However,  in logplex_drain:stop/2, if the drain
    process crashes before or after the monitor is set in the call, and
    before the 'shutdown' message makes it there, the receive will work on
    '{'DOWN', Ref, process, DrainPid, _}' but the supervisor will restart it
    because it's transient.
    
    During that failure, we think we killed the pid, but we didn't (the
    crash did), so it restarts and stands alone while we're content at the
    fact it died once.
    
    This patch uses the {shutdown, call} tuple to mean the drain was killed
    using a gen_server:call demand, which will be reported in the monitor as
    a reason. This lets us switch based on the reason to make sure the drain
    was properly shut down.
    ferd committed with bgentry Mar 27, 2013
  8. @bgentry

    Merge branch 'v59'

    bgentry committed Apr 1, 2013
  9. @archaelus
  10. @archaelus

    Adds logplex_drain:create/2.

    archaelus committed Apr 1, 2013
Commits on Mar 29, 2013
  1. @ferd

    Upgrade path for v58 -> v59

    ferd committed Mar 29, 2013
  2. @ferd

    Fixing potential race condition on drain shutdown

    Drains are sometimes shut down through the API by sending themselves a
    'shutdown' message. However,  in logplex_drain:stop/2, if the drain
    process crashes before or after the monitor is set in the call, and
    before the 'shutdown' message makes it there, the receive will work on
    '{'DOWN', Ref, process, DrainPid, _}' but the supervisor will restart it
    because it's transient.
    
    During that failure, we think we killed the pid, but we didn't (the
    crash did), so it restarts and stands alone while we're content at the
    fact it died once.
    
    This patch uses the {shutdown, call} tuple to mean the drain was killed
    using a gen_server:call demand, which will be reported in the monitor as
    a reason. This lets us switch based on the reason to make sure the drain
    was properly shut down.
    ferd committed Mar 27, 2013
  3. @ferd

    Merge branch 'v58'

    ferd committed Mar 29, 2013
Commits on Mar 26, 2013
  1. @bgentry
Commits on Mar 25, 2013
  1. @archaelus

    Merge pull request #31 from heroku/l2met-visibility

    Add L2met style metrics channel/drain to Logplex.
    archaelus committed Mar 25, 2013
  2. @bgentry

    minor style changes

    bgentry committed Mar 25, 2013
  3. @bgentry

    Add a way to specify that a config is an integer

    Use that convention for internal_metrics_channel_id
    bgentry committed Mar 25, 2013
  4. @bgentry

    use channel ID instead of token for metrics

    For internal metrics, avoid having to lookup the channel ID from the
    token by just starting with the token.
    bgentry committed Mar 25, 2013
  5. @bgentry

    Clean up metric msg formatting, skip tails + redis

    Rather than sending these logs through the entire message pipeline, skip
    to injecting them directly in the drain stream. Avoid putting them into
    Redis or sending them to tails.
    bgentry committed Mar 25, 2013
  6. @bgentry

    correct config name in readme

    bgentry committed Mar 25, 2013
  7. @bgentry
  8. @bgentry
  9. @bgentry
  10. @ferd
Commits on Mar 22, 2013
  1. @ferd

    Moving to blocking redo operations for the API

    Calls to certain operations may fail in large number in case of network
    or OS errors when pipelining socket operations. By using blocking calls,
    we're able to reset connections or cancel individual requests without
    breaking all subsequent calls.
    ferd committed Mar 22, 2013
  2. @bgentry
  3. @bgentry
  4. @archaelus
  5. @bgentry
Commits on Mar 21, 2013
  1. @bgentry

    properly assemble messages for internal metrics

    construct messages using logplex_syslog_utils:to_msg()
    bgentry committed Mar 21, 2013
  2. @bgentry
Commits on Mar 20, 2013
  1. @bgentry
  2. @bgentry