Random slowness in couchbase calls

Hi All,

We have 3.1. couchbase installation.While running the applications in our test pipeline we have seen that some of the REST calls are failing randomly. When debugged, root cause seems to be couchbase sometimes randomly taking more time to execute call. Application uses couchbase java client library.

Sometimes call taking more than 60 seconds to finish, which is too much for the application which times out the user request. I don’t really get anything from couchbase logs. Perhaps I dont know how to read those logs. Is there a way we can correlate a call made to CB server to what goes in the log? Which logs I should really refer to find out this issue?
What parameters can result into slowness and how to find out whats causing it?
Appreciate if you can help to resolve the issue.