First off, I’m not quite sure if this is a problem with the server configuration or the PHP SDK itself. I suspect that it is some combination of the two, but haven’t the slightest clue.
I have a remote CB server. When trying to perform any operation against that server (reads/writes/etc) through the PHP SDK I experience a timeout error with something like an 80% frequency. That is, ~80% of the requests fail, saying they have timed out. I see this behavior against each of the buckets on the server, it is not bucket specific.
CouchbaseException [ 23 ]: Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout
The request’s I’m performing are singular gets and sets just to test. Also, there are no other applications running against the server in question, so I don’t think it’s overloaded.
I don’t see this error when I use either a different server with the PHP SDK, or when I use a different SDK (I tested with node) against the problem server. It only seems to occur with the combination of the one particular server and the PHP SDK.
Since the error told me that the operation timed out, I’ve attempted increasing the operation timeout on the bucket. This, unfortunately was to no avail. I then proceeded to increase all “timeout” properties on the bucket that were available.
// Yeah, maybe I've gone a little overboard with this. :( $bucket->operationTimeout = 120 * 1000; $bucket->viewTimeout = 120 * 1000; $bucket->durabilityTimeout = 120 * 1000; $bucket->httpTimeout = 120 * 1000; $bucket->configTimeout = 120 * 1000; $bucket->configNodeTimeout = 120 * 1000; $bucket->htconfigIdleTimeout = 120 * 1000;
Anyway, that didn’t work either, and I don’t know how to debug this further. Any help with this issue would be much appreciated.
c sdk version:
php sdk version: