SlideShare a Scribd company logo
Brooke Jensen
VP Technical Operations & Customer Services
Instaclustr
Lessons learned from running over 1800 2000 clusters
Instaclustr
• Launched at 2014 Summit.
• Now 25+ staff in 4 countries.
• Engineering (dev & ops) from Canberra, AU
• Cassandra as a service (CaaS)
• AWS, Azure, Softlayer, GCP in progress.
• Automated provisioning – running within minutes.
• 24/7 monitoring and response.
• Repairs, backups, migrations, etc.
• Expert Cassandra support.
• Spark and Zeppelin add-ons.
• Enterprise support
• For customers who cannot use a managed service or require greater level of control of their cluster.
• Gain 24/7 access to our Engineers for “third level” Cassandra support
• Troubleshooting, advice, emergency response.
• Consulting solutions
• Data model design and/or review
• Cluster design, sizing, performance testing and tuning
• Training for developers and operational engineers
• Find out more or start a free trial
© DataStax, All Rights Reserved. 2
“Globally unique perspective of Cassandra.”
• Our customer base:
• Diverse. From early stage start-ups to large well-
known global enterprises.
• Education, Retail, Marketing, Advertising, Finance,
Insurance, Health, Social, Research
• All use cases: Messaging, IoT, eCommerce, Analytics,
Recommendations, Security.
• Small development clusters to large scale production
deployments requiring 100% uptime.
• Nodes under management:
• 700+ active nodes under management,
• All versions from Cassandra 2.0.11 - Cassandra 3.7
© DataStax, All Rights Reserved. 3
About Me
Brooke Jensen
VP Technical Operations, Customer Services / Cassandra MVP
• Previous: Senior Software Engineer, Instaclustr
• Education: Bachelor Software Engineering
• Life before Instaclustr:
• 11+ years Software Engineering.
• Specialized in performance optimization of large enterprise systems (e.g. Australian Customs, Taxation
Office, Department of Finance, Deutsche Bank)
• Extensive experience managing and resolving major system incidents and outages.
• Lives: Canberra, Au
© DataStax, All Rights Reserved. 4
Talk Overview
• Collection of common problems we see and manage on a daily basis.
• Examples and war stories from the field.
• HOWTOs, tips and tricks.
• Covering:
• Cluster Design
• Managing compactions
• Large partitions
• Disk usage and management
• Tombstones and Deletes
• Common sense advice
© DataStax, All Rights Reserved. 5
Cluster Design Basics – Racks & RF
• For production we recommend (minimum): 3 nodes in 3 racks with RF3.
 Make racks a multiple of RF.
