Switch branches/tags
Nothing to show
Commits on May 22, 2012
  1. Tweak readme file for better github rendering

    seth committed May 22, 2012
    Happily, github actually supports org-mode. Sadly, github's org-mode
    support is not perfect.
  2. Update README for new features

    seth committed May 22, 2012
    - scheduled culling
    - member add retries
    - included application config
  3. Merge branch 'cull_schedule'

    seth committed May 22, 2012
  4. Add scheduled culling of stale pool members above init_count

    seth committed May 20, 2012
    Pools with a non-zero `cull_interval' will periodically execute a "cull"
    in which members that have not been used in `max_age' time units will
    be removed from the pool until only init_count members are left.
    Both of the new pool configuration parameters, cull_interval and
    max_age, are specified as a `time_spec()' which carries the units with
    the time value, e.g., `{2, min}'. The valid time units are: min, sec,
    ms, mu.
    The default values do not cause scheduling cull calls.
Commits on May 20, 2012
  1. Add time_as_millis/1 and time_as_micros/1 helper functions

    seth committed May 20, 2012
    These helper functions make is possible for users to specify a time
    unit for config values that need a time, e.g., {3, min} or {300,
    sec}. This keeps config readable and avoids confusion over the units
    of the time. It also allows for testing of time/schedule related
    functionality at short time scales without requiring that end users
    specify everything in milliseconds.
Commits on May 18, 2012
  1. Merge branch 'add_member_retry'

    seth committed May 18, 2012
  2. Fix bug in handling unexpected gen_server calls

    seth committed May 18, 2012
    Also add test coverage for unexpected calls, casts, and info messages.
  3. Use assertEqual instead of assertMatch where possible

    seth committed May 18, 2012
    assertEqual gives more helpful error messages
  4. Limit attempts to add members while serving take_member request

    seth committed May 18, 2012
    This patch introduces a new pool configuration configuration parameter
    'add_member_retry' with a default value of 1. This is the number of
    times pooler will attempt to add a new member to the pool while
    servicing a take_member request if there are no free members in the
    pool and the member count is less than max_count.
    Previously pooler would loop forever trying to add a new member.  This
    could cause take_member not to return quickly if pooler was unable to
    add any members. With this patch, error_no_members is returned after
    add_member_retry attempts have been made to add a new member to the
Commits on Apr 11, 2012
  1. Tighten specs for send_metric and pool_metric

    seth committed Apr 11, 2012
    Now passes dialyzer with -Wunderspecs
Commits on Mar 5, 2012
  1. Remove spec for handle_call for dialyzer

    seth committed Mar 5, 2012
    Dialyzer now does checking on behaviour callbacks. There might be a
    way to declare a callback to be a subtype, but not worth messing with
  2. Ask for config for the pooler app explicitly in pooler_sup

    seth committed Mar 5, 2012
    If pooler is specified as an included_application in another
    application, then application:get_all_env/0 may not be what we
    want. This way, pooler always looks for pooler-specific app config.
  3. Declare crypto as a dependency in, don't start it

    seth committed Mar 5, 2012
    Let OTP do its thing.
Commits on Jan 27, 2012
  1. Fix some dialyzer warnings

    seth committed Jan 27, 2012
    Also turning of -Wunderspecs for now. This warns for spec'd internal
    functions if the spec is too broad.
Commits on Jan 26, 2012
  1. Don't crash if given wrong pool name

    seth committed Jan 26, 2012
    Now that take_member/1 exists, we need to protect against being given
    an incorrect pool name.
  2. Add metrics instrumentation

    seth committed Jan 26, 2012
    Use of metrics is configurable via app config. The design is intended to
    work with folsom, but this is not hard-wired and another metrics module
    with a conformant API can be used.
  3. Handle inability to start new members more gracefully

    seth committed Jan 25, 2012
    When attempting to add members to the pool, we ignore failed starts
    and log an error message rather than crashing.
Commits on Jan 25, 2012
  1. Add strict gaurds to return_member; handle error_no_members gracefully

    seth committed Jan 25, 2012
    With this patch, consumer will get an error if misusing return_member
    rather than crashing pooler. Returning the error_no_members atom is a
    no-op which makes some error handling easier.
  2. Update to latest rebar

    seth committed Jan 25, 2012
  3. Some code formatting cleanups

    seth committed Jan 25, 2012
  4. Fix unused variable warn

    seth committed Jan 25, 2012
  5. Set trap_exit early in init.

    seth committed Jan 25, 2012
Commits on May 2, 2011
Commits on Apr 26, 2011
Commits on Apr 24, 2011