Skip to main content

hot_tablets

Creates, updates, deletes, gets or lists a hot_tablets resource.

Overview

Namehot_tablets
TypeResource
Idgoogle.bigtableadmin.hot_tablets

Fields

NameDatatypeDescription
namestringThe unique name of the hot tablet. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*.
endKeystringTablet End Key (inclusive).
endTimestringOutput only. The end time of the hot tablet.
nodeCpuUsagePercentnumberOutput only. The average CPU usage spent by a node on this tablet over the start_time to end_time time range. The percentage is the amount of CPU used by the node to serve the tablet, from 0% (tablet was not interacted with) to 100% (the node spent all cycles serving the hot tablet).
startKeystringTablet Start Key (inclusive).
startTimestringOutput only. The start time of the hot tablet.
tableNamestringName of the table that contains the tablet. Values are of the form projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*.

Methods

NameAccessible byRequired ParamsDescription
listSELECTclustersId, instancesId, projectsIdLists hot tablets in a cluster, within the time range provided. Hot tablets are ordered based on CPU usage.

SELECT examples

Lists hot tablets in a cluster, within the time range provided. Hot tablets are ordered based on CPU usage.

SELECT
name,
endKey,
endTime,
nodeCpuUsagePercent,
startKey,
startTime,
tableName
FROM google.bigtableadmin.hot_tablets
WHERE clustersId = '{{ clustersId }}'
AND instancesId = '{{ instancesId }}'
AND projectsId = '{{ projectsId }}';