SingleStore DB

information_schema.DISTRIBUTED_PARTITIONS

This table contains information about partitions.

Column Name

Description

DATABASE_ID

The unique ID of the related database for a given partition.

ORDINAL

The ordinal number for a given partition, which decides the order in which data is distributed among partitions.

HOST

The hostname or IP address for the related node.

PORT

The port number of the related node.

ROLE

The role of the related node.

LOCKED

Whether a given partition is locked, as part of a partition level lock or higher.

NODE_ID

The ID of the related node.

IS_OFFLINE

Whether a given partition is offline.

SYNC_DESIRED

This is TRUE if a given partition instance uses synchronous replication. This matches the column IS_SYNC from information_schema.DISTRIBUTED_DATABASES of the corresponding database.

STATE

The current state of a given partition. This can be EMPTY (for online masters), ASYNC, SYNC, READY or UNRECOVERABLE.

INSTANCE_ID

Unique ID of the partition instance.

IS_READ_REPLICA

Whether a given partition is part of a read replica or not.