Connection Latency with Cassandra 4.0.x

2023-01-11 Thread MyWorld
Hi all, We are facing a connection latency of 200ms between API server and db server during connection. We are working with Apache cassandra 4.0.7 and open jdk ver 11.0.17. We are using php on API side and connecting using php Cassandra driver (CPP ver 2.7) with below string. $cluster = Cassandra::

Re: Connection Latency with Cassandra 4.0.x

2023-01-11 Thread Elliott Sims
Consistently 200ms, during the back-and-forth negotiation rather than the handshake? That sounds suspiciously like Nagle interacting with Delayed ACK. On Wed, Jan 11, 2023 at 8:41 AM MyWorld wrote: > Hi all, > We are facing a connection latency of 200ms between API server and db > server during

Re: Connection Latency with Cassandra 4.0.x

2023-01-11 Thread MyWorld
In addition to this, the established connection count to db is increasing on every new API hit. Ideally existing connection should be reused. Moreover even if we restart Cassandra the connection from the API end do not get killed and remains the same. On Thu, 12 Jan, 2023, 02:16 Elliott Sims, wr