Created
March 4, 2014 14:01
-
-
Save shaitan/9346980 to your computer and use it in GitHub Desktop.
Prints all key ranges for elliptics node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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