We added a mapsizes argument to xsadmin.sh in 6104. You can use this to show the number of records in shards in the grid. For example:
./xsadmin.sh -g Grid -m mapSet -ch localhost -mapsizes
This will attach to a local catalog server and show the number of entries in every shard in the grid as well as the total record count. This will include replicas. It shows each container and within that each shard (primaries and replicas) with the entry count. Finally, it adds it up for a total. You can use the filter arguments to filter to just entries on a single host:
./xsadmin.sh -g Grid -m mapSet -ch localhost -mapsizes -fh server2.rchland.ibm.com
or to a specific partition using "-fp 5" or to a specific map using "-fm myMap". We're adding a new filter for shard type, this is coming very soon now in an update. This will allow you to just see entries in primaries or in replicas.
If you have anything that you want added to it then feel free to comment here or email me.
Comments