Commits on Jun 9, 2012
  1. @jonmeredith

    Final review cleanups.

    jonmeredith committed Jun 8, 2012
  2. @jonmeredith
  3. @jonmeredith

    Minor comment tweak.

    jonmeredith committed Jun 5, 2012
  4. @jonmeredith
  5. @jonmeredith

    Updated wants_claim_v3 to check ownership counts.

    metadata changed by the claim function is not persisted to the
    raw ring.
    Also added a force_claim environment variable to trigger a one
    time reclaim.
    jonmeredith committed May 25, 2012
  6. @jonmeredith

    Added diagonalize method if TN==S that accounts for ring wrap.

    diversify is still used if claimv3 cannot find a plan without
    violations.
    
    Redudece lager:debug output and made it more readable.
    jonmeredith committed May 25, 2012
  7. @jonmeredith

    Added claim_v3 algorithm.

    Claim V3 - unlike the v1/v2 algorithms, v3 treats claim as an optimization problem.
    In it's current form it creates a number of possible claim plans and evaluates
    them for violations, balance and diversity, choosing the 'best' plan.
    
    Violations are a count of how many partitions owned by the same node are within target-n
    of one another. Lower is better, 0 is desired if at all possible.
    
    Balance is a measure of the number of partitions owned versus the number of partitions
    wanted.  Want is supplied to the algorithm by the caller as a list of node/counts.  The
    score for deviation is the RMS of the difference between what the node wanted and what it
    has.  Lower is better, 0 if all wants are mets.
    
    Diversity measures how often nodes are close to one another in the preference
    list.  The more diverse (spread of distances apart), the more evenly the
    responsibility for a failed node is spread across the cluster.  Diversity is
    calculated by working out the count of each distance for each node pair
    (currently distances are limited up to target N) and computing the RMS on that.
    Lower diversity score is better, 0 if nodes are perfectly diverse.
    jonmeredith committed May 24, 2012
  8. @jonmeredith
  9. @jonmeredith

    score_am was incorrectly calculating diversity

    0-count pairs were not being added before calculating RMS.
    During algorithm research a different method of generating
    adjacency_matrix was used so this got by.
    jonmeredith committed May 25, 2012
  10. @jonmeredith

    Updated claim sim to pass target N around.

    Caveat: leave still uses target n from environment,
    too much plumbing changes to hit code freeze.  To use
    set_env(riak_core, target_n_val, blah).
    jonmeredith committed May 24, 2012
  11. @jonmeredith @jonmeredith
  12. @jonmeredith

    Added node join simulator and claim commissioning tests.

    Moved claim logic execution from core_gossip/core_ring to core_claim
    and created versions that take Wants/Choose as arguments.
    
    Simulator is based on Joe's claim simulator - a little more work
    required to isolate it from n_val/target_n in the environment.
    
    Commissioning test runs predefined joins through simulator and
    writes rings/stats to files.
    jonmeredith committed May 23, 2012
Commits on Jun 5, 2012
  1. @russelldb
Commits on Jun 1, 2012
  1. @russelldb

    Merge pull request #179 from basho/rdb-folsomise

    Use folsom stats for riak_core
    russelldb committed Jun 1, 2012
Commits on May 30, 2012
  1. @jtuple

    Merge pull request #171 from basho/jdb-capabilities

    Add cluster capability system + API
    Resolves issue #169
    
    -- Provides API to register supported protocols/modes associated
       with a given capability.
    
    -- Auto-negotiates the mode across the cluster, choosing the most
       preferred mode supported by all members.
    jtuple committed May 30, 2012
  2. @jtuple

    Change capability code based on code review

    Clean-up code based on review feedback, renaming certain functions and
    variables to be more clear.
    
    Add module level edoc to riak_core_capability.
    
    Change prefer override to default to negotiated modes rather than
    crashing the capability server.
    jtuple committed May 29, 2012
Commits on May 29, 2012
  1. @rzezeski
Commits on May 25, 2012
  1. @rzezeski

    Add `app_helper:try_envs`

    This function allows you to try multiple application envs in a
    particular order and returns a value that allows the caller to
    distinguish where the value came from.  This is useful for the cases
    where application envs have changed across releases.
    rzezeski committed May 25, 2012
Commits on May 24, 2012
  1. @russelldb

    Use 2 tuples as stat names, use the app name as the 1st element

    Makes querying easier (select / match on app name)
    russelldb committed May 24, 2012
Commits on May 23, 2012
  1. @rzezeski

    Fix comment

    Signed-off-by: Ryan Zezeski <rzezeski@gmail.com>
    rzezeski committed Dec 20, 2011
Commits on May 22, 2012
  1. @jtuple

    Merge updated pull request #176 from branch 'jdb-handoff-ip'

    Change handoff_sender to respect the custom handoff_ip setting configured
    on the handoff target node. Prior to this change, the listener would bind
    to the configured IP address, but the sender would attempt to connect to
    the default IP address associated with the node name.
    
    Thanks go to @micmac for providing the initial version of this patch.
    jtuple committed May 22, 2012
  2. @jtuple

    Clean-up handoff_ip code provided by micmac in pull request #176

    Fix potential badmatch from re-using variable TNHandoffIP.
    
    Change get_handoff_ip to use standard try/catch block, and default to
    using the normal hostname if unable to resolve the handoff IP.
    jtuple committed May 22, 2012
  3. @jtuple
  4. @seancribbs

    Merge pull request #54 from b/BUG-1107

    Change default to disable Nagle on HTTP sockets
    seancribbs committed May 22, 2012
Commits on May 21, 2012
  1. @jtuple

    Change how the capability system handles unknown capabilities

    Change riak_core_capability:get/1 to throw an exception if it is unable
    to determine the mode for the requested capability.
    
    Add riak_core_capability:get/2 that takes a default response as the second
    argument, and returns the default when the mode is unknown.
    
    Change riak_core_vnode_master to default to legacy routing mode when the
    current routing mode is unknown.
    jtuple committed May 21, 2012
  2. @russelldb

    Use folsom stats for riak_core

    russelldb committed May 21, 2012
Commits on May 18, 2012
  1. @micmac

    Working handoff_ip=0.0.0.0 fix

    micmac committed May 18, 2012
  2. @micmac
Commits on May 17, 2012
  1. @micmac
Commits on Apr 29, 2012
  1. Merge pull request #172 from basho/edocs-readme-add

    adding pointer to core edocs to README
    Mark Phillips committed Apr 29, 2012
Commits on Apr 28, 2012
  1. adding pointer to core edocs to readme

    Mark Phillips committed Apr 27, 2012
Commits on Apr 27, 2012
  1. @jtuple
  2. @jtuple

    Add cluster capability system + API

    -- Provides API to register supported protocols/modes associated
       with a given capability.
    
    -- Auto-negotiates the mode across the cluster, choosing the most
       preferred mode supported by all members.
    jtuple committed Apr 24, 2012
  3. @jtuple
Commits on Apr 25, 2012
  1. @rzezeski