From 891d9525cfd7719a3e87f06d3b63933dc5c04cf0 Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:48:39 +0800 Subject: [PATCH] remove DML from slow queries --- .../1.configurations/3.graph-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/5.configurations-and-logs/1.configurations/3.graph-config.md b/docs-2.0/5.configurations-and-logs/1.configurations/3.graph-config.md index e3e7511e0de..c6973afc8ff 100644 --- a/docs-2.0/5.configurations-and-logs/1.configurations/3.graph-config.md +++ b/docs-2.0/5.configurations-and-logs/1.configurations/3.graph-config.md @@ -78,9 +78,9 @@ For all parameters and their current values, see [Configurations](1.configuratio | `ws_http_port` | `19669` | Specifies the port for the HTTP service. | No| |`heartbeat_interval_secs` | `10` | Specifies the default heartbeat interval. Make sure the `heartbeat_interval_secs` values for all services are the same, otherwise NebulaGraph **CANNOT** work normally. This configuration is measured in seconds. | Yes| |`storage_client_timeout_ms` |-| Specifies the RPC connection timeout threshold between the Graph Service and the Storage Service. This parameter is not predefined in the initial configuration files. You can manually set it if you need it. The system default value is `60000` ms. | No| +|`slow_query_threshold_us`|`200000`|When the execution time of a query exceeds the value, the query is called a slow query. Unit: Microsecond.
**Note**: Even if the execution time of DML statements exceeds this value, they will not be recorded as slow queries.| No| |`enable_record_slow_query`|`true`|Whether to record slow queries.
Only available in NebulaGraph Enterprise Edition.
When set to `true`, if a query's execution time exceeds the duration defined by `slow_query_threshold_us`, NebulaGraph logs that query to a log file.
Additionally, the graphd process caches the most recent slow queries in memory, and the number of queries cached is determined by the `slow_query_limit` setting.
Cached slow query records can be retrieved through an HTTP interface.| No| |`slow_query_limit`|`100`|The maximum number of slow queries that can be recorded.
Only available in NebulaGraph Enterprise Edition.| No| -|`slow_query_threshold_us`|`200000`|When the execution time of a query exceeds the value, the query is called a slow query. Unit: Microsecond.| No| |`ws_meta_http_port` |`19559`| Specifies the Meta service listening port used by the HTTP protocol. It must be consistent with the `ws_http_port` in the Meta service configuration file.| No| !!! caution