SHOW GLOBAL CONFIGS command¶
The SHOW GLOBAL CONFIGS command lists the configuration options set using GLOBAL SET or GLOBAL RESET for all Graph services or all Storage services in a service group.
SHOW GLOBAL CONFIGS
Returns the configuration options set using GLOBAL SET or GLOBAL RESET for all Graph services in the service group.
SHOW GLOBAL CONFIGS STORAGE
Returns the configuration options set using GLOBAL SET or GLOBAL RESET for all Storage services in the service group.
The following table describes the returned information:
| Column | Description |
|---|---|
name |
The name of the configuration option. |
type |
The data type of the configuration option. |
value |
The runtime value of the configuration option. |
default_value |
The default value of the configuration option. |
scope |
The type of the configuration option. Valid values: GLOBAL, SERVICE, and SESSION. |
deprecated |
Whether the configuration option is deprecated. Valid values are:false: indicates that the option is not deprecated.true: indicates that it is deprecated. |
mutable |
Whether the configuration option supports dynamic modification at runtime. Valid values are:false: indicates that the option cannot be dynamically modified.true: indicates that it can be dynamically modified. |
since |
The NebulaGraph Database Developer Edition version in which the configuration option was introduced. |
description |
The description of the configuration option. |
Syntax¶
- show_global_configs_command
show_global_configs_command ::=
'SHOW' 'GLOBAL' 'CONFIGS' 'STORAGE'?
Examples¶
View configuration options set using GLOBAL SET for all Graph services¶
GLOBAL SET GRAPH timezone = "Asia/Shanghai" // Set the timezone for all Graph services to Asia/Shanghai.
SHOW GLOBAL CONFIGS
Return:
+----------+--------+---------------+---------------+---------+------------+---------+-------+-----------------------------+
| name | type | value | default_value | scope | deprecated | mutable | since | description |
+----------+--------+---------------+---------------+---------+------------+---------+-------+-----------------------------+
| timezone | STRING | Asia/Shanghai | UTC | SESSION | false | true | 5.0.0 | timezone of current session |
+----------+--------+---------------+---------------+---------+------------+---------+-------+-----------------------------+
View configuration options set using GLOBAL SET for all Storage services¶
GLOBAL SET STORAGE minloglevel = 1
SHOW GLOBAL CONFIGS STORAGE
Return:
+-------------+-------+-------+---------------+---------+------------+---------+-------+--------------------------------------------------------------------+
| name | type | value | default_value | scope | deprecated | mutable | since | description |
+-------------+-------+-------+---------------+---------+------------+---------+-------+--------------------------------------------------------------------+
| minloglevel | INT64 | 1 | 0 | SERVICE | false | true | 5.0.0 | log level. 0, 1, 2, 3 for INFO, WARNING, ERROR, FATAL respectively |
+-------------+-------+-------+---------------+---------+------------+---------+-------+--------------------------------------------------------------------+