• Use logical racks and map to physical racks.
• Each rack will contain a full copy of the data.
• Can survive the loss of nodes without losing QUORUM (strong consistency)
• Use NetworkTopologyStrategy. It’s not just for multi-DC, but is also “rack aware”
ALTER KEYSPACE <keyspace> WITH replication = {'class': 'NetworkTopologyStrategy','DC1': '3'}
© DataStax, All Rights Reserved. 6
Getting this right upfront will make
management of the cluster much
easier in the future.
R2
R2
R2
R1
R1
R1
R3
R3
R3
The case for single racks
• Datastax docs suggest not to use racks?
• “It’s hard to set up”
• “Expanding is difficult” – not if using vnodes (default from 2.0.9)
• Spending the time to set up is WORTH IT!
• Minimizes downtime during upgrades and maintenance
• Can perform upgrades/restarts rack-by-rack
• Can (technically) lose a whole rack without downtime
• We go one further and map racks to AWS AZ:
© DataStax, All Rights Reserved. 7
Setting it up
yaml:
endpoint_snitch: GossipingPropertyFileSnitch
cassandra-rackdc.properties:
Executing 'cat /etc/cassandra/cassandra-rackdc.properties' on 52.37.XXX.XXX
Host 52.37.XXX.XXX response:
#Generated by Instaclustr
#Mon Mar 28 19:22:21 UTC 2016
dc=US_WEST_2
prefer_local=true
rack=us-west-2b
© DataStax, All Rights Reserved. 8
Compactions – the basics
© DataStax, All Rights Reserved. 10
• Regular compactions are an integral part of any healthy Cassandra cluster.
• Occur periodically to purge tombstones, merge disparate row data into new SSTables to reclaim
disk space and keep read operations optimized.
• Can have a significant disk, memory (GC), cpu, IO overhead.
• Are often the cause of “unexplained” latency or IO issues in the cluster
• Ideally, get the compaction strategy right at table creation time. You can change it later, but that
may force a re-write all of the data in that CF using the new Compaction Strategy
• STCS – Insert heavy and general workloads
• LCS – Read heavy workloads, or more updates than inserts
• DTCS – Not where there are updates to old data or inserts that are out of order.
Monitoring Compactions
$ nodetool compactionstats -H
pending tasks: 130
compaction type keyspace table completed total unit progress
Compaction instametrics events_raw 1.35 GB 1.6 GB bytes 84.77%
Compaction instametrics events_raw 1.28 GB 1.6 GB bytes 80.21%
Active compaction remaining time : 0h00m33s
• Not uncommon for large compactions to get “stuck” or fall behind.
• On 2.0 in particular. Significantly improved in 2.1, even better in 3
• A single node doing compactions can cause latency issues across
the whole cluster, as it will become slow to respond to queries.
• Heap pressure will cause frequent flushing of Memtables to disk.
=> many small SSTables => many compactions
© DataStax, All Rights Reserved. 11
Compactions: other things to check
© DataStax, All Rights Reserved. 12
Managing Compactions
Few things you can do if compactions are causing issues (e.g. latency)
Throttle: nodetool setcompactionthroughput 16
Stop and disable : nodetool stop COMPACTION
Take the node out (and unthrottle):
nodetool disablebinary && nodetool disablegossip && nodetool disablethrift && nodetool setcompactionthroughput 0
© DataStax, All Rights Reserved. 13
Set until C* is restarted. On 2.1 applies to NEW
compactions, on 2.2.5+ applies instantly
Other nodes will mark this node as down,
So need to complete within HH window (3h)
Case is important!
Stops currently active compactions only.
Compaction starts
Node taken out
Large Partitions
• One of the biggest problems we deal with. Root cause of many other issues, and a PITA to manage.
• We recommend to keep them 100MB or less.
Creates issues with:
Compactions
In 2.0, compactions of partitions > 64MB were considerably slower. Partitions >2GB often getting stuck.
Improved in 2.1 and confirmed we observe less of these problems in upgraded clusters.
Adding, replacing nodes – streaming will often fail.
Querying large partitions is considerably slower. The whole partition is stored on every replica node,
leading to hotspots.
Can be hard to get rid of.
© DataStax, All Rights Reserved. 14
Checking partition sizes
~ $ nodetool cfstats -H keyspace.columnfamily
…
Compacted partition minimum bytes: 125 bytes
Compacted partition maximum bytes: 11.51 GB
Compacted partition mean bytes: 844 bytes
$ nodetool cfhistograms keyspace columnfamily
Percentile SSTables Write Latency Read Latency Partition Size Cell Count
(micros) (micros) (bytes)
50% 1.00 14.00 124.00 372 2
75% 1.00 14.00 1916.00 372 2
95% 3.00 24.00 17084.00 1597 12
98% 4.00 35.00 17084.00 3311 24
99% 5.00 50.00 20501.00 4768 42
Min 0.00 4.00 51.00 125 0
Max 5.00 446.00 20501.00 12359319162 129557750
© DataStax, All Rights Reserved. 15
Huge delta between 99th percentile and
Max indicates most data (bytes) is in
one partition.
Disk Usage
• As a guide, maintain nodes under 70% (50% for STCS).
• At 80% take action.
• Why so much headroom?
• Compactions will cause a temporary increase in disk usage while both sets of SSTables exist, but
once complete will free up space that was occupied by old SSTables.
• FYI, repair requests a snapshot before execution.
• Recovering from a filled disk can be a pain, and you CAN LOSE DATA.
• C* won’t start, for a start.
• Nodes out of the cluster during recovery >3 hours will require repair.
© DataStax, All Rights Reserved. 16
Sep 08 05:38:15 cassandra[17118]: at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_91]
Sep 08 05:38:15 cassandra[17118]: Caused by: java.io.IOException: No configured data directory contains
enough space to write 99 bytes
Sep 08 05:38:16 systemd[1]: cassandra.service: Main process exited, code=exited,
Sep 08 05:38:16 systemd[1]: cassandra.service: Unit entered failed state.
Try this first: stop writing data.
© DataStax, All Rights Reserved. 17
Can’t stop? Won’t stop?
Quick win: clearing snapshots.
nodetool cfstats or nodetool listsnapshots will show if you have any snapshots to clear:
© DataStax, All Rights Reserved. 18
nodetool clearsnapshot
Finding data to remove
© DataStax, All Rights Reserved. 19
I like to look at the data folders on disk – easier to identify than with cfstats.
Note also: might not just be your data. Space can commonly be consumed by snapshots or even system keyspaces.
• We’ve had nodes nearly fill up because of stored hints.
Tip: Removing data
© DataStax, All Rights Reserved. 20
DELETE - creates tombstones which will not be purged by compactions until after gc_grace_seconds
• Default is 10 days, but you can ALTER it and it is effective immediately.
• Make sure all nodes are UP before changing gc_grace.
TRUNCATE or DROP – only creates a snapshot as a backup before removing all the data.
• The disk space is released as soon as the snapshot is cleared
• Preferred where possible.
Disk Usage – Other Actions to try
• Add Nodes + run cleanups
• After all new nodes are running, run nodetool cleanup on each of the previously existing nodes to remove
the keys that no longer belong to those nodes.
• If on AWS, add EBS (requires restart).
• Disable autocompactions (will negatively effect read latency so not recommended)
© DataStax, All Rights Reserved. 21
Tip: JOINING (adding) nodes
• When you add nodes to a cluster, they will typically overstream data initially using more disk space than you expect. Duplicates will be
compacted away eventually.
• Disable compaction throttling while the node is JOINING.
• If streaming/joining fails and you have to restart it, the node will restream ALL SSTables again from the beginning, potentially filling up the
disks. ‘rm’ cassandra data folder before restarting.
Compaction spikes
• Compactions, particularly large ones, will cause spikes in disk usage while both sets of SSTables
exist.
• Ideally, you want the compaction(s) to complete and free up space, but how can you assess
whether that is possible?
Unlikely.
© DataStax, All Rights Reserved. 22
Compaction spikes
1. Find the tmp SSTable associated with the current compaction. From this, together with %
complete in compactionstats you can get a feel for how much more space you need:
$ -rw-r--r-- find /var/lib/cassandra/data/ -name "*tmp*Data.db" | xargs ls –lh
1 root root 4.5G Sep 1 14:56 keyspace1/posts/keyspace1-posts-tmp-ka-118955-Data.db
2. Keep a very close eye the disk, compaction and size of tmp file:
watch –n30 'df -h; ls -lh keyspace1-posts-tmp-ka-118955-Data.db; nodetool compactionstats –H’
Filesystem Size Used Avail Use% Mounted on
/dev/md127 787G 746G 506M 100% /var/lib/cassandra
© DataStax, All Rights Reserved. 23
Case study: Yesterday’s drama
Scene:
• 15 node production cluster, 12 * m4xl-1600 nodes + 3 * m4xl-800 nodes (ie 3 with half storage)
• Keyspace is RF 2 and application requires QUORUM
• (sum_of_replication_factors / 2) + 1 = 2 (ie both replicas)
• Therefore can’t take nodes out (or let them die) as it will cause application outage.
• Peak processing time is 8am-6pm.
• Need to keep the node up until the end of the day.
• Write heavy workload
© DataStax, All Rights Reserved. 24
09:33:
~ $ df –h
Filesystem Size Used Avail Use% Mounted on
/dev/md127 787G 777G 10G 99% /var/lib/cassandra
11:03:
Filesystem Size Used Avail Use% Mounted on
/dev/md127 787G 781G 5.9G 100% /var/lib/cassandra
12:37:
~ $ nodetool disableautocompaction
~ $ df –h
Filesystem Size Used Avail Use% Mounted on
/dev/md127 787G 769G 18G 98% /var/lib/cassandra
© DataStax, All Rights Reserved. 25
© DataStax, All Rights Reserved. 26
13:40:
Filesystem Size Used Avail Use% Mounted on
/dev/md127 787G 785G 2G 100% /var/lib/cassandra
Crap.
Solution was to move one CF to EBS in the background before the disk fills up.
~ $ du -hs /var/lib/cassandra/data/prod/*
89G /var/lib/cassandra/data/prod/cf-39153090119811e693793df4078eeb99
38G /var/lib/cassandra/data/prod/cf_one_min-e17256f091a011e5a5c327b05b4cd3f4
~ $ rsync -aOHh /var/lib/cassandra/data/prod/cf_one_min-e17256f091a011e5a5c327b05b4cd3f4 /mnt/ebs/
Meanwhile:
Filesystem Size Used Avail Use% Mounted on
/dev/md127 787G 746G 906M 100% /var/lib/cassandra
/dev/xvdp 79G 37G 39G 49% /mnt/ebs
Now just mount bind it, and restart Cassandra:
/dev/xvdp on /lib/cassandra/data/prod/cf_one_min-e17256f091a011e5a5c327b05b4cd3f4
© DataStax, All Rights Reserved. 27
Monitoring – how we detect problems
• Client read and write latency
• Local CF read and write latency
• Number of reads or writes deviating from average
• Outlier nodes
• Down nodes
• Disk usage
• Pending compactions
• Check for large partitions (data model issues)
• In the logs:
• Large batch warnings
• Tombstone warnings
• Excessive GC and/or long pauses
© DataStax, All Rights Reserved. 28
Case study: Don’t break your cluster.
WARNING! It is possible to get your cluster into a state from which you are unable to recover
without significant downtime or data loss.
© DataStax, All Rights Reserved. 29
“This happened during normal operations at night, so I don't think any of us were doing anything
abnormal. We've been doing some processing that creates pretty heavy load over the last few weeks...”
Orly?
© DataStax, All Rights Reserved. 30
Unthrottled data load
• Load average of 56, on 8 core machines.
• Nodes were saturated and exhausted heap space.
• Regular GC pauses of 12000ms - 17000ms
• Memtables are frequently flushed to disk.
• This resulted in over 120,000 small SSTables being created on some nodes.
• Data was spread across thousands of SSTables, so read latency skyrocketed.
• Was using paxos writes (LWT), which require a read before every write. This caused writes to fail
because as reads were timing out.
• Compactions could not keep up, and added additional load to the already overloaded nodes.
• C* eventually crashed on most nodes, leaving some corrupt SSTables.
© DataStax, All Rights Reserved. 31
17 second GC pauses. Nice.
Aug 16 15:51:58 INFO o.a.cassandra.service.GCInspector ConcurrentMarkSweep GC in 12416ms. CMS
Old Gen: 6442450872 -> 6442450912; Par Eden Space: 1718091776 -> 297543768; Par Survivor Space:
214695856 -> 0
Aug 16 15:52:20 INFO o.a.cassandra.service.GCInspector ConcurrentMarkSweep GC in 17732ms. CMS
Old Gen: 6442450912 -> 6442450864; Par Eden Space: 1718091776 -> 416111040; Par Survivor Space:
214671752 -> 0
Heap pressure causes C* to flush memtables to disk. This created >120,000 Memtables on some
nodes.
 3+ days just to catch up on compactions, which were continually failing because of:
Aug 18 22:11:43 java.io.FileNotFoundException: /var/lib/cassandra/data/keyspace/cf-
f4683d90f88111e586b7e962b0d85be3/keyspace-cf-ka-1243722-Data.db (Too many open files)
java.lang.RuntimeException: java.io.FileNotFoundException: /var/lib/cassandra/data/keyspace/cf-
f4683d90f88111e586b7e962b0d85be3/keyspace-cf-ka-1106806-Data.db (No such file or directory)
© DataStax, All Rights Reserved. 32
1. Once we got C* stable and caught up on compactions, there were still corrupt SSTables present and
nodes were in an inconsistent state.
2. Couldn’t fix with repairs:
ERROR o.apache.cassandra.repair.Validator Failed creating a merkle tree for [repair #21be1ac0-6809-11e6-a098-
b377cb035d78 on keyspace/cf, (-227556542627198517,-225096881583623998]], /52.XXX.XXX.XXX (see log for details)
ERROR o.a.c.service.CassandraDaemon Exception in thread Thread[ValidationExecutor:708,1,main]
java.lang.NullPointerException: null
3. Have deleted corrupt SSSTables on some nodes. This is ok, presume there are other copies of the data
in the cluster. We’ll have to repair later.
4. Run online scrubs on each node to identify corrupt SSTables, and fix (rewrite) where possible.
5. For nodes where online scrub does not complete, take the node offline and attempt an offline scrub of
identified corrupt SSTables.
6. If offline scrub fails to rewrite any SSTables a node, delete those remaining corrupt SSTables.
7. Run a repair across the cluster to make data consistent across all nodes.
@ 8th September, 3 weeks after the initial data load and the cluster is STILL in an inconsistent state
with corrupt SSTables and queries occasionally failing.
© DataStax, All Rights Reserved. 33
Long road to recovery
Some final tips
• When making major changes to the cluster (expanding, migrating, decomissioning), GO SLOW.
• It takes longer to recover from errors than just doing it right the first time.
• Things I’ve seen customers do:
• Rebuild 16 nodes in a new DC concurrently
• Decommission multiple nodes at once
• Unthrrotled data loads
• Keep C* up to date, but not too up to date.
• 2.0 has troubles with large compactions
• Currently investigating segfaults with MV in 3.7
• Read the source code.
• It is the most thorough and up to date documentation.
© DataStax, All Rights Reserved. 34

More Related Content

What's hot

Apache Spark Core – Practical Optimization
Apache Spark Core – Practical OptimizationApache Spark Core – Practical Optimization
Apache Spark Core – Practical Optimization
Databricks
 
Myths of Big Partitions (Robert Stupp, DataStax) | Cassandra Summit 2016
Myths of Big Partitions (Robert Stupp, DataStax) | Cassandra Summit 2016Myths of Big Partitions (Robert Stupp, DataStax) | Cassandra Summit 2016
Myths of Big Partitions (Robert Stupp, DataStax) | Cassandra Summit 2016
DataStax
 
Full Page Writes in PostgreSQL PGCONFEU 2022
Full Page Writes in PostgreSQL PGCONFEU 2022Full Page Writes in PostgreSQL PGCONFEU 2022
Full Page Writes in PostgreSQL PGCONFEU 2022
Grant McAlister
 
A Day in the Life of a ClickHouse Query Webinar Slides
A Day in the Life of a ClickHouse Query Webinar Slides A Day in the Life of a ClickHouse Query Webinar Slides
A Day in the Life of a ClickHouse Query Webinar Slides
Altinity Ltd
 
A Fast Intro to Fast Query with ClickHouse, by Robert Hodges
A Fast Intro to Fast Query with ClickHouse, by Robert HodgesA Fast Intro to Fast Query with ClickHouse, by Robert Hodges
A Fast Intro to Fast Query with ClickHouse, by Robert Hodges
Altinity Ltd
 
Top 5 Mistakes When Writing Spark Applications
Top 5 Mistakes When Writing Spark ApplicationsTop 5 Mistakes When Writing Spark Applications
Top 5 Mistakes When Writing Spark Applications
Spark Summit
 
The Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast StorageThe Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast Storage
Kernel TLV
 
Introduction VAUUM, Freezing, XID wraparound
Introduction VAUUM, Freezing, XID wraparoundIntroduction VAUUM, Freezing, XID wraparound
Introduction VAUUM, Freezing, XID wraparound
Masahiko Sawada
 
My first 90 days with ClickHouse.pdf
My first 90 days with ClickHouse.pdfMy first 90 days with ClickHouse.pdf
My first 90 days with ClickHouse.pdf
Alkin Tezuysal
 
Postgresql database administration volume 1
Postgresql database administration volume 1Postgresql database administration volume 1
Postgresql database administration volume 1
Federico Campoli
 
Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.
Alexey Lesovsky
 
ClickHouse Query Performance Tips and Tricks, by Robert Hodges, Altinity CEO
ClickHouse Query Performance Tips and Tricks, by Robert Hodges, Altinity CEOClickHouse Query Performance Tips and Tricks, by Robert Hodges, Altinity CEO
ClickHouse Query Performance Tips and Tricks, by Robert Hodges, Altinity CEO
Altinity Ltd
 
ClickHouse Mark Cache, by Mik Kocikowski, Cloudflare
ClickHouse Mark Cache, by Mik Kocikowski, CloudflareClickHouse Mark Cache, by Mik Kocikowski, Cloudflare
ClickHouse Mark Cache, by Mik Kocikowski, Cloudflare
Altinity Ltd
 
How you can contribute to Apache Cassandra
How you can contribute to Apache CassandraHow you can contribute to Apache Cassandra
How you can contribute to Apache Cassandra
Yuki Morishita
 
All about Zookeeper and ClickHouse Keeper.pdf
All about Zookeeper and ClickHouse Keeper.pdfAll about Zookeeper and ClickHouse Keeper.pdf
All about Zookeeper and ClickHouse Keeper.pdf
Altinity Ltd
 
Optimizing Apache Spark SQL Joins
Optimizing Apache Spark SQL JoinsOptimizing Apache Spark SQL Joins
Optimizing Apache Spark SQL Joins
Databricks
 
Cassandra Database
Cassandra DatabaseCassandra Database
Cassandra Database
YounesCharfaoui
 
PostgreSQL replication
PostgreSQL replicationPostgreSQL replication
PostgreSQL replication
NTT DATA OSS Professional Services
 
Delta Lake: Optimizing Merge
Delta Lake: Optimizing MergeDelta Lake: Optimizing Merge
Delta Lake: Optimizing Merge
Databricks
 
Troubleshooting Cassandra (J.B. Langston, DataStax) | C* Summit 2016
Troubleshooting Cassandra (J.B. Langston, DataStax) | C* Summit 2016Troubleshooting Cassandra (J.B. Langston, DataStax) | C* Summit 2016
Troubleshooting Cassandra (J.B. Langston, DataStax) | C* Summit 2016
DataStax
 

What's hot (20)

Apache Spark Core – Practical Optimization
Apache Spark Core – Practical OptimizationApache Spark Core – Practical Optimization
Apache Spark Core – Practical Optimization
 
Myths of Big Partitions (Robert Stupp, DataStax) | Cassandra Summit 2016
Myths of Big Partitions (Robert Stupp, DataStax) | Cassandra Summit 2016Myths of Big Partitions (Robert Stupp, DataStax) | Cassandra Summit 2016
Myths of Big Partitions (Robert Stupp, DataStax) | Cassandra Summit 2016
 
Full Page Writes in PostgreSQL PGCONFEU 2022
Full Page Writes in PostgreSQL PGCONFEU 2022Full Page Writes in PostgreSQL PGCONFEU 2022
Full Page Writes in PostgreSQL PGCONFEU 2022
 
A Day in the Life of a ClickHouse Query Webinar Slides
A Day in the Life of a ClickHouse Query Webinar Slides A Day in the Life of a ClickHouse Query Webinar Slides
A Day in the Life of a ClickHouse Query Webinar Slides
 
A Fast Intro to Fast Query with ClickHouse, by Robert Hodges
A Fast Intro to Fast Query with ClickHouse, by Robert HodgesA Fast Intro to Fast Query with ClickHouse, by Robert Hodges
A Fast Intro to Fast Query with ClickHouse, by Robert Hodges
 
Top 5 Mistakes When Writing Spark Applications
Top 5 Mistakes When Writing Spark ApplicationsTop 5 Mistakes When Writing Spark Applications
Top 5 Mistakes When Writing Spark Applications
 
The Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast StorageThe Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast Storage
 
Introduction VAUUM, Freezing, XID wraparound
Introduction VAUUM, Freezing, XID wraparoundIntroduction VAUUM, Freezing, XID wraparound
Introduction VAUUM, Freezing, XID wraparound
 
My first 90 days with ClickHouse.pdf
My first 90 days with ClickHouse.pdfMy first 90 days with ClickHouse.pdf
My first 90 days with ClickHouse.pdf
 
Postgresql database administration volume 1
Postgresql database administration volume 1Postgresql database administration volume 1
Postgresql database administration volume 1
 
Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.
 
ClickHouse Query Performance Tips and Tricks, by Robert Hodges, Altinity CEO
ClickHouse Query Performance Tips and Tricks, by Robert Hodges, Altinity CEOClickHouse Query Performance Tips and Tricks, by Robert Hodges, Altinity CEO
ClickHouse Query Performance Tips and Tricks, by Robert Hodges, Altinity CEO
 
ClickHouse Mark Cache, by Mik Kocikowski, Cloudflare
ClickHouse Mark Cache, by Mik Kocikowski, CloudflareClickHouse Mark Cache, by Mik Kocikowski, Cloudflare
ClickHouse Mark Cache, by Mik Kocikowski, Cloudflare
 
How you can contribute to Apache Cassandra
How you can contribute to Apache CassandraHow you can contribute to Apache Cassandra
How you can contribute to Apache Cassandra
 
All about Zookeeper and ClickHouse Keeper.pdf
All about Zookeeper and ClickHouse Keeper.pdfAll about Zookeeper and ClickHouse Keeper.pdf
All about Zookeeper and ClickHouse Keeper.pdf
 
Optimizing Apache Spark SQL Joins
Optimizing Apache Spark SQL JoinsOptimizing Apache Spark SQL Joins
Optimizing Apache Spark SQL Joins
 
Cassandra Database
Cassandra DatabaseCassandra Database
Cassandra Database
 
PostgreSQL replication
PostgreSQL replicationPostgreSQL replication
PostgreSQL replication
 
Delta Lake: Optimizing Merge
Delta Lake: Optimizing MergeDelta Lake: Optimizing Merge
Delta Lake: Optimizing Merge
 
Troubleshooting Cassandra (J.B. Langston, DataStax) | C* Summit 2016
Troubleshooting Cassandra (J.B. Langston, DataStax) | C* Summit 2016Troubleshooting Cassandra (J.B. Langston, DataStax) | C* Summit 2016
Troubleshooting Cassandra (J.B. Langston, DataStax) | C* Summit 2016
 

Similar to Lessons Learned From Running 1800 Clusters (Brooke Jensen, Instaclustr) | Cassandra Summit 2016

Everyday I'm Scaling... Cassandra (Ben Bromhead, Instaclustr) | C* Summit 2016
Everyday I'm Scaling... Cassandra (Ben Bromhead, Instaclustr) | C* Summit 2016Everyday I'm Scaling... Cassandra (Ben Bromhead, Instaclustr) | C* Summit 2016
Everyday I'm Scaling... Cassandra (Ben Bromhead, Instaclustr) | C* Summit 2016
DataStax
 
Everyday I’m scaling... Cassandra
Everyday I’m scaling... CassandraEveryday I’m scaling... Cassandra
Everyday I’m scaling... Cassandra
Instaclustr
 
Instaclustr introduction to managing cassandra
Instaclustr introduction to managing cassandraInstaclustr introduction to managing cassandra
Instaclustr introduction to managing cassandra
Instaclustr
 
Cassandra CLuster Management by Japan Cassandra Community
Cassandra CLuster Management by Japan Cassandra CommunityCassandra CLuster Management by Japan Cassandra Community
Cassandra CLuster Management by Japan Cassandra Community
Hiromitsu Komatsu
 
Using Time Window Compaction Strategy For Time Series Workloads
Using Time Window Compaction Strategy For Time Series WorkloadsUsing Time Window Compaction Strategy For Time Series Workloads
Using Time Window Compaction Strategy For Time Series Workloads
Jeff Jirsa
 
Five Lessons in Distributed Databases
Five Lessons  in Distributed DatabasesFive Lessons  in Distributed Databases
Five Lessons in Distributed Databases
jbellis
 
DataStax: Extreme Cassandra Optimization: The Sequel
DataStax: Extreme Cassandra Optimization: The SequelDataStax: Extreme Cassandra Optimization: The Sequel
DataStax: Extreme Cassandra Optimization: The Sequel
DataStax Academy
 
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
Amazon Web Services
 
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld
 
SFHUG Kudu Talk
SFHUG Kudu TalkSFHUG Kudu Talk
SFHUG Kudu Talk
Felicia Haggarty
 
Cassandra Bootstap from Backups
Cassandra Bootstap from BackupsCassandra Bootstap from Backups
Cassandra Bootstap from Backups
Instaclustr
 
Cassandra Bootstrap from Backups
Cassandra Bootstrap from BackupsCassandra Bootstrap from Backups
Cassandra Bootstrap from Backups
Instaclustr
 
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
Amazon Web Services
 
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
Amazon Web Services
 
Deep Dive on Amazon EC2 instances
Deep Dive on Amazon EC2 instancesDeep Dive on Amazon EC2 instances
Deep Dive on Amazon EC2 instances
Amazon Web Services
 
Ceph Day Beijing - Ceph all-flash array design based on NUMA architecture
Ceph Day Beijing - Ceph all-flash array design based on NUMA architectureCeph Day Beijing - Ceph all-flash array design based on NUMA architecture
Ceph Day Beijing - Ceph all-flash array design based on NUMA architecture
Ceph Community
 
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA ArchitectureCeph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Danielle Womboldt
 
cloudera Apache Kudu Updatable Analytical Storage for Modern Data Platform
cloudera Apache Kudu Updatable Analytical Storage for Modern Data Platformcloudera Apache Kudu Updatable Analytical Storage for Modern Data Platform
cloudera Apache Kudu Updatable Analytical Storage for Modern Data Platform
Rakuten Group, Inc.
 
Best Practices with PostgreSQL on Solaris
Best Practices with PostgreSQL on SolarisBest Practices with PostgreSQL on Solaris
Best Practices with PostgreSQL on Solaris
Jignesh Shah
 
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
Ceph Community
 

Similar to Lessons Learned From Running 1800 Clusters (Brooke Jensen, Instaclustr) | Cassandra Summit 2016 (20)

Everyday I'm Scaling... Cassandra (Ben Bromhead, Instaclustr) | C* Summit 2016
Everyday I'm Scaling... Cassandra (Ben Bromhead, Instaclustr) | C* Summit 2016Everyday I'm Scaling... Cassandra (Ben Bromhead, Instaclustr) | C* Summit 2016
Everyday I'm Scaling... Cassandra (Ben Bromhead, Instaclustr) | C* Summit 2016
 
Everyday I’m scaling... Cassandra
Everyday I’m scaling... CassandraEveryday I’m scaling... Cassandra
Everyday I’m scaling... Cassandra
 
Instaclustr introduction to managing cassandra
Instaclustr introduction to managing cassandraInstaclustr introduction to managing cassandra
Instaclustr introduction to managing cassandra
 
Cassandra CLuster Management by Japan Cassandra Community
Cassandra CLuster Management by Japan Cassandra CommunityCassandra CLuster Management by Japan Cassandra Community
Cassandra CLuster Management by Japan Cassandra Community
 
Using Time Window Compaction Strategy For Time Series Workloads
Using Time Window Compaction Strategy For Time Series WorkloadsUsing Time Window Compaction Strategy For Time Series Workloads
Using Time Window Compaction Strategy For Time Series Workloads
 
Five Lessons in Distributed Databases
Five Lessons  in Distributed DatabasesFive Lessons  in Distributed Databases
Five Lessons in Distributed Databases
 
DataStax: Extreme Cassandra Optimization: The Sequel
DataStax: Extreme Cassandra Optimization: The SequelDataStax: Extreme Cassandra Optimization: The Sequel
DataStax: Extreme Cassandra Optimization: The Sequel
 
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
 
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
 
SFHUG Kudu Talk
SFHUG Kudu TalkSFHUG Kudu Talk
SFHUG Kudu Talk
 
Cassandra Bootstap from Backups
Cassandra Bootstap from BackupsCassandra Bootstap from Backups
Cassandra Bootstap from Backups
 
Cassandra Bootstrap from Backups
Cassandra Bootstrap from BackupsCassandra Bootstrap from Backups
Cassandra Bootstrap from Backups
 
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
 
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
 
Deep Dive on Amazon EC2 instances
Deep Dive on Amazon EC2 instancesDeep Dive on Amazon EC2 instances
Deep Dive on Amazon EC2 instances
 
Ceph Day Beijing - Ceph all-flash array design based on NUMA architecture
Ceph Day Beijing - Ceph all-flash array design based on NUMA architectureCeph Day Beijing - Ceph all-flash array design based on NUMA architecture
Ceph Day Beijing - Ceph all-flash array design based on NUMA architecture
 
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA ArchitectureCeph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
 
cloudera Apache Kudu Updatable Analytical Storage for Modern Data Platform
cloudera Apache Kudu Updatable Analytical Storage for Modern Data Platformcloudera Apache Kudu Updatable Analytical Storage for Modern Data Platform
cloudera Apache Kudu Updatable Analytical Storage for Modern Data Platform
 
Best Practices with PostgreSQL on Solaris
Best Practices with PostgreSQL on SolarisBest Practices with PostgreSQL on Solaris
Best Practices with PostgreSQL on Solaris
 
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
 

More from DataStax

Is Your Enterprise Ready to Shine This Holiday Season?
Is Your Enterprise Ready to Shine This Holiday Season?Is Your Enterprise Ready to Shine This Holiday Season?
Is Your Enterprise Ready to Shine This Holiday Season?
DataStax
 
Designing Fault-Tolerant Applications with DataStax Enterprise and Apache Cas...
Designing Fault-Tolerant Applications with DataStax Enterprise and Apache Cas...Designing Fault-Tolerant Applications with DataStax Enterprise and Apache Cas...
Designing Fault-Tolerant Applications with DataStax Enterprise and Apache Cas...
DataStax
 
Running DataStax Enterprise in VMware Cloud and Hybrid Environments
Running DataStax Enterprise in VMware Cloud and Hybrid EnvironmentsRunning DataStax Enterprise in VMware Cloud and Hybrid Environments
Running DataStax Enterprise in VMware Cloud and Hybrid Environments
DataStax
 
Best Practices for Getting to Production with DataStax Enterprise Graph
Best Practices for Getting to Production with DataStax Enterprise GraphBest Practices for Getting to Production with DataStax Enterprise Graph
Best Practices for Getting to Production with DataStax Enterprise Graph
DataStax
 
Webinar | Data Management for Hybrid and Multi-Cloud: A Four-Step Journey
Webinar | Data Management for Hybrid and Multi-Cloud: A Four-Step JourneyWebinar | Data Management for Hybrid and Multi-Cloud: A Four-Step Journey
Webinar | Data Management for Hybrid and Multi-Cloud: A Four-Step Journey
DataStax
 
Webinar | How to Understand Apache Cassandra™ Performance Through Read/Writ...
Webinar  |  How to Understand Apache Cassandra™ Performance Through Read/Writ...Webinar  |  How to Understand Apache Cassandra™ Performance Through Read/Writ...
Webinar | How to Understand Apache Cassandra™ Performance Through Read/Writ...
DataStax
 
Webinar | Better Together: Apache Cassandra and Apache Kafka
Webinar  |  Better Together: Apache Cassandra and Apache KafkaWebinar  |  Better Together: Apache Cassandra and Apache Kafka
Webinar | Better Together: Apache Cassandra and Apache Kafka
DataStax
 
Top 10 Best Practices for Apache Cassandra and DataStax Enterprise
Top 10 Best Practices for Apache Cassandra and DataStax EnterpriseTop 10 Best Practices for Apache Cassandra and DataStax Enterprise
Top 10 Best Practices for Apache Cassandra and DataStax Enterprise
DataStax
 
Introduction to Apache Cassandra™ + What’s New in 4.0
Introduction to Apache Cassandra™ + What’s New in 4.0Introduction to Apache Cassandra™ + What’s New in 4.0
Introduction to Apache Cassandra™ + What’s New in 4.0
DataStax
 
Webinar: How Active Everywhere Database Architecture Accelerates Hybrid Cloud...
Webinar: How Active Everywhere Database Architecture Accelerates Hybrid Cloud...Webinar: How Active Everywhere Database Architecture Accelerates Hybrid Cloud...
Webinar: How Active Everywhere Database Architecture Accelerates Hybrid Cloud...
DataStax
 
Webinar | Aligning GDPR Requirements with Today's Hybrid Cloud Realities
Webinar  |  Aligning GDPR Requirements with Today's Hybrid Cloud RealitiesWebinar  |  Aligning GDPR Requirements with Today's Hybrid Cloud Realities
Webinar | Aligning GDPR Requirements with Today's Hybrid Cloud Realities
DataStax
 
Designing a Distributed Cloud Database for Dummies
Designing a Distributed Cloud Database for DummiesDesigning a Distributed Cloud Database for Dummies
Designing a Distributed Cloud Database for Dummies
DataStax
 
How to Power Innovation with Geo-Distributed Data Management in Hybrid Cloud
How to Power Innovation with Geo-Distributed Data Management in Hybrid CloudHow to Power Innovation with Geo-Distributed Data Management in Hybrid Cloud
How to Power Innovation with Geo-Distributed Data Management in Hybrid Cloud
DataStax
 
How to Evaluate Cloud Databases for eCommerce
How to Evaluate Cloud Databases for eCommerceHow to Evaluate Cloud Databases for eCommerce
How to Evaluate Cloud Databases for eCommerce
DataStax
 
Webinar: DataStax Enterprise 6: 10 Ways to Multiply the Power of Apache Cassa...
Webinar: DataStax Enterprise 6: 10 Ways to Multiply the Power of Apache Cassa...Webinar: DataStax Enterprise 6: 10 Ways to Multiply the Power of Apache Cassa...
Webinar: DataStax Enterprise 6: 10 Ways to Multiply the Power of Apache Cassa...
DataStax
 
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
DataStax
 
Webinar - Real-Time Customer Experience for the Right-Now Enterprise featurin...
Webinar - Real-Time Customer Experience for the Right-Now Enterprise featurin...Webinar - Real-Time Customer Experience for the Right-Now Enterprise featurin...
Webinar - Real-Time Customer Experience for the Right-Now Enterprise featurin...
DataStax
 
Datastax - The Architect's guide to customer experience (CX)
Datastax - The Architect's guide to customer experience (CX)Datastax - The Architect's guide to customer experience (CX)
Datastax - The Architect's guide to customer experience (CX)
DataStax
 
An Operational Data Layer is Critical for Transformative Banking Applications
An Operational Data Layer is Critical for Transformative Banking ApplicationsAn Operational Data Layer is Critical for Transformative Banking Applications
An Operational Data Layer is Critical for Transformative Banking Applications
DataStax
 
Becoming a Customer-Centric Enterprise Via Real-Time Data and Design Thinking
Becoming a Customer-Centric Enterprise Via Real-Time Data and Design ThinkingBecoming a Customer-Centric Enterprise Via Real-Time Data and Design Thinking
Becoming a Customer-Centric Enterprise Via Real-Time Data and Design Thinking
DataStax
 

More from DataStax (20)

Is Your Enterprise Ready to Shine This Holiday Season?
Is Your Enterprise Ready to Shine This Holiday Season?Is Your Enterprise Ready to Shine This Holiday Season?
Is Your Enterprise Ready to Shine This Holiday Season?
 
Designing Fault-Tolerant Applications with DataStax Enterprise and Apache Cas...
Designing Fault-Tolerant Applications with DataStax Enterprise and Apache Cas...Designing Fault-Tolerant Applications with DataStax Enterprise and Apache Cas...
Designing Fault-Tolerant Applications with DataStax Enterprise and Apache Cas...
 
Running DataStax Enterprise in VMware Cloud and Hybrid Environments
Running DataStax Enterprise in VMware Cloud and Hybrid EnvironmentsRunning DataStax Enterprise in VMware Cloud and Hybrid Environments
Running DataStax Enterprise in VMware Cloud and Hybrid Environments
 
Best Practices for Getting to Production with DataStax Enterprise Graph
Best Practices for Getting to Production with DataStax Enterprise GraphBest Practices for Getting to Production with DataStax Enterprise Graph
Best Practices for Getting to Production with DataStax Enterprise Graph
 
Webinar | Data Management for Hybrid and Multi-Cloud: A Four-Step Journey
Webinar | Data Management for Hybrid and Multi-Cloud: A Four-Step JourneyWebinar | Data Management for Hybrid and Multi-Cloud: A Four-Step Journey
Webinar | Data Management for Hybrid and Multi-Cloud: A Four-Step Journey
 
Webinar | How to Understand Apache Cassandra™ Performance Through Read/Writ...
Webinar  |  How to Understand Apache Cassandra™ Performance Through Read/Writ...Webinar  |  How to Understand Apache Cassandra™ Performance Through Read/Writ...
Webinar | How to Understand Apache Cassandra™ Performance Through Read/Writ...
 
Webinar | Better Together: Apache Cassandra and Apache Kafka
Webinar  |  Better Together: Apache Cassandra and Apache KafkaWebinar  |  Better Together: Apache Cassandra and Apache Kafka
Webinar | Better Together: Apache Cassandra and Apache Kafka
 
Top 10 Best Practices for Apache Cassandra and DataStax Enterprise
Top 10 Best Practices for Apache Cassandra and DataStax EnterpriseTop 10 Best Practices for Apache Cassandra and DataStax Enterprise
Top 10 Best Practices for Apache Cassandra and DataStax Enterprise
 
Introduction to Apache Cassandra™ + What’s New in 4.0
Introduction to Apache Cassandra™ + What’s New in 4.0Introduction to Apache Cassandra™ + What’s New in 4.0
Introduction to Apache Cassandra™ + What’s New in 4.0
 
Webinar: How Active Everywhere Database Architecture Accelerates Hybrid Cloud...
Webinar: How Active Everywhere Database Architecture Accelerates Hybrid Cloud...Webinar: How Active Everywhere Database Architecture Accelerates Hybrid Cloud...
Webinar: How Active Everywhere Database Architecture Accelerates Hybrid Cloud...
 
Webinar | Aligning GDPR Requirements with Today's Hybrid Cloud Realities
Webinar  |  Aligning GDPR Requirements with Today's Hybrid Cloud RealitiesWebinar  |  Aligning GDPR Requirements with Today's Hybrid Cloud Realities
Webinar | Aligning GDPR Requirements with Today's Hybrid Cloud Realities
 
Designing a Distributed Cloud Database for Dummies
Designing a Distributed Cloud Database for DummiesDesigning a Distributed Cloud Database for Dummies
Designing a Distributed Cloud Database for Dummies
 
How to Power Innovation with Geo-Distributed Data Management in Hybrid Cloud
How to Power Innovation with Geo-Distributed Data Management in Hybrid CloudHow to Power Innovation with Geo-Distributed Data Management in Hybrid Cloud
How to Power Innovation with Geo-Distributed Data Management in Hybrid Cloud
 
How to Evaluate Cloud Databases for eCommerce
How to Evaluate Cloud Databases for eCommerceHow to Evaluate Cloud Databases for eCommerce
How to Evaluate Cloud Databases for eCommerce
 
Webinar: DataStax Enterprise 6: 10 Ways to Multiply the Power of Apache Cassa...
Webinar: DataStax Enterprise 6: 10 Ways to Multiply the Power of Apache Cassa...Webinar: DataStax Enterprise 6: 10 Ways to Multiply the Power of Apache Cassa...
Webinar: DataStax Enterprise 6: 10 Ways to Multiply the Power of Apache Cassa...
 
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
 
Webinar - Real-Time Customer Experience for the Right-Now Enterprise featurin...
Webinar - Real-Time Customer Experience for the Right-Now Enterprise featurin...Webinar - Real-Time Customer Experience for the Right-Now Enterprise featurin...
Webinar - Real-Time Customer Experience for the Right-Now Enterprise featurin...
 
Datastax - The Architect's guide to customer experience (CX)
Datastax - The Architect's guide to customer experience (CX)Datastax - The Architect's guide to customer experience (CX)
Datastax - The Architect's guide to customer experience (CX)
 
An Operational Data Layer is Critical for Transformative Banking Applications
An Operational Data Layer is Critical for Transformative Banking ApplicationsAn Operational Data Layer is Critical for Transformative Banking Applications
An Operational Data Layer is Critical for Transformative Banking Applications
 
Becoming a Customer-Centric Enterprise Via Real-Time Data and Design Thinking
Becoming a Customer-Centric Enterprise Via Real-Time Data and Design ThinkingBecoming a Customer-Centric Enterprise Via Real-Time Data and Design Thinking
Becoming a Customer-Centric Enterprise Via Real-Time Data and Design Thinking
 

Recently uploaded

BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Jay Das
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
IES VE
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
RISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent EnterpriseRISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent Enterprise
Srikant77
 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
e20449
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 

Recently uploaded (20)

BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
RISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent EnterpriseRISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent Enterprise
 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 

Lessons Learned From Running 1800 Clusters (Brooke Jensen, Instaclustr) | Cassandra Summit 2016

  • 1. Brooke Jensen VP Technical Operations & Customer Services Instaclustr Lessons learned from running over 1800 2000 clusters
  • 2. Instaclustr • Launched at 2014 Summit. • Now 25+ staff in 4 countries. • Engineering (dev & ops) from Canberra, AU • Cassandra as a service (CaaS) • AWS, Azure, Softlayer, GCP in progress. • Automated provisioning – running within minutes. • 24/7 monitoring and response. • Repairs, backups, migrations, etc. • Expert Cassandra support. • Spark and Zeppelin add-ons. • Enterprise support • For customers who cannot use a managed service or require greater level of control of their cluster. • Gain 24/7 access to our Engineers for “third level” Cassandra support • Troubleshooting, advice, emergency response. • Consulting solutions • Data model design and/or review • Cluster design, sizing, performance testing and tuning • Training for developers and operational engineers • Find out more or start a free trial © DataStax, All Rights Reserved. 2
  • 3. “Globally unique perspective of Cassandra.” • Our customer base: • Diverse. From early stage start-ups to large well- known global enterprises. • Education, Retail, Marketing, Advertising, Finance, Insurance, Health, Social, Research • All use cases: Messaging, IoT, eCommerce, Analytics, Recommendations, Security. • Small development clusters to large scale production deployments requiring 100% uptime. • Nodes under management: • 700+ active nodes under management, • All versions from Cassandra 2.0.11 - Cassandra 3.7 © DataStax, All Rights Reserved. 3
  • 4. About Me Brooke Jensen VP Technical Operations, Customer Services / Cassandra MVP • Previous: Senior Software Engineer, Instaclustr • Education: Bachelor Software Engineering • Life before Instaclustr: • 11+ years Software Engineering. • Specialized in performance optimization of large enterprise systems (e.g. Australian Customs, Taxation Office, Department of Finance, Deutsche Bank) • Extensive experience managing and resolving major system incidents and outages. • Lives: Canberra, Au © DataStax, All Rights Reserved. 4
  • 5. Talk Overview • Collection of common problems we see and manage on a daily basis. • Examples and war stories from the field. • HOWTOs, tips and tricks. • Covering: • Cluster Design • Managing compactions • Large partitions • Disk usage and management • Tombstones and Deletes • Common sense advice © DataStax, All Rights Reserved. 5
  • 6. Cluster Design Basics – Racks & RF • For production we recommend (minimum): 3 nodes in 3 racks with RF3.  Make racks a multiple of RF. • Use logical racks and map to physical racks. • Each rack will contain a full copy of the data. • Can survive the loss of nodes without losing QUORUM (strong consistency) • Use NetworkTopologyStrategy. It’s not just for multi-DC, but is also “rack aware” ALTER KEYSPACE <keyspace> WITH replication = {'class': 'NetworkTopologyStrategy','DC1': '3'} © DataStax, All Rights Reserved. 6 Getting this right upfront will make management of the cluster much easier in the future. R2 R2 R2 R1 R1 R1 R3 R3 R3
  • 7. The case for single racks • Datastax docs suggest not to use racks? • “It’s hard to set up” • “Expanding is difficult” – not if using vnodes (default from 2.0.9) • Spending the time to set up is WORTH IT! • Minimizes downtime during upgrades and maintenance • Can perform upgrades/restarts rack-by-rack • Can (technically) lose a whole rack without downtime • We go one further and map racks to AWS AZ: © DataStax, All Rights Reserved. 7
  • 8. Setting it up yaml: endpoint_snitch: GossipingPropertyFileSnitch cassandra-rackdc.properties: Executing 'cat /etc/cassandra/cassandra-rackdc.properties' on 52.37.XXX.XXX Host 52.37.XXX.XXX response: #Generated by Instaclustr #Mon Mar 28 19:22:21 UTC 2016 dc=US_WEST_2 prefer_local=true rack=us-west-2b © DataStax, All Rights Reserved. 8
  • 9. Compactions – the basics © DataStax, All Rights Reserved. 10 • Regular compactions are an integral part of any healthy Cassandra cluster. • Occur periodically to purge tombstones, merge disparate row data into new SSTables to reclaim disk space and keep read operations optimized. • Can have a significant disk, memory (GC), cpu, IO overhead. • Are often the cause of “unexplained” latency or IO issues in the cluster • Ideally, get the compaction strategy right at table creation time. You can change it later, but that may force a re-write all of the data in that CF using the new Compaction Strategy • STCS – Insert heavy and general workloads • LCS – Read heavy workloads, or more updates than inserts • DTCS – Not where there are updates to old data or inserts that are out of order.
  • 10. Monitoring Compactions $ nodetool compactionstats -H pending tasks: 130 compaction type keyspace table completed total unit progress Compaction instametrics events_raw 1.35 GB 1.6 GB bytes 84.77% Compaction instametrics events_raw 1.28 GB 1.6 GB bytes 80.21% Active compaction remaining time : 0h00m33s • Not uncommon for large compactions to get “stuck” or fall behind. • On 2.0 in particular. Significantly improved in 2.1, even better in 3 • A single node doing compactions can cause latency issues across the whole cluster, as it will become slow to respond to queries. • Heap pressure will cause frequent flushing of Memtables to disk. => many small SSTables => many compactions © DataStax, All Rights Reserved. 11
  • 11. Compactions: other things to check © DataStax, All Rights Reserved. 12
  • 12. Managing Compactions Few things you can do if compactions are causing issues (e.g. latency) Throttle: nodetool setcompactionthroughput 16 Stop and disable : nodetool stop COMPACTION Take the node out (and unthrottle): nodetool disablebinary && nodetool disablegossip && nodetool disablethrift && nodetool setcompactionthroughput 0 © DataStax, All Rights Reserved. 13 Set until C* is restarted. On 2.1 applies to NEW compactions, on 2.2.5+ applies instantly Other nodes will mark this node as down, So need to complete within HH window (3h) Case is important! Stops currently active compactions only. Compaction starts Node taken out
  • 13. Large Partitions • One of the biggest problems we deal with. Root cause of many other issues, and a PITA to manage. • We recommend to keep them 100MB or less. Creates issues with: Compactions In 2.0, compactions of partitions > 64MB were considerably slower. Partitions >2GB often getting stuck. Improved in 2.1 and confirmed we observe less of these problems in upgraded clusters. Adding, replacing nodes – streaming will often fail. Querying large partitions is considerably slower. The whole partition is stored on every replica node, leading to hotspots. Can be hard to get rid of. © DataStax, All Rights Reserved. 14
  • 14. Checking partition sizes ~ $ nodetool cfstats -H keyspace.columnfamily … Compacted partition minimum bytes: 125 bytes Compacted partition maximum bytes: 11.51 GB Compacted partition mean bytes: 844 bytes $ nodetool cfhistograms keyspace columnfamily Percentile SSTables Write Latency Read Latency Partition Size Cell Count (micros) (micros) (bytes) 50% 1.00 14.00 124.00 372 2 75% 1.00 14.00 1916.00 372 2 95% 3.00 24.00 17084.00 1597 12 98% 4.00 35.00 17084.00 3311 24 99% 5.00 50.00 20501.00 4768 42 Min 0.00 4.00 51.00 125 0 Max 5.00 446.00 20501.00 12359319162 129557750 © DataStax, All Rights Reserved. 15 Huge delta between 99th percentile and Max indicates most data (bytes) is in one partition.
  • 15. Disk Usage • As a guide, maintain nodes under 70% (50% for STCS). • At 80% take action. • Why so much headroom? • Compactions will cause a temporary increase in disk usage while both sets of SSTables exist, but once complete will free up space that was occupied by old SSTables. • FYI, repair requests a snapshot before execution. • Recovering from a filled disk can be a pain, and you CAN LOSE DATA. • C* won’t start, for a start. • Nodes out of the cluster during recovery >3 hours will require repair. © DataStax, All Rights Reserved. 16 Sep 08 05:38:15 cassandra[17118]: at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_91] Sep 08 05:38:15 cassandra[17118]: Caused by: java.io.IOException: No configured data directory contains enough space to write 99 bytes Sep 08 05:38:16 systemd[1]: cassandra.service: Main process exited, code=exited, Sep 08 05:38:16 systemd[1]: cassandra.service: Unit entered failed state.
  • 16. Try this first: stop writing data. © DataStax, All Rights Reserved. 17
  • 17. Can’t stop? Won’t stop? Quick win: clearing snapshots. nodetool cfstats or nodetool listsnapshots will show if you have any snapshots to clear: © DataStax, All Rights Reserved. 18 nodetool clearsnapshot
  • 18. Finding data to remove © DataStax, All Rights Reserved. 19 I like to look at the data folders on disk – easier to identify than with cfstats. Note also: might not just be your data. Space can commonly be consumed by snapshots or even system keyspaces. • We’ve had nodes nearly fill up because of stored hints.
  • 19. Tip: Removing data © DataStax, All Rights Reserved. 20 DELETE - creates tombstones which will not be purged by compactions until after gc_grace_seconds • Default is 10 days, but you can ALTER it and it is effective immediately. • Make sure all nodes are UP before changing gc_grace. TRUNCATE or DROP – only creates a snapshot as a backup before removing all the data. • The disk space is released as soon as the snapshot is cleared • Preferred where possible.
  • 20. Disk Usage – Other Actions to try • Add Nodes + run cleanups • After all new nodes are running, run nodetool cleanup on each of the previously existing nodes to remove the keys that no longer belong to those nodes. • If on AWS, add EBS (requires restart). • Disable autocompactions (will negatively effect read latency so not recommended) © DataStax, All Rights Reserved. 21 Tip: JOINING (adding) nodes • When you add nodes to a cluster, they will typically overstream data initially using more disk space than you expect. Duplicates will be compacted away eventually. • Disable compaction throttling while the node is JOINING. • If streaming/joining fails and you have to restart it, the node will restream ALL SSTables again from the beginning, potentially filling up the disks. ‘rm’ cassandra data folder before restarting.
  • 21. Compaction spikes • Compactions, particularly large ones, will cause spikes in disk usage while both sets of SSTables exist. • Ideally, you want the compaction(s) to complete and free up space, but how can you assess whether that is possible? Unlikely. © DataStax, All Rights Reserved. 22
  • 22. Compaction spikes 1. Find the tmp SSTable associated with the current compaction. From this, together with % complete in compactionstats you can get a feel for how much more space you need: $ -rw-r--r-- find /var/lib/cassandra/data/ -name "*tmp*Data.db" | xargs ls –lh 1 root root 4.5G Sep 1 14:56 keyspace1/posts/keyspace1-posts-tmp-ka-118955-Data.db 2. Keep a very close eye the disk, compaction and size of tmp file: watch –n30 'df -h; ls -lh keyspace1-posts-tmp-ka-118955-Data.db; nodetool compactionstats –H’ Filesystem Size Used Avail Use% Mounted on /dev/md127 787G 746G 506M 100% /var/lib/cassandra © DataStax, All Rights Reserved. 23
  • 23. Case study: Yesterday’s drama Scene: • 15 node production cluster, 12 * m4xl-1600 nodes + 3 * m4xl-800 nodes (ie 3 with half storage) • Keyspace is RF 2 and application requires QUORUM • (sum_of_replication_factors / 2) + 1 = 2 (ie both replicas) • Therefore can’t take nodes out (or let them die) as it will cause application outage. • Peak processing time is 8am-6pm. • Need to keep the node up until the end of the day. • Write heavy workload © DataStax, All Rights Reserved. 24
  • 24. 09:33: ~ $ df –h Filesystem Size Used Avail Use% Mounted on /dev/md127 787G 777G 10G 99% /var/lib/cassandra 11:03: Filesystem Size Used Avail Use% Mounted on /dev/md127 787G 781G 5.9G 100% /var/lib/cassandra 12:37: ~ $ nodetool disableautocompaction ~ $ df –h Filesystem Size Used Avail Use% Mounted on /dev/md127 787G 769G 18G 98% /var/lib/cassandra © DataStax, All Rights Reserved. 25
  • 25. © DataStax, All Rights Reserved. 26 13:40: Filesystem Size Used Avail Use% Mounted on /dev/md127 787G 785G 2G 100% /var/lib/cassandra Crap.
  • 26. Solution was to move one CF to EBS in the background before the disk fills up. ~ $ du -hs /var/lib/cassandra/data/prod/* 89G /var/lib/cassandra/data/prod/cf-39153090119811e693793df4078eeb99 38G /var/lib/cassandra/data/prod/cf_one_min-e17256f091a011e5a5c327b05b4cd3f4 ~ $ rsync -aOHh /var/lib/cassandra/data/prod/cf_one_min-e17256f091a011e5a5c327b05b4cd3f4 /mnt/ebs/ Meanwhile: Filesystem Size Used Avail Use% Mounted on /dev/md127 787G 746G 906M 100% /var/lib/cassandra /dev/xvdp 79G 37G 39G 49% /mnt/ebs Now just mount bind it, and restart Cassandra: /dev/xvdp on /lib/cassandra/data/prod/cf_one_min-e17256f091a011e5a5c327b05b4cd3f4 © DataStax, All Rights Reserved. 27
  • 27. Monitoring – how we detect problems • Client read and write latency • Local CF read and write latency • Number of reads or writes deviating from average • Outlier nodes • Down nodes • Disk usage • Pending compactions • Check for large partitions (data model issues) • In the logs: • Large batch warnings • Tombstone warnings • Excessive GC and/or long pauses © DataStax, All Rights Reserved. 28
  • 28. Case study: Don’t break your cluster. WARNING! It is possible to get your cluster into a state from which you are unable to recover without significant downtime or data loss. © DataStax, All Rights Reserved. 29
  • 29. “This happened during normal operations at night, so I don't think any of us were doing anything abnormal. We've been doing some processing that creates pretty heavy load over the last few weeks...” Orly? © DataStax, All Rights Reserved. 30
  • 30. Unthrottled data load • Load average of 56, on 8 core machines. • Nodes were saturated and exhausted heap space. • Regular GC pauses of 12000ms - 17000ms • Memtables are frequently flushed to disk. • This resulted in over 120,000 small SSTables being created on some nodes. • Data was spread across thousands of SSTables, so read latency skyrocketed. • Was using paxos writes (LWT), which require a read before every write. This caused writes to fail because as reads were timing out. • Compactions could not keep up, and added additional load to the already overloaded nodes. • C* eventually crashed on most nodes, leaving some corrupt SSTables. © DataStax, All Rights Reserved. 31
  • 31. 17 second GC pauses. Nice. Aug 16 15:51:58 INFO o.a.cassandra.service.GCInspector ConcurrentMarkSweep GC in 12416ms. CMS Old Gen: 6442450872 -> 6442450912; Par Eden Space: 1718091776 -> 297543768; Par Survivor Space: 214695856 -> 0 Aug 16 15:52:20 INFO o.a.cassandra.service.GCInspector ConcurrentMarkSweep GC in 17732ms. CMS Old Gen: 6442450912 -> 6442450864; Par Eden Space: 1718091776 -> 416111040; Par Survivor Space: 214671752 -> 0 Heap pressure causes C* to flush memtables to disk. This created >120,000 Memtables on some nodes.  3+ days just to catch up on compactions, which were continually failing because of: Aug 18 22:11:43 java.io.FileNotFoundException: /var/lib/cassandra/data/keyspace/cf- f4683d90f88111e586b7e962b0d85be3/keyspace-cf-ka-1243722-Data.db (Too many open files) java.lang.RuntimeException: java.io.FileNotFoundException: /var/lib/cassandra/data/keyspace/cf- f4683d90f88111e586b7e962b0d85be3/keyspace-cf-ka-1106806-Data.db (No such file or directory) © DataStax, All Rights Reserved. 32
  • 32. 1. Once we got C* stable and caught up on compactions, there were still corrupt SSTables present and nodes were in an inconsistent state. 2. Couldn’t fix with repairs: ERROR o.apache.cassandra.repair.Validator Failed creating a merkle tree for [repair #21be1ac0-6809-11e6-a098- b377cb035d78 on keyspace/cf, (-227556542627198517,-225096881583623998]], /52.XXX.XXX.XXX (see log for details) ERROR o.a.c.service.CassandraDaemon Exception in thread Thread[ValidationExecutor:708,1,main] java.lang.NullPointerException: null 3. Have deleted corrupt SSSTables on some nodes. This is ok, presume there are other copies of the data in the cluster. We’ll have to repair later. 4. Run online scrubs on each node to identify corrupt SSTables, and fix (rewrite) where possible. 5. For nodes where online scrub does not complete, take the node offline and attempt an offline scrub of identified corrupt SSTables. 6. If offline scrub fails to rewrite any SSTables a node, delete those remaining corrupt SSTables. 7. Run a repair across the cluster to make data consistent across all nodes. @ 8th September, 3 weeks after the initial data load and the cluster is STILL in an inconsistent state with corrupt SSTables and queries occasionally failing. © DataStax, All Rights Reserved. 33 Long road to recovery
  • 33. Some final tips • When making major changes to the cluster (expanding, migrating, decomissioning), GO SLOW. • It takes longer to recover from errors than just doing it right the first time. • Things I’ve seen customers do: • Rebuild 16 nodes in a new DC concurrently • Decommission multiple nodes at once • Unthrrotled data loads • Keep C* up to date, but not too up to date. • 2.0 has troubles with large compactions • Currently investigating segfaults with MV in 3.7 • Read the source code. • It is the most thorough and up to date documentation. © DataStax, All Rights Reserved. 34

Editor's Notes

  1. NetworkTopologyStrategy places replicas in the same data center by walking the ring clockwise until reaching the first node in another rack.  Also leaves open the possibility of DC migrations later on.
  2. Datastax recommends not to use logical racks. Cause: Most users tend to ignore / forget rack requirements - should be in alternating order. Same number of rack as nodes? –Use racks = RF Expanding is difficult – not if you’re using vnodes. Makes repairing easier Cluster operations Minimises downtime. Lose a whole rack of nodes without downtime.
  3. rack and data center information for the local node defined in the cassandra-rackdc.properties prefer_local=true - tells Cassandra to use the local IP address when communication is not across different data centers.
  4. Causes downtime when adding nodes. RF2 doing quorum. Driver config + consistency (QUORUM, Defaultretrypolicy) Change to DowngradingConsistencyRetryPolicy
  5. 2.1 handles compactions of large partitions better. Quorum queries do read repairs, so one slower (compacting) node will take much longer to return digest to coordinator, making the whole operation slower.
  6. SSTables per read Tombstones per read Indicates compactions are not keeping up or compaction strategy is not appropriate.
  7. Nodetool stop only stops current compaction, but does not prevent more compactions from occurring. So the same (problematic) compaction will be kicked off again later. Compactionthroughput – on 2.1 applies to new compactions, on 2.2.5+ applies instantly.
  8. Particularly in 2.0
  9. -H makes is readable.
  10. 50% for STCS If you fill up a disk – can cause corrupt sstables, fails halfway through compactions. C* doesn’t restart
  11. Snapshots can consume considerable space on disk.
  12. I like to look at the data files on disk – easier than Cfstats. Look for large CFs. Can you remove data? Note: might not just be your data. Space can commonly be consumed by snapshots or even system keyspaces. We’ve had nodes nearly fill up because of stored hinted handoffs.
  13. Be wary of changing gc_grace – make sure there are no other nodes down, or are back up within 3 hours or else the tombstone won’t get passed in HH.
  14. Recovery – add ebs, start C*, compact, etc.
  15. ~25G remaining but only 4G free. Unlikely.
  16. This example was SizeTieredCompactionStrategy If you are watching the node closely, you can let the available disk space get VERY low during compactions (MB free). Be prepared to stop Cassandra on the node if it gets too low.
  17. Added the three 800’s previously – didn’t think they’d need the storage but needed compute QUORUM - A write must be written to the commit log and memtable on a quorum of replicas
  18. I guess they were having a busy day.
  19. - when Cassandra attempts a read at CL higher than 1 it actually request data from the likely fastest node a digest from the remaining nodes. It then compares the digest values to ensure they agree. - if the don't agree, Cassandra attempts to apply the "most recent data" wins rule and also repair the inconsistency across nodes. To do this, it issue a query at CL=ALL - CASSANDRA 7947 (https://issues.apache.org/jira/browse/CASSANDRA-7947) changed the behaviour of Cassandra so that a failure at the original CL is report rather than a failure at CL=ALL Two nodes up but one was missing updates/data which triggered the CL=ALL reads and failures. 
  20. In our experience it is faster overall to take a slow-and-steady approach rather than overloading the cluster and having to recover it. Eg. Don’t execute many rebuilds in parallel.