config chunks

Displays properties of a specified chunk.

Syntax

config chunks [-support] 
            ( [-shard shd] | [-shardgroup sh] | [-show_reshard] | [-cross_shard] )
            ( [-chunk chunk_id] | [-key key [-superkey superkey] ) 
            [-table_family table family][-verbose]

Options

Table 2-21 GDSCTL config chunks Options

Option Description
-chunk chunk_id

Specify a numeric chunk ID.

-cross_shard

Show cross-shard placement.

-key key

Sharding key

-shard shd

The name of the shard.

-shardgroup sh

The name of the shardgroup.

-show_reshard

Display information about ongoing chunk management operations.

-superkey superkey

Sharding super key. This is only needed for the composite sharding method.

-support

If specified, GDSCTL output displays additional information.

-table_family

Table family name in the form of <schema name>.<root table name>.

-verbose

Enable verbose mode.

Usage Notes

The config chunks command lists all of the database shards and the chunks that they contain. Some chunks are listed more than once if there are standbys that contain replicated chunks.

If key or superkey type is date or timestamp then gdsctl config chunks -key/superkey should be passed in the format as shown below:

"YYYY-MM-DD HH24:MI:SS.FF6"

It must be in this order in terms of year/month/date. The example below shows key/super key with DATE type:

gdsctl config chunks -key '2000-01-01'

For key/super key with timestamp type, pass the value in single quotes:

gdsctl config chunks -key 1281 -superkey '"1992-04-09 05:00:00.0"'

Examples

The output from config chunks is shown below.

GDSCTL> config chunks

Chunks
------------------------
Database                      From      To        
--------                      ----      --        
sh1a                          1         10        
sh1b                          1         10