[
https://issues.apache.org/jira/browse/CASSANDRA-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210055#comment-13210055
]
Vijay edited comment on CASSANDRA-3412 at 2/17/12 5:02 AM:
-----------------------------------------------------------
I tried to make this generic enough and attached is a simple patch to display
what we discussed. If we cannot figure out a keyspace to display the default is
the same as today.
Default:
Warning: Output contains ownership information which does not include
replication factor.
Warning: Use nodetool ring <keyspace> to specify a keyspace.
Address DC Rack Status State Load Owns
Token
141784319550391026443072753096942836216
107.21.183.168 us-east 1c Up Normal 38.57 KB 27.78%
18904575940052136859076367081351254013
79.125.30.58 eu-west 1c Up Normal 36.44 KB 22.22%
56713727820156410577229101239000783353
50.16.117.152 us-east 1c Up Normal 52.03 KB 11.11%
75618303760208547436305468319979289255
50.19.163.142 us-east 1c Up Normal 51.59 KB 33.33%
132332031580364958013534569558607324497
46.51.157.33 eu-west 1c Up Normal 31.64 KB 5.56%
141784319550391026443072753096942836216
Effective nt ring: ('org.apache.cassandra.locator.NetworkTopologyStrategy' and
strategy_options={us-east:2,eu-west:1})
[vijay_tcasstest@vijay_tcass-i-a6643ac3 ~]$ nt ring
Address DC Rack Status State Load
Effective-Owership Token
141784319550391026443072753096942836216
107.21.183.168 us-east 1c Up Normal 27.23 KB 66.67%
18904575940052136859076367081351254013
79.125.30.58 eu-west 1c Up Normal 31.51 KB 50.00%
56713727820156410577229101239000783353
50.16.117.152 us-east 1c Up Normal 47.1 KB 66.67%
75618303760208547436305468319979289255
50.19.163.142 us-east 1c Up Normal 42.52 KB 66.67%
132332031580364958013534569558607324497
46.51.157.33 eu-west 1c Up Normal 36.32 KB 50.00%
141784319550391026443072753096942836216
was (Author: [email protected]):
I tried to make this generic enough and attached is a simple patch to
display what we discussed. If we cannot figure out a keyspace to display the
default is the same as today.
Default:
Warning: Output contains ownership information which does not include
replication factor.
Warning: Use nodetool ring <keyspace> to specify a keyspace.
Address DC Rack Status State Load Owns
Token
141784319550391026443072753096942836216
107.21.183.168 us-east 1c Up Normal 38.57 KB 27.78%
18904575940052136859076367081351254013
79.125.30.58 eu-west 1c Up Normal 36.44 KB 22.22%
56713727820156410577229101239000783353
50.16.117.152 us-east 1c Up Normal 52.03 KB 11.11%
75618303760208547436305468319979289255
50.19.163.142 us-east 1c Up Normal 51.59 KB 33.33%
132332031580364958013534569558607324497
46.51.157.33 eu-west 1c Up Normal 31.64 KB 5.56%
141784319550391026443072753096942836216
Effective nt ring:
[vijay_tcasstest@vijay_tcass-i-a6643ac3 ~]$ nt ring
Address DC Rack Status State Load
Effective-Owership Token
141784319550391026443072753096942836216
107.21.183.168 us-east 1c Up Normal 27.23 KB 66.67%
18904575940052136859076367081351254013
79.125.30.58 eu-west 1c Up Normal 31.51 KB 50.00%
56713727820156410577229101239000783353
50.16.117.152 us-east 1c Up Normal 47.1 KB 66.67%
75618303760208547436305468319979289255
50.19.163.142 us-east 1c Up Normal 42.52 KB 66.67%
132332031580364958013534569558607324497
46.51.157.33 eu-west 1c Up Normal 36.32 KB 50.00%
141784319550391026443072753096942836216
> make nodetool ring ownership smarter
> ------------------------------------
>
> Key: CASSANDRA-3412
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3412
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Jackson Chung
> Assignee: Vijay
> Priority: Minor
> Attachments: 0001-CASSANDRA-3412.patch
>
>
> just a thought.. the ownership info currently just look at the token and
> calculate the % between nodes. It would be nice if it could do more, such as
> discriminate nodes of each DC, replica set, etc.
> ticket is open for suggestion...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira