gocql icon indicating copy to clipboard operation
gocql copied to clipboard

Client is sending OPTIONS command to all shards in a node - while it should be sufficient to get it from a single shard

Open mykaul opened this issue 2 years ago • 3 comments
trafficstars

The response (SUPPORTED) will be the same from all shards - it's useless to send it to all shards and just an overhead to both sides. (note: seen in a packet capture - unsure what driver was used, I suspect the GoCQL driver)

mykaul avatar Jun 22 '23 11:06 mykaul

Note that options frame is often used as L7 ping due to the lack of better alternatives.

mmatczuk avatar Jun 22 '23 11:06 mmatczuk

Note that options frame is often used as L7 ping due to the lack of better alternatives.

Good to know! TCP keepalive (while not L7) seems sufficient to me though.

mykaul avatar Jun 22 '23 11:06 mykaul

Could it be that it needs it for SCYLLA_SHARD_AWARE_PORT information?

mykaul avatar Aug 30 '23 08:08 mykaul

https://github.com/scylladb/gocql/issues/162 is not fixing it, but making it less noisy.

mykaul avatar May 08 '24 14:05 mykaul