You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by "Ney, Richard" <Ri...@Aspect.com> on 2016/12/26 21:26:04 UTC
Has anyone deployed a production cluster with less than 6 nodes per
DC?
My company has a product we’re about to deploy into AWS with Cassandra setup as a two 3 node clusters in two availability zones (m4.2xlarge with 2 500GB EBS volumes per node). We’re doing over a million writes per hour with the cluster setup with R-2 and local quorum writes. We run successfully for several hours before Cassandra goes into the weeds and we start getting write timeouts to the point we must kill the Cassandra JVM processes to get the Cassandra cluster to restart. I keep raising to my upper management that the cluster is severely undersized but management is complaining that setting up 12 nodes is too expensive and to change the code to reduce load on Cassandra.
So, the main question is “Is there any hope of success with a 3 node DC setup of Cassandra in production or are we on a fool’s errand?”
RICHARD NEY
TECHNICAL DIRECTOR, RESEARCH & DEVELOPMENT
+1 (978) 848.6640 WORK
+1 (916) 846.2353 MOBILE
UNITED STATES
richard.ney@aspect.com<ma...@aspect.com>
aspect.com<http://www.aspect.com/>
[mailSigLogo-rev.jpg]
This email (including any attachments) is proprietary to Aspect Software, Inc. and may contain information that is confidential. If you have received this message in error, please do not read, copy or forward this message. Please notify the sender immediately, delete it from your system and destroy any copies. You may not further disclose or distribute this email or its attachments.
Re: Has anyone deployed a production cluster with less than 6 nodes
per DC?
Posted by Harikrishnan Pillai <HP...@walmartlabs.com>.
1 million write per hour is around 250 writes per second .its easily achievable with 3 nodes .make sure that you have a good gc tuning and compaction tunings.
Sent from my iPhone
On Dec 26, 2016, at 1:27 PM, Ney, Richard <Ri...@Aspect.com>> wrote:
My company has a product we're about to deploy into AWS with Cassandra setup as a two 3 node clusters in two availability zones (m4.2xlarge with 2 500GB EBS volumes per node). We're doing over a million writes per hour with the cluster setup with R-2 and local quorum writes. We run successfully for several hours before Cassandra goes into the weeds and we start getting write timeouts to the point we must kill the Cassandra JVM processes to get the Cassandra cluster to restart. I keep raising to my upper management that the cluster is severely undersized but management is complaining that setting up 12 nodes is too expensive and to change the code to reduce load on Cassandra.
So, the main question is "Is there any hope of success with a 3 node DC setup of Cassandra in production or are we on a fool's errand?"
RICHARD NEY
TECHNICAL DIRECTOR, RESEARCH & DEVELOPMENT
+1 (978) 848.6640 WORK
+1 (916) 846.2353 MOBILE
UNITED STATES
richard.ney@aspect.com<ma...@aspect.com>
aspect.com<http://www.aspect.com/>
[mailSigLogo-rev.jpg]
This email (including any attachments) is proprietary to Aspect Software, Inc. and may contain information that is confidential. If you have received this message in error, please do not read, copy or forward this message. Please notify the sender immediately, delete it from your system and destroy any copies. You may not further disclose or distribute this email or its attachments.
Re: Has anyone deployed a production cluster with less than 6 nodes
per DC?
Posted by Matija Gobec <ma...@gmail.com>.
There is nothing wrong with general purpose EBS volumes if we are talking
about gp2 (SSD backed ones). With bigger volumes you get more IOPs and
3.4TB volume gives you 10.000 IOPs which, in your case, is an overkill (you
are probably looking at 1TB).
Take a look at TWCS since you are inserting data with TTL and you could
benefit from it depending on your data patterns.
On Tue, Dec 27, 2016 at 12:58 AM, Ney, Richard <Ri...@aspect.com>
wrote:
> Everyone, thank you for the responses
>
>
>
> Jon, to answer your question we’re using the General Purpose SSD with IOPS
> of 1500/3000 so based on your definition I guess we’re using the awful ones
> since they aren’t provisioned IOPS. We’re also trying G1 garbage collection.
>
>
>
> I also just looked at our application setting overrides and it appears we
> are using CL=ONE with RF=2 on both of the DCs. We’ve also disabled durable
> writes as shown in the keyspace creation statement below
>
>
>
> - CREATE KEYSPACE reporting WITH replication = {'class':
> 'NetworkTopologyStrategy', 'us-east_dc1': '2', 'us-east_dc2': '2'} AND
> durable_writes = false;
>
>
>
> The main table we’re interacting with has these settings for compaction
> (These are Akka persistence journal tables)
>
>
>
> compaction = {'bucket_high': '1.5', 'bucket_low': '0.5', 'class':
> 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy',
> 'enabled': 'true', 'max_threshold': '32', 'min_sstable_size': '50',
> 'min_threshold': '4', 'tombstone_compaction_interval': '86400',
> 'tombstone_threshold': '0.2', 'unchecked_tombstone_compaction': 'false'}
>
>
>
> We’re also planning to set a TTL of about 3 hours on the table since we’re
> using these tables for business continuity so we don’t need the data to
> persist for long periods.
>
>
>
> *RICHARD NEY*
>
> TECHNICAL DIRECTOR, RESEARCH & DEVELOPMENT
>
> *+1 (978) 848.6640 <+1%20978-848-6640>* WORK
>
> *+1 (916) 846.2353 <+1%20916-846-2353> *MOBILE
>
> *UNITED STATES*
>
> *richard.ney@aspect.com <ri...@aspect.com>*
>
> *aspect.com <http://www.aspect.com/>*
>
>
>
> [image: mailSigLogo-rev.jpg]
>
>
>
> *From: *Jonathan Haddad <jo...@jonhaddad.com>
> *Reply-To: *"user@cassandra.apache.org" <us...@cassandra.apache.org>
> *Date: *Monday, December 26, 2016 at 2:02 PM
> *To: *"user@cassandra.apache.org" <us...@cassandra.apache.org>
> *Subject: *Re: Has anyone deployed a production cluster with less than 6
> nodes per DC?
>
>
>
> There's nothing wrong with running a 3 node DC. A million writes an hour
> is averaging less than 300 writes a second, which is pretty trivial.
>
>
>
> Are you running provisioned SSD EBS volumes or the traditional, awful
> ones?
>
>
>
> RF=2 with Quorum is kind of pointless, that's the same as CL=ALL. Not
> recommended. I don't know why your timeouts are happening, but when they
> do, RF=2 w/ QUORUM is going to make the problem worse. Either use RF=3 or
> use CL=ONE.
>
>
>
> Your management is correct here. Throwing more hardware at this problem
> is the wrong solution given that your current hardware should be able to
> handle over 100x what it's doing right now.
>
>
>
> Jon
> This email (including any attachments) is proprietary to Aspect Software,
> Inc. and may contain information that is confidential. If you have received
> this message in error, please do not read, copy or forward this message.
> Please notify the sender immediately, delete it from your system and
> destroy any copies. You may not further disclose or distribute this email
> or its attachments.
>
Re: Has anyone deployed a production cluster with less than 6 nodes
per DC?
Posted by "Ney, Richard" <Ri...@Aspect.com>.
Everyone, thank you for the responses
Jon, to answer your question we’re using the General Purpose SSD with IOPS of 1500/3000 so based on your definition I guess we’re using the awful ones since they aren’t provisioned IOPS. We’re also trying G1 garbage collection.
I also just looked at our application setting overrides and it appears we are using CL=ONE with RF=2 on both of the DCs. We’ve also disabled durable writes as shown in the keyspace creation statement below
- CREATE KEYSPACE reporting WITH replication = {'class': 'NetworkTopologyStrategy', 'us-east_dc1': '2', 'us-east_dc2': '2'} AND durable_writes = false;
The main table we’re interacting with has these settings for compaction (These are Akka persistence journal tables)
compaction = {'bucket_high': '1.5', 'bucket_low': '0.5', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'enabled': 'true', 'max_threshold': '32', 'min_sstable_size': '50', 'min_threshold': '4', 'tombstone_compaction_interval': '86400', 'tombstone_threshold': '0.2', 'unchecked_tombstone_compaction': 'false'}
We’re also planning to set a TTL of about 3 hours on the table since we’re using these tables for business continuity so we don’t need the data to persist for long periods.
RICHARD NEY
TECHNICAL DIRECTOR, RESEARCH & DEVELOPMENT
+1 (978) 848.6640 WORK
+1 (916) 846.2353 MOBILE
UNITED STATES
richard.ney@aspect.com<ma...@aspect.com>
aspect.com<http://www.aspect.com/>
[mailSigLogo-rev.jpg]
From: Jonathan Haddad <jo...@jonhaddad.com>
Reply-To: "user@cassandra.apache.org" <us...@cassandra.apache.org>
Date: Monday, December 26, 2016 at 2:02 PM
To: "user@cassandra.apache.org" <us...@cassandra.apache.org>
Subject: Re: Has anyone deployed a production cluster with less than 6 nodes per DC?
There's nothing wrong with running a 3 node DC. A million writes an hour is averaging less than 300 writes a second, which is pretty trivial.
Are you running provisioned SSD EBS volumes or the traditional, awful ones?
RF=2 with Quorum is kind of pointless, that's the same as CL=ALL. Not recommended. I don't know why your timeouts are happening, but when they do, RF=2 w/ QUORUM is going to make the problem worse. Either use RF=3 or use CL=ONE.
Your management is correct here. Throwing more hardware at this problem is the wrong solution given that your current hardware should be able to handle over 100x what it's doing right now.
Jon
This email (including any attachments) is proprietary to Aspect Software, Inc. and may contain information that is confidential. If you have received this message in error, please do not read, copy or forward this message. Please notify the sender immediately, delete it from your system and destroy any copies. You may not further disclose or distribute this email or its attachments.
Re: Has anyone deployed a production cluster with less than 6 nodes
per DC?
Posted by Jonathan Haddad <jo...@jonhaddad.com>.
There's nothing wrong with running a 3 node DC. A million writes an hour
is averaging less than 300 writes a second, which is pretty trivial.
Are you running provisioned SSD EBS volumes or the traditional, awful ones?
RF=2 with Quorum is kind of pointless, that's the same as CL=ALL. Not
recommended. I don't know why your timeouts are happening, but when they
do, RF=2 w/ QUORUM is going to make the problem worse. Either use RF=3 or
use CL=ONE.
Your management is correct here. Throwing more hardware at this problem is
the wrong solution given that your current hardware should be able to
handle over 100x what it's doing right now.
Jon
On Mon, Dec 26, 2016 at 1:28 PM Carlos Rolo <ro...@pythian.com> wrote:
> It depends on a lot of factors.
>
> What causes the cluster to get crazy? I/O, Network, CPU?
>
> I manage clusters of all sizes (even 3 nodes per DC) but it all depends on
> usage and configuration.
>
> Regards,
>
> Carlos
>
> Regards,
>
> Carlos Juzarte Rolo
> Cassandra Consultant / Datastax Certified Architect / Cassandra MVP
>
> Pythian - Love your data
>
> rolo@pythian | Twitter: @cjrolo | Skype: cjr2k3 | Linkedin:
> *linkedin.com/in/carlosjuzarterolo
> <http://linkedin.com/in/carlosjuzarterolo>*
> Mobile: +351 918 918 100 <+351%20918%20918%20100>
> www.pythian.com
>
> On Mon, Dec 26, 2016 at 9:26 PM, Ney, Richard <Ri...@aspect.com>
> wrote:
>
> My company has a product we’re about to deploy into AWS with Cassandra
> setup as a two 3 node clusters in two availability zones (m4.2xlarge with 2
> 500GB EBS volumes per node). We’re doing over a million writes per hour
> with the cluster setup with R-2 and local quorum writes. We run
> successfully for several hours before Cassandra goes into the weeds and we
> start getting write timeouts to the point we must kill the Cassandra JVM
> processes to get the Cassandra cluster to restart. I keep raising to my
> upper management that the cluster is severely undersized but management is
> complaining that setting up 12 nodes is too expensive and to change the
> code to reduce load on Cassandra.
>
>
>
> So, the main question is “Is there any hope of success with a 3 node DC
> setup of Cassandra in production or are we on a fool’s errand?”
>
>
>
> *RICHARD NEY*
>
> TECHNICAL DIRECTOR, RESEARCH & DEVELOPMENT
>
> *+1 (978) 848.6640 <+1%20978-848-6640>* WORK
>
> *+1 (916) 846.2353 <+1%20916-846-2353> *MOBILE
>
> *UNITED STATES*
>
> *richard.ney@aspect.com <ri...@aspect.com>*
>
> *aspect.com <http://www.aspect.com/>*
>
>
>
> [image: mailSigLogo-rev.jpg]
> This email (including any attachments) is proprietary to Aspect Software,
> Inc. and may contain information that is confidential. If you have received
> this message in error, please do not read, copy or forward this message.
> Please notify the sender immediately, delete it from your system and
> destroy any copies. You may not further disclose or distribute this email
> or its attachments.
>
>
>
> --
>
>
>
>
Re: Has anyone deployed a production cluster with less than 6 nodes
per DC?
Posted by Carlos Rolo <ro...@pythian.com>.
It depends on a lot of factors.
What causes the cluster to get crazy? I/O, Network, CPU?
I manage clusters of all sizes (even 3 nodes per DC) but it all depends on
usage and configuration.
Regards,
Carlos
Regards,
Carlos Juzarte Rolo
Cassandra Consultant / Datastax Certified Architect / Cassandra MVP
Pythian - Love your data
rolo@pythian | Twitter: @cjrolo | Skype: cjr2k3 | Linkedin:
*linkedin.com/in/carlosjuzarterolo
<http://linkedin.com/in/carlosjuzarterolo>*
Mobile: +351 918 918 100
www.pythian.com
On Mon, Dec 26, 2016 at 9:26 PM, Ney, Richard <Ri...@aspect.com>
wrote:
> My company has a product we’re about to deploy into AWS with Cassandra
> setup as a two 3 node clusters in two availability zones (m4.2xlarge with 2
> 500GB EBS volumes per node). We’re doing over a million writes per hour
> with the cluster setup with R-2 and local quorum writes. We run
> successfully for several hours before Cassandra goes into the weeds and we
> start getting write timeouts to the point we must kill the Cassandra JVM
> processes to get the Cassandra cluster to restart. I keep raising to my
> upper management that the cluster is severely undersized but management is
> complaining that setting up 12 nodes is too expensive and to change the
> code to reduce load on Cassandra.
>
>
>
> So, the main question is “Is there any hope of success with a 3 node DC
> setup of Cassandra in production or are we on a fool’s errand?”
>
>
>
> *RICHARD NEY*
>
> TECHNICAL DIRECTOR, RESEARCH & DEVELOPMENT
>
> *+1 (978) 848.6640 <+1%20978-848-6640>* WORK
>
> *+1 (916) 846.2353 <+1%20916-846-2353> *MOBILE
>
> *UNITED STATES*
>
> *richard.ney@aspect.com <ri...@aspect.com>*
>
> *aspect.com <http://www.aspect.com/>*
>
>
>
> [image: mailSigLogo-rev.jpg]
> This email (including any attachments) is proprietary to Aspect Software,
> Inc. and may contain information that is confidential. If you have received
> this message in error, please do not read, copy or forward this message.
> Please notify the sender immediately, delete it from your system and
> destroy any copies. You may not further disclose or distribute this email
> or its attachments.
>
--
--