Permalink
Switch branches/tags
Commits on Jun 9, 2012
  1. Final review cleanups.

    jonmeredith committed Jun 8, 2012
  2. Minor comment tweak.

    jonmeredith committed Jun 5, 2012
  3. Updated wants_claim_v3 to check ownership counts.

    jonmeredith committed May 25, 2012
    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.
  4. Added diagonalize method if TN==S that accounts for ring wrap.

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

    jonmeredith committed May 24, 2012
    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.
  6. score_am was incorrectly calculating diversity

    jonmeredith committed May 25, 2012
    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.
  7. Updated claim sim to pass target N around.

    jonmeredith committed May 24, 2012
    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).
  8. Added node join simulator and claim commissioning tests.

    jonmeredith committed May 24, 2012
    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.
Commits on Jun 5, 2012
Commits on Jun 1, 2012
  1. Merge pull request #179 from basho/rdb-folsomise

    russelldb committed Jun 1, 2012
    Use folsom stats for riak_core
Commits on May 30, 2012
  1. Merge pull request #171 from basho/jdb-capabilities

    jtuple committed May 30, 2012
    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.
  2. Change capability code based on code review

    jtuple committed May 29, 2012
    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.
Commits on May 29, 2012
Commits on May 25, 2012
  1. Add `app_helper:try_envs`

    rzezeski committed May 25, 2012
    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.
Commits on May 24, 2012
  1. Use 2 tuples as stat names, use the app name as the 1st element

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

    rzezeski committed Dec 20, 2011
    Signed-off-by: Ryan Zezeski <rzezeski@gmail.com>
Commits on May 22, 2012
  1. Merge updated pull request #176 from branch 'jdb-handoff-ip'

    jtuple committed May 22, 2012
    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.
  2. Clean-up handoff_ip code provided by micmac in pull request #176

    jtuple committed May 22, 2012
    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.
  3. Merge pull request #54 from b/BUG-1107

    seancribbs committed May 22, 2012
    Change default to disable Nagle on HTTP sockets
Commits on May 21, 2012
  1. Change how the capability system handles unknown capabilities

    jtuple committed May 21, 2012
    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.
  2. Use folsom stats for riak_core

    russelldb committed May 21, 2012
Commits on May 18, 2012
  1. Working handoff_ip=0.0.0.0 fix

    Endre Hirling committed May 18, 2012
Commits on May 17, 2012
  1. Handle changing handoff_ip to other than the ip associated with node …

    Endre Hirling committed May 17, 2012
    …name
Commits on Apr 29, 2012
  1. Merge pull request #172 from basho/edocs-readme-add

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

    Mark Phillips committed Apr 28, 2012
Commits on Apr 27, 2012
  1. Add cluster capability system + API

    jtuple committed Apr 24, 2012
    -- 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.
Commits on Apr 25, 2012