Skip to content

Instantly share code, notes, and snippets.

@shaitan
Created March 4, 2014 14:01
Show Gist options
  • Select an option

  • Save shaitan/9346980 to your computer and use it in GitHub Desktop.

Select an option

Save shaitan/9346980 to your computer and use it in GitHub Desktop.
Prints all key ranges for elliptics node
def print_address_ranges(address):
import elliptics
n = elliptics.create_node(remotes=[address])
s = elliptics.Session(n)
print s.routes.get_address_ranges(elliptics.Address.from_host_port_family(address))
print_address_range('myhost:1025:2')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment