Reputation: 128
I have a column family called Emails and i am saving mails into this CF, it is taking 100+seconds to write 5000 mails .
I am using i3 processor, 8gb ram . My data center has 6 nodes with replication factor = 2.
Does the size of the data what we store into the Cassandra affects the performance ? What are all the factors that affects write performance and how do i increase the performance ?
Thanks in advance..
Upvotes: 3
Views: 9032
Reputation: 689
First use cassandra http://www.datastax.com/products/datastax-enterprise-visual-admin to find out time taken by Cassandra
You can also use
./nodetool cfstats
to collect the statistics on each keyspace and tables within.
It seems to me that your writer is slow as pointed out by others.
Upvotes: 0
Reputation: 1416
Some of factors you are asking about are:
As an aside, maybe you should consider increasing replication factor to 3, because rf=2 will not give you much - if you use consistency level = quorum, and one node fails, you will not be able to use your cluster; if you decide to use rf=3 with cl=quorum, you still have to read/write to 2 nodes if you want to achieve strong consistency, but in addition, loosing a node will not make the cluster unavailable.
Upvotes: 9