// Specify the minimum trace level you want to see Cassandra.Diagnostics.CassandraTraceSwitch.Level = TraceLevel.Info; // Add a standard .NET trace listener Trace.Listeners.Add(new ConsoleTraceListener());
To unsubscribe from this group and stop receiving emails from it, send an email to csharp-driver-u...@lists.datastax.com.
Hi,You can diagnose the connectivity issue by enabling tracing:// Specify the minimum trace level you want to see Cassandra.Diagnostics.CassandraTraceSwitch.Level = TraceLevel.Info; // Add a standard .NET trace listener Trace.Listeners.Add(new ConsoleTraceListener());Cheers,Jorge
On Fri, May 15, 2015 at 7:49 PM, Hongwei Liu <albert.h...@gmail.com> wrote:
hi,my application solution is :- three cassandra nodes running in Windows Azure Virtual Machine, under hosted service 'http://xxx.cloudapp.net'- a local windows service written with c#, which use cassandra c# driver to manage data in the cassandra clusterin the client application :var Host = "xxx.cloudapp.net";var User = "yyy";var Password = "zzz";var cluster = Cluster.Builder().AddContactPoint(Host).WithCompression(CompressionType.Snappy).WithLoadBalancingPolicy(new RoundRobinPolicy()).WithCredentials(User, Password).Build();var session = cluster.Connect();but the call of 'cluster.Connect()' always takes about 3 to 5 minutes.this is quite slow.i want to know what cause this.how can i improve this? (i can cache the session for next use, but the first time to establish the connection is really quite slow)Thanks in advance for your helps.Hongwei
To unsubscribe from this group and stop receiving emails from it, send an email to csharp-driver-user+unsub...@lists.datastax.com.
João Reis | Senior Software Engineer - Drivers
--To unsubscribe from this group and stop receiving emails from it, send an email to csharp-driver-u...@lists.datastax.com.
To unsubscribe from this group and stop receiving emails from it, send an email to csharp-driver-u...@lists.datastax.com.
Hi Joao,
I figured out to use the Cluster.Builder().WithAddressTranslator(new ToPublicIpAddressTranslater()) option. Inside ToPublicIpAddressTranslater() I translated the local IPs to external IPs and this solved all my issues but I never would have even known about them if I hadn't come across your post about using Trace.
Thanks,
Adin