Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6358321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:21:04+00:00 2026-05-24T23:21:04+00:00

On the project voldemort design page: http://project-voldemort.com/design.php It is stated that the hash ring

  • 0

On the project voldemort design page:

http://project-voldemort.com/design.php

It is stated that the hash ring covers the interval [0, 2^31-1].

Now, the interval [0, 2^31-1] represents 2^31 total numbers, and the largest number 2^31-1 is just 31 bits all set to 1. (To convince yourself of this, consider 2^3-1. 2^3=8 and is 0x1000. 2^3-1=7 and is 0x111).

Thus, if a normal 32-bit address word is used to store the value, you have 1 bit free.

Thus, why is 2^31-1 the upper limit? Is that extra bit used for some kind of system bookkeeping?

(e.g. 1 extra bit would provide room for safely adding two valid hash addresses without overflow).

And finally, is this choice specific to voldemort, or is it seen in other consistent hashing schemes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:21:06+00:00Added an answer on May 24, 2026 at 11:21 pm

    I think you only have 1 bit free not 2. The -1 accounts for the fact that it starts with the number ‘0’ instead of 1 (the same reason loops count from 0 to count-1). I would guess the reason they use 2^31 instead of 2^32 is that they’re using a signed integer so that last bit is the sign bit and so is not useable.

    Edit:
    From the page you linked:

    To visualize the consistent hashing method we can see the possible
    integer hash values as a ring beginning with 0 and circling around to
    2^31-1.

    It specifies an integer so unless you want negative hash values you’re stuck with 2^31 instead of 2^32.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Project: http://design.vitalbmx.com/fave/news.html When I click Add to favorites button (under main pic), in Chrome
Project file here if you want to download: http://files.me.com/knyck2/918odc So I am working on
Project#1 has some interfaces and classes that project#2 references. Now I want to use
A project I'm working on at the moment involves refactoring a C# Com Object
project is written on php. There is timestamp field in mysql it updates automatically.
Are there any document databases and/or key-value stores (something like Project Voldemort, MongoDB, etc.)
Project Requirements: I need to build a web service that will receive chunks of
Project is C#. So I have a bunch of multithreaded code that is designed
Project Structure I have a silverlight project SLProj, that references a silverlight class library
project type is MVC2. Let say that i have page1. after success it write

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.