Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import carbonate.config as config
  2. import carbonate.cluster as cluster
  3.  
  4. conf = config.Config("carbonate.conf")
  5. cluster = cluster.Cluster(conf)
  6.  
  7. index = 0
  8. for entry in cluster.ring.ring.ring:
  9. if index == 1280 or index == 1281:
  10. print "index:"+str(index)+","+str(entry[1][0])
  11. index = index+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement