Question about Number of Thrift Connections

37 views
Skip to first unread message

Kevin Mendel

unread,
Mar 21, 2016, 4:53:34 PM3/21/16
to Blueflood Discuss
When MAX_CASSANDRA_CONNECTIONS=128, netstat shows 257 ESTABLISHED connections on port 9160.
When MAX_CASSANDRA_CONNECTIONS=160, netstat shows 321. 

Can anyone explain?

Vinny Ly

unread,
Mar 21, 2016, 6:19:49 PM3/21/16
to Blueflood Discuss
I think the x2 is because you have one connection for read and one for write per thread (see AstyanaxReader/AstyanaxWriter).

for the +1, do you have an extra client running something that's connecting to cassandra?  like cqlsh?  
I am assuming port 9160 is for your cassandra connections.

Kevin Mendel

unread,
Mar 21, 2016, 6:36:50 PM3/21/16
to Blueflood Discuss
I really just want to know if the number of TCP connections should be 2 X MAX_CASSANDRA_CONNECTIONS. 

You seem to be saying it is, and that it's an Astyanax thing. So thanks for confirming. 

The 1 odd one I am not worried about. But I did have cqlsh running. So I exited, but it didn't go away. cqlsh wouldn't be using thrift anyway, I think. 
Reply all
Reply to author
Forward
0 new messages