Hello,
I asked a question on How to use an existing couchbase connection? thread, but I think this deserves a new thread as it is not related to the thread directly.
The problem
Using $sdk->get(‘id’) opens 8091 port.
Test Code
test.php
$cluster = new CouchbaseCluster("couchbase://server");
$bucket = $c->openBucket("abucket");
$bucket->get('doc1');
$bucket->get('doc1');
Output
strace -e trace=connect php ./test.php
connect(3, {sa_family=AF_LOCAL, sun_path="/tmp/.newrelic.sock"}, 22) = 0
connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.xxx.x.2")}, 16) = 0
connect(4, {sa_family=AF_INET, sin_port=htons(11210), sin_addr=inet_addr("10.xxx.xx.164")}, 16) = 0
connect(4, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = 0
connect(4, {sa_family=AF_INET, sin_port=htons(11210), sin_addr=inet_addr("10.xx.xx.11")}, 16) = 0
connect(4, {sa_family=AF_INET, sin_port=htons(11210), sin_addr=inet_addr("10.xxx.xx.11")}, 16) = -1 EINPROGRESS (Operation now in progress)
connect(4, {sa_family=AF_INET, sin_port=htons(11210), sin_addr=inet_addr("10.xxx.xx.11")}, 16) = 0
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.xxx.x.2")}, 16) = 0
connect(4, {sa_family=AF_INET, sin_port=htons(8091), sin_addr=inet_addr("10.xxx.xx.11")}, 16) = 0
connect(4, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = 0
connect(4, {sa_family=AF_INET, sin_port=htons(8091), sin_addr=inet_addr("10.xxx.xx.164")}, 16) = 0
connect(4, {sa_family=AF_INET, sin_port=htons(8091), sin_addr=inet_addr("10.xxx.xx.11")}, 16) = -1 EINPROGRESS (Operation now in progress)
connect(4, {sa_family=AF_INET, sin_port=htons(8091), sin_addr=inet_addr("10.xxx.xx.11")}, 16) = 0
connect(5, {sa_family=AF_INET, sin_port=htons(11210), sin_addr=inet_addr("10.xxx.xx.35")}, 16) = -1 EINPROGRESS (Operation now in progress)
connect(5, {sa_family=AF_INET, sin_port=htons(11210), sin_addr=inet_addr("10.xxx.xx.35")}, 16) = 0
Server Setup
In the test code, couchbase://server is pointing to our load balancer, which is a query service.
According to the original thread (How to use an existing couchbase connection?), it looks like I’m using HTTP to bootstrap the client.
how do I fix this issue? I’ve doubled check that I’m not setting LCB_NO_CCCP=1.