Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why don't you start off with a "single & small" Cassandra server as you usually do it with MySQL?

For any website just starting out, the load initially is minimal & grows with a slow pace initially. People usually start with their MySQL based sites with a single server(***that too a VPS not a dedicated server) running as both app server as well as DB server & usually get too far with this setup & only as they feel the need they separate the DB from the app server giving it a separate VPS server. This is what a start up expects the things to be while planning about resources procurement.

But so far what I have seen, it's something very different with Cassandra. People usually recommend starting out with atleast a 3 node cluster, (on dedicated servers) with lots & lots of RAM. 4GB or 8GB RAM is what they suggest to start with. So is it that Cassandra requires more hardware resources in comparison to MySQL, for a website to deliver similar performance, serve similar load/ traffic & same amount of data. I understand about higher storage requirements of Cassandra due to replication but what about other hardware resources ?

Can't we start off with Cassandra based apps just like MySQL. Starting with 1 or 2 VPS & adding more whenever there's a need ?

Edit:

I don't want to compare apples with oranges. I just want to know how much more dangerous situation I may be in when I start out with a single node VPS based cassandra installation Vs a single node VPS based MySQL installation. Difference between these two situations. Are cassandra servers more prone to be unavailable than MySQL servers ? What is bad if I put tomcat too along with Cassandra as people use LAMP stack on single server.

like image 714
Rajat Gupta Avatar asked Aug 27 '13 10:08

Rajat Gupta


People also ask

Is it normal to want to be single when in a relationship?

"This doesn't mean that they are not happy in their relationships, and it doesn't mean they necessarily want to replace their partner." Dr Becky Spelman, We-Vibe's psychologist, agrees there's nothing wrong with fantasy and imagining yourself in different scenarios.

Is it unhealthy to be single?

Single people have a greater risk of cardiovascular disease and stroke than married people, and have higher mortality overall, researchers found in a study published Tuesday in the journal Heart.

Why is it better to be married than single?

Researchers there screened 3.5 million adults for cardiovascular problems and found that those who were married had less heart disease and healthier blood vessels throughout the body than people who were single, divorced or widowed.

Is being single better than a relationship?

It is true that being single is better than being in a bad relationship or a bad marriage. It is demonstrably true — research shows that. Actually, research shows more than that. Being single is even better than being in a romantic relationship that isn't particularly bad.


1 Answers

TL;DR;
You can even start with a single node, but you loose the highly available factor of c*.

Cassandra is built for systems that handle huge volumes of data, terabytes and in some cases petabytes. Many users typically switch from MySQL (and lots of other RDBMS) to Cassandra once they find that their current DB system can't handle the data load efficiently (querying gets slow, managing storage becomes challenging etc.)


Why 4-8GB gb of ram?

The 4-8 GB of ram is to do with the JVM and the size of ram on efficient garbage collection. The advice is stating not that you should start on 8 GB, but hat you shouldn't have more than 8GB

This doesn't mean to say that you cant use Cassandra to start up a single node on a very basic machine (some people actually have cassandra running on a raspberry pi).


Why do people recommend 3 nodes?

Availability is one of cassandra's main selling points. If you have 2 nodes with RF=2 then you cant perform writes if a single node goes down. If you have 3 nodes you can still perform both reads and writes.

like image 78
Lyuben Todorov Avatar answered Oct 08 '22 21:10

Lyuben Todorov