Couchbase 通过rest api启用配置文件并不是在通过rest api获取活动请求时提供阶段时间

Couchbase 通过rest api启用配置文件并不是在通过rest api获取活动请求时提供阶段时间,couchbase,Couchbase,我已在CB服务器中启用配置文件,配置文件设置为阶段 执行此curl命令:- curl--位置--请求发布'http://localhost:8093/admin/settings“\--header”内容类型:application/json“\--header”授权:基本QWRTAW5PC3RYXRYXCJPWYXNZD29YZA=='\--data raw'{“profile”:“phases”}' 因此,配置文件已从off更新为phases,如下所示:- { "auto-prep

我已在CB服务器中启用配置文件,配置文件设置为阶段

执行此curl命令:-

curl--位置--请求发布'http://localhost:8093/admin/settings“\--header”内容类型:application/json“\--header”授权:基本QWRTAW5PC3RYXRYXCJPWYXNZD29YZA=='\--data raw'{“profile”:“phases”}'

因此,配置文件已从
off
更新为
phases
,如下所示:-

{
"auto-prepare": false,
"completed": {
    "aborted": null,
    "threshold": 1000
},
"completed-limit": 4000,
"completed-threshold": 1000,
"controls": false,
"cpuprofile": "",
"debug": false,
"functions-limit": 16384,
"keep-alive-length": 16384,
"loglevel": "INFO",
"max-index-api": 4,
"max-parallelism": 1,
"memprofile": "",
"mutexprofile": false,
"n1ql-feat-ctrl": 12,
"pipeline-batch": 16,
"pipeline-cap": 512,
"prepared-limit": 16384,
"pretty": false,
"profile": "phases",
"request-size-cap": 67108864,
"scan-cap": 512,
"servicers": 24,
"timeout": 0
}
但当查询活动请求时,即
http://localhost:8093/admin/active_requests
我得到以下提到的输出:-

[
{
    "clientContextID": "1a1d8828-b06a-46f3-a5fe-13a9841cee18",
    "elapsedTime": "1.4613172s",
    "executionTime": "1.4610895s",
    "phaseCounts": {
        "fetch": 2304,
        "primaryScan": 2727
    },
    "phaseOperators": {
        "authorize": 1,
        "fetch": 1,
        "primaryScan": 1
    },
    "requestId": "6f44adea-9752-491d-936d-b36c7d450029",
    "requestTime": "2020-08-27T21:11:28.344Z",
    "scanConsistency": "unbounded",
    "state": "running",
    "statement": "SELECT * FROM `beer-sample`",
    "users": "Administrator"
}
]
在我的案例中,为什么阶段部分没有出现

但是如果通过Couchbase查询工作台执行相同的操作,我可以看到phaseTimes部分。 请提供帮助。

如果配置文件已设置(未关闭),则阶段时间将包含在活动的\u请求、已完成的\u请求中。默认情况下,从6.50+开始,这些都包括在“甚至轮廓关闭”中

curl -u user:pass http://localhost:8093/admin/active_requests

This list all active requests. But will not give PhaseTimes. only single active request gives PhaseTimes via admin endpoint 

Example: curl -u user:pass -XPOST http://localhost:8093/admin/active_requests/<request-uuid>

Alternative for all active_requests is use query endpoint with select query as follows.

curl -u user:pass -v http://localhost:8093/query/service -H "Content-Type: application/json"  -d '{"statement":"SELECT a.* FROM system:active_requests AS a"}'
curl-u用户:通过http://localhost:8093/admin/active_requests
此列表列出所有活动请求。但不会给出阶段性。只有一个活动请求通过管理端点提供阶段时间
示例:curl-u用户:pass-XPOSThttp://localhost:8093/admin/active_requests/
所有活动的_请求的替代方法是使用查询端点和select查询,如下所示。
curl-u用户:pass-vhttp://localhost:8093/query/service -H“内容类型:application/json”-d'{“语句”:“从系统中选择一个*作为“}”
如果配置文件已设置(未关闭),则相位时间将包含在活动的\u请求、已完成的\u请求中。默认情况下,从6.50+开始,这些都包括在“甚至轮廓关闭”中

curl -u user:pass http://localhost:8093/admin/active_requests

This list all active requests. But will not give PhaseTimes. only single active request gives PhaseTimes via admin endpoint 

Example: curl -u user:pass -XPOST http://localhost:8093/admin/active_requests/<request-uuid>

Alternative for all active_requests is use query endpoint with select query as follows.

curl -u user:pass -v http://localhost:8093/query/service -H "Content-Type: application/json"  -d '{"statement":"SELECT a.* FROM system:active_requests AS a"}'
curl-u用户:通过http://localhost:8093/admin/active_requests
此列表列出所有活动请求。但不会给出阶段性。只有一个活动请求通过管理端点提供阶段时间
示例:curl-u用户:pass-XPOSThttp://localhost:8093/admin/active_requests/
所有活动的_请求的替代方法是使用查询端点和select查询,如下所示。
curl-u用户:pass-vhttp://localhost:8093/query/service -H“内容类型:application/json”-d'{“语句”:“从系统中选择一个*作为“}”

谢谢你的解释,这真的很有帮助。但是我有一个查询,如果我用select语句调用/query/service来处理活动请求,那么我也会在活动请求集合中得到select*from active\u requests语句。尽管在这种情况下,所有活动请求都包含阶段时间。。那么还有其他方法吗?使用WHERE子句过滤掉。谢谢你的解释,这真的很有帮助。但是我有一个查询,如果我用select语句调用/query/service来处理活动请求,那么我也会在活动请求集合中得到select*from active\u requests语句。尽管在这种情况下,所有活动请求都包含阶段时间。。那么还有其他方法吗?使用WHERE子句过滤掉。还跟踪