This topic introduces the Vector Index Data Size monitoring metric for OceanBase tenants. You can specify the statistical scope to query the Vector Index Data Size of a tenant in a single zone or OBServer node.
mem_hold_size
Metric description
The memory usage of vector index data for an OceanBase tenant.
Parameter description
Metric |
Metric name |
Unit |
|---|---|---|
| ob_tenant_vector_mem_hold | mem_hold_size | byte |
Calculation expression
sum(ob_tenant_vector_mem_hold{@LABELS}) by (@GBLABELS)
SQL collection
OceanBase Database V4.3.5.3 and later:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_id,svr_ip,svr_port,vector_mem_hold,vector_mem_used,vector_mem_limit from GV$OB_VECTOR_MEMORY
mem_used_size
Metric description
The actual memory usage of vector index data for an OceanBase tenant.
Parameter description
Metric |
Metric name |
Unit |
|---|---|---|
| ob_tenant_vector_mem_used | mem_used_size | byte |
Calculation expression
sum(ob_tenant_vector_mem_used{@LABELS}) by (@GBLABELS)
SQL collection
OceanBase Database V4.3.5.3 and later:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_id,svr_ip,svr_port,vector_mem_hold,vector_mem_used,vector_mem_limit from GV$OB_VECTOR_MEMORY
mem_limit_size
Metric description
Maximum memory configuration for vector index data of an OceanBase tenant.
Metric parameters
Metric |
Metric name |
Unit |
|---|---|---|
| ob_tenant_vector_mem_limit | mem_limit_size | byte |
Calculation expression
sum(ob_tenant_vector_mem_limit{@LABELS}) by (@GBLABELS)
SQL collection
OceanBase Database V4.3.5.3 and later:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_id,svr_ip,svr_port,vector_mem_hold,vector_mem_used,vector_mem_limit from GV$OB_VECTOR_MEMORY
