cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal August├Żn <>
Subject Network latency on Cassandra 0.7 (TFramedTransport)
Date Fri, 17 Sep 2010 13:31:35 GMT

I'm experiencing big network latency when using TFramedTransport.

The latency is about 200 ms on every request when I'm connected to another
computer. On localhost, all goes well.

I can now solve this issue by changing "thrift_framed_transport_size_in_mb"
to 0 (so disable framed transport) and use TBufferedTransport (then all is
ok). But I know that this is deprecated scenario...

This conversation deals with the same problem (but I cannot use the

Cassandra version: 0.7 (build from trunk)
Thrift: recommended revision (959516)
Client: C# on Windows7
Server OS: Windows 2008
Cassandra Configuration (yaml): default ("data_file_directories",
"commitlog_directory" and "rpc_address" changed only)

Super-simple C# example:

var sw = Stopwatch.StartNew();
var coreTransport = new Thrift.Transport.TSocket("some.server", 9160);
var transport = new Thrift.Transport.TFramedTransport(coreTransport);
var protocol = new Thrift.Protocol.TBinaryProtocol(transport);
var client = new Apache.Cassandra.Cassandra.Client(protocol);
Console.WriteLine("Connection: {0} ms", sw.ElapsedMilliseconds);

sw = Stopwatch.StartNew();
var v = client.describe_cluster_name();
Console.WriteLine("Time: {0} ms", sw.ElapsedMilliseconds);
Console.WriteLine("Value: {0}", v);

Maybe I'm using Thrift in bad way.

Thank you.


View raw message