-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Support record slow-query-log in HugeServer #2325
Comments
@javeme like this: |
|
TIDB :
2.TiDB 默认启用慢查询日志。您可以通过修改系统变量tidb_enable_slow_log来启用或禁用该功能。 record items(intro see ref https://docs.pingcap.com/tidb/stable/identify-slow-queries): HBase:(http://svn.apache.org/repos/asf/hbase/hbase.apache.org/trunk/0.94/book/ops.monitoring.html) 1.hbase.ipc.warn.response.time在不记录查询的情况下可以运行查询的最大毫秒数。默认值为 10000 或 10 秒。可以设置为 -1 以按时间禁用日志记录。 示例: and like this, i use a java pojo transfer to json. like hbase 2023-10-17 01:45:49 [grizzly-http-server-20] [INFO] o.a.h.a.f.AccessLogFilter - slow query log: {"executeTime":12,"rawQuery":"{"gremlin":"g.V()","bindings":{},"language":"gremlin-groovy","aliases":{"g":"__g_hugegraph"}}","method":"POST","threshold":0,"path":"gremlin"} 2023-10-17 01:45:49 [grizzly-http-server-21] [INFO] o.a.h.a.f.AccessLogFilter - slow query log: {"executeTime":1,"rawQuery":"{}","method":"GET","threshold":0,"path":"graphs/hugegraph/graph/edges"} 2023-10-17 01:45:49 [grizzly-http-server-22] [INFO] o.a.h.a.f.AccessLogFilter - slow query log: {"executeTime":1,"rawQuery":"{}","method":"GET","threshold":0,"path":"graphs/hugegraph/graph/vertices"} |
Feature Description (功能描述)
as you know slow query log is important for db,like mysql.
record query time, when using api to query graph info,because i think the api total time is the real query time for user.
some questions maybe need discuss @javeme @JackyYangPassion @imbajin @liuxiaocs7 @Radeity @simon824 @z7658329 @VGalaxies
threold:
enable:
The text was updated successfully, but these errors were encountered: