/show/resource/objects

URL: http://GPUDB_IP_ADDRESS:GPUDB_PORT/show/resource/objects

Returns information about the internal sub-components (tiered objects) which use resources of the system. The request can either return results from actively used objects (default) or it can be used to query the status of the objects of a given list of tables. Returns detailed information about the requested resource objects.

Input Parameter Description

Name Type Description
options map of string to strings

Optional parameters. The default value is an empty map ( {} ).

Supported Parameters (keys) Parameter Description
tiers Comma-separated list of tiers to query, leave blank for all tiers.
expression An expression to filter the returned objects. Expression is limited to the following operators: =,!=,<,<=,>,>=,+,-,*,AND,OR,LIKE. For details see Expressions. To use a more complex expression, query the ki_catalog.ki_tiered_objects table directly.
order_by

Single column to be sorted by as well as the sort direction, e.g., 'size asc'. The supported values are:

  • size
  • id
  • priority
  • tier
  • evictable
  • owner_resource_group
limit An integer indicating the maximum number of results to be returned, per rank, or (-1) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server's own limit, defined by the max_get_records_size parameter in the server configuration. The default value is '100'.
table_names Comma-separated list of tables to restrict the results to. Use '*' to show all tables.

Output Parameter Description

The GPUdb server embeds the endpoint response inside a standard response structure which contains status information and the actual response to the query. Here is a description of the various fields of the wrapper:

Name Type Description
status String 'OK' or 'ERROR'
message String Empty if success or an error message
data_type String 'show_resource_objects_response' or 'none' in case of an error
data String Empty string
data_str JSON or String

This embedded JSON represents the result of the /show/resource/objects endpoint:

Name Type Description
rank_objects map of string to strings Tier usage across ranks. Layout is: response.rank_usage[rank_number][resource_group_name] = group_usage (as stringified json)
info map of string to strings Additional information.

Empty string in case of an error.