I am new to Couchbase Analytics and was wandring if anyone can share the wisdome.
My Setup:
I have multiple may requests comming from the applicatoin to Couchbase analytics and some are very slow, it take 2 to 10 seconds.
Unfortunalty i can not adjust the server settings for profilling or any other changes.
Action:
I came up with a plen - request the /analytics/admin/completed_requests end point and collec the responces into database for futher analysis.
My question is - Is there any Performance degradation consiquences caused by my every 10 seconds requests to analytics/admin/completed_requests end point?
Many thanks,
Hello @alexei.m ,
The call to completed requests API every 10 seconds should not have a performance impact on the workload as it is a lightweight API call.
However, please note that calling the analytics/admin/completed_requests API returns the last X completed requests, where the default value is 50. (Note that the completed requests are not permanently persisted, they are in-memory).
If you would like to change this value, you can call the following API:
curl -v -u admin:password -X PUT -d requestsArchiveSize=500 http://analyitcs_node_ip:8095/analytics/config/service
Then call the restart API for the change to take effect:
curl -v -u admin:password -X POST http://analyitcs_node_ip:8095/analytics/cluster/restart
Thanks.
1 Like