SlideShare a Scribd company logo
1 of 24
Download to read offline
MAKING IT TO VETERAN
CASSANDRA STATUS
Been There, Done That, Survived
Eric Lubow @elubow
PERSONAL VANITY
๏ CTO of SimpleReach
๏ Co-Author of Practical
Cassandra
๏ Skydiver, Mixed Martial
Artist, Motorcyclist, Dog Dad
(IG: @charliedognyc), NY
Giants fan
Eric Lubow @elubow
SIMPLEREACH
๏ Identify the best content
๏ Use engagement metrics
๏ Stream processing ingest
๏ Many metrics, time sliced
๏ Multiple data stores
Eric Lubow @elubow
๏Started using Cassandra at 0.2 in Sep of 2009
๏First put Cassandra in production at 1.0
๏Helped in building multiple drivers
๏Filed lots of Jira tickets (40+)
๏Beta tested features
๏Large counter deployment (largest?)
AM I QUALIFIED TO BE A VETERAN
Eric Lubow @elubow
DID I MENTION I CO-WROTE A BOOK?
Eric Lubow @elubow
What are we actually going to talk
about today?
Eric Lubow @elubow
HOW DOES ONE BECOME A VETERAN
It’s not all unicorns and rainbows
Eric Lubow @elubow
๏ Use Cassandra
๏ Dig in to the code from time to time (server and drivers)
๏ Know strengths and weaknesses and understand why
๏ Follow the changelogs and mailing lists
๏ Stress Cassandra in unconventional ways
๏ Learn the failure scenarios and how to fix them (hang out on IRC)
๏ Break the rules from time to time to see what happens
๏ “Those who do not know the past are condemned to repeat it.” -
George Santayana
HOW DO I LEVEL UP?
Eric Lubow @elubow
HOW DID SIMPLEREACH GET FROM …
Eric Lubow @elubow
๏ What’s the latest cool technology?
CHOOSING A DATABASE IS EASY, #AMIRITE
๏ What is my data volume?
๏ What are my query patterns?
๏ Is my data (un)structured?
๏ Will data remain consistent?
๏ Am I read heavy or write heavy?
๏ Am I batch loading data?
๏ Is eventually consistent data ok?
๏ Can I have a DR plan?
๏ Legal/compliance requirements?
๏ Are there experts/enterprise support?
๏ What’s the community like?
๏ Easy to administer?
๏ Tooling, monitoring, language support?
๏ Cloud or iron?
๏ High volume ingestion or batch loading?
๏ Fault tolerance?
๏ Open source vs enterprise system?
๏ Employee learning curve vs. learning cost?
Eric Lubow @elubow
LET’S LOOK AT SOME USE-CASES
Eric Lubow @elubow
WRITE: High volume/High velocity ingestion
USE-CASE: READ/WRITE PATTERNS
๏ Log structured storage; fast writes
๏ Writes do not affect reads
๏ Row creation unaffected by table size
๏ Indexing does not affect writes
๏ No locking, uses vector clock/LWW
๏ Goals
๏ Document storage; slower writes
๏ MMAP reads affected by writes
๏ Slow document creation in large
collections
๏ Poor indexing can destroy entire DB
๏ Server level, db level, collection level locks
๏ Goals
READ: Recency, key/value lookups, ETL
Cassandra Mongo
Eric Lubow @elubow
HELPERS FOR A MORE AFFORDABLE CLUSTER
Aggregator
Mongo Writer
Broadcast
Redis Writer
Cassandra Writer
Solr Writer
Calculator
NSQ
Vertica Writer
Eric Lubow @elubow
HOW DO WE KNOW WHAT WORKS BEST
Eric Lubow @elubow
USE-CASE: ADMINISTRATION
๏ Every node is the same base
๏ No master node
๏ All monitoring through JMX
๏ One step to add/remove nodes
๏ Tunables, lots of em
๏ Easily wrote our own chef cookbook
๏ Goals
๏ Config nodes, Shard nodes, Replica nodes
๏ Master/slave nodes, leader election
๏ Monitoring via mongostat sometimes
๏ Two step to add/remove nodes
๏ No tunables
๏ Many non-well working chef cookbooks
๏ Goals
BASICALLY JUST ME
Cassandra Mongo
Eric Lubow @elubow
๏ Primarily Datastax ๏ Community
Contributions
๏ Who is the
community?
CASSANDRA IS OPEN SOURCE
Eric Lubow @elubow
SERIOUSLY 40+ JIRA TICKETS?
SPARK-6949 Pyspark and datetime
OPSC-6186 Rebalance - while calling decorator (IndexError): list index out of range
CASSANDRA-9871 Cannot replace token does not exist - DN node removed as Fat Client
OPSC-6045 Agent CPU on startup 800 Seconds
OPSC-5346 Opsc Repair service system_traces system_auth
CASSANDRA-7409 LCS improvement
CASSANDRA-8611 Socket timeout shitty default
CASSANDRA-9279 Gossip (and mutations) lock up on Startup
OPSC-4879 OpsC Agent JMX Connections and Cassandra Operations Fail Incessantly
CASSANDRA-8086 Too many connections - Cassandra Defense
CASSANDRA-7122 System peers
CASSANDRA-6506 Counters++ Final Performance
CASSANDRA-7510 Up node gossip messages -- affects drivers
PYTHON-202 More control for metadata updates
PYTHON-201 Optionally randomize contact points
OPSC-3672 OpsC - Repair Service Restarts on Node Flopping
DSP-3059 / SOLR-5463 Solr 4.10 - and Deep Paging
CASSANDRA-8548 Cleanup Dump
DSP-4560 Possible ticket Upgrade from 4.5.2 to 4.5.3
DSP-3341 In-memory Phase 2 (off heap and remove GB limit)
DSP-3970 Solr indexes even when values don't change
CASSANDRA-8150 Stump's JVM Tuning
Eric Lubow @elubow
SIMPLEREACH CONTEXT
๏ 100 million URLs
๏ 350 million Tweets
๏ 50k - 100k events per second (tens of billions of events per day)
๏ 225G new per hour
๏ 700T of total data (10T per month)
๏ 10T of hot data
๏ 72 nodes Cassandra cluster
๏ 52 Realtime Nodes
๏ 9 Search Nodes
๏ 11 Spark Nodes
Eric Lubow @elubow
Solr
Solr
Vertica + Cassandra
Vertica + Cassandra
Vertica
Mongo
Eric Lubow @elubow
๏ Average over 200k counter writes per second
๏ Pre-aggregate writes (saved us 10x the writes)
๏ Trying to defeat the counter time bomb
๏ Breaking the rules with CASSANDRA-8150
๏ Many many JVM tuning changes
๏ All things possible through monitoring
๏ Upgraded every node in the cluster by hand one at a time
๏ Upgrading to 2.1 definitely sealed the deal
CONQUERING COUNTERS
Eric Lubow @elubow
๏ Nodes might have removed themselves from a cluster because the
disk was full
๏ Apps might lose connections to the cluster and then take 45 min to
reconnect (or longer on bigger clusters)
๏ A slow node might make the entire cluster unusable
๏ A poorly gossiping node might overwork itself out of the cluster
๏ Adding a node to the cluster might take down all connected apps
๏ Sometimes you just can’t removenode (or bootstrap)
UNDERSTAND FAILURE SCENARIOS
Eric Lubow @elubow
WHAT SHOULD YOU WALK AWAY WITH?
๏ Incredibly important to have a deep
understanding around your cases
๏ Sometimes database tuning has nothing to do
with database settings
๏ Understand failure scenarios for your use-cases
๏ Give back, it helps everything get better
๏ Ignoring best practices is almost never a good
idea
Eric Lubow @elubow
THANKS FOR LISTENING
Eric Lubow @elubow
QUESTIONS IN LIFE ARE GUARANTEED,
ANSWERS AREN’T.
Eric Lubow
@elubow
NYC Cassandra Day

More Related Content

What's hot

Масштабируя TLS / Артём Гавриченков (Qrator Labs)
Масштабируя TLS / Артём Гавриченков (Qrator Labs)Масштабируя TLS / Артём Гавриченков (Qrator Labs)
Масштабируя TLS / Артём Гавриченков (Qrator Labs)
Ontico
 
Как сделать высоконагруженный сервис, не зная количество нагрузки / Олег Обле...
Как сделать высоконагруженный сервис, не зная количество нагрузки / Олег Обле...Как сделать высоконагруженный сервис, не зная количество нагрузки / Олег Обле...
Как сделать высоконагруженный сервис, не зная количество нагрузки / Олег Обле...
Ontico
 
Webconf nodejs-production-architecture
Webconf nodejs-production-architectureWebconf nodejs-production-architecture
Webconf nodejs-production-architecture
Ben Lin
 
自分をClojure化する方法
自分をClojure化する方法自分をClojure化する方法
自分をClojure化する方法
fukamachi
 

What's hot (19)

Clack: glue for web apps
Clack: glue for web appsClack: glue for web apps
Clack: glue for web apps
 
HTTPS and Ansible
HTTPS and AnsibleHTTPS and Ansible
HTTPS and Ansible
 
Node.JS: Do you know the dependency of your dependencies dependency
Node.JS: Do you know the dependency of your dependencies dependencyNode.JS: Do you know the dependency of your dependencies dependency
Node.JS: Do you know the dependency of your dependencies dependency
 
About Clack
About ClackAbout Clack
About Clack
 
Масштабируя TLS / Артём Гавриченков (Qrator Labs)
Масштабируя TLS / Артём Гавриченков (Qrator Labs)Масштабируя TLS / Артём Гавриченков (Qrator Labs)
Масштабируя TLS / Артём Гавриченков (Qrator Labs)
 
Как сделать высоконагруженный сервис, не зная количество нагрузки / Олег Обле...
Как сделать высоконагруженный сервис, не зная количество нагрузки / Олег Обле...Как сделать высоконагруженный сервис, не зная количество нагрузки / Олег Обле...
Как сделать высоконагруженный сервис, не зная количество нагрузки / Олег Обле...
 
Container and microservices: a love story
Container and microservices: a love storyContainer and microservices: a love story
Container and microservices: a love story
 
Make your Ansible playbooks maintainable, flexible, and scalable
Make your Ansible playbooks maintainable, flexible, and scalableMake your Ansible playbooks maintainable, flexible, and scalable
Make your Ansible playbooks maintainable, flexible, and scalable
 
Sensu and Sensibility - Puppetconf 2014
Sensu and Sensibility - Puppetconf 2014Sensu and Sensibility - Puppetconf 2014
Sensu and Sensibility - Puppetconf 2014
 
ReactJS.NET - Fast and Scalable Single Page Applications
ReactJS.NET - Fast and Scalable Single Page ApplicationsReactJS.NET - Fast and Scalable Single Page Applications
ReactJS.NET - Fast and Scalable Single Page Applications
 
Webconf nodejs-production-architecture
Webconf nodejs-production-architectureWebconf nodejs-production-architecture
Webconf nodejs-production-architecture
 
Planning to Fail #phpuk13
Planning to Fail #phpuk13Planning to Fail #phpuk13
Planning to Fail #phpuk13
 
Woo: Writing a fast web server @ ELS2015
Woo: Writing a fast web server @ ELS2015Woo: Writing a fast web server @ ELS2015
Woo: Writing a fast web server @ ELS2015
 
自分をClojure化する方法
自分をClojure化する方法自分をClojure化する方法
自分をClojure化する方法
 
Akka.net versus microsoft orleans
Akka.net versus microsoft orleansAkka.net versus microsoft orleans
Akka.net versus microsoft orleans
 
Security Testing with OWASP ZAP in CI/CD - Simon Bennetts - Codemotion Amster...
Security Testing with OWASP ZAP in CI/CD - Simon Bennetts - Codemotion Amster...Security Testing with OWASP ZAP in CI/CD - Simon Bennetts - Codemotion Amster...
Security Testing with OWASP ZAP in CI/CD - Simon Bennetts - Codemotion Amster...
 
Andrew Nelson - Zabbix and SNMP on Linux
Andrew Nelson - Zabbix and SNMP on LinuxAndrew Nelson - Zabbix and SNMP on Linux
Andrew Nelson - Zabbix and SNMP on Linux
 
KazooCon 2014 - Introduction to Kazoo APIs!
KazooCon 2014 - Introduction to Kazoo APIs!KazooCon 2014 - Introduction to Kazoo APIs!
KazooCon 2014 - Introduction to Kazoo APIs!
 
Symfony Deployments on Heroku
Symfony Deployments on HerokuSymfony Deployments on Heroku
Symfony Deployments on Heroku
 

Similar to Making It To Veteren Cassandra Status

Similar to Making It To Veteren Cassandra Status (20)

Simplereach: Counters at Scale: A Cautionary Tale
Simplereach: Counters at Scale: A Cautionary TaleSimplereach: Counters at Scale: A Cautionary Tale
Simplereach: Counters at Scale: A Cautionary Tale
 
Counters At Scale - A Cautionary Tale
Counters At Scale - A Cautionary TaleCounters At Scale - A Cautionary Tale
Counters At Scale - A Cautionary Tale
 
Optimizing Your Cluster with Coordinator Nodes (Eric Lubow, SimpleReach) | Ca...
Optimizing Your Cluster with Coordinator Nodes (Eric Lubow, SimpleReach) | Ca...Optimizing Your Cluster with Coordinator Nodes (Eric Lubow, SimpleReach) | Ca...
Optimizing Your Cluster with Coordinator Nodes (Eric Lubow, SimpleReach) | Ca...
 
SQL-RISC: New Directions in SQLi Prevention - RSA USA 2013
SQL-RISC: New Directions in SQLi Prevention - RSA USA 2013SQL-RISC: New Directions in SQLi Prevention - RSA USA 2013
SQL-RISC: New Directions in SQLi Prevention - RSA USA 2013
 
Php johannesburg meetup - talk 2014 - scaling php in the enterprise
Php johannesburg   meetup - talk 2014 - scaling php in the enterprisePhp johannesburg   meetup - talk 2014 - scaling php in the enterprise
Php johannesburg meetup - talk 2014 - scaling php in the enterprise
 
What is NetDevOps? How? Leslie Carr PuppetConf 2015
What is NetDevOps? How? Leslie Carr PuppetConf 2015What is NetDevOps? How? Leslie Carr PuppetConf 2015
What is NetDevOps? How? Leslie Carr PuppetConf 2015
 
GraphQL vs. (the) REST
GraphQL vs. (the) RESTGraphQL vs. (the) REST
GraphQL vs. (the) REST
 
Azure + DataStax Enterprise (DSE) Powers Office365 Per User Store
Azure + DataStax Enterprise (DSE) Powers Office365 Per User StoreAzure + DataStax Enterprise (DSE) Powers Office365 Per User Store
Azure + DataStax Enterprise (DSE) Powers Office365 Per User Store
 
Cassandra Day SV 2014: Spark, Shark, and Apache Cassandra
Cassandra Day SV 2014: Spark, Shark, and Apache CassandraCassandra Day SV 2014: Spark, Shark, and Apache Cassandra
Cassandra Day SV 2014: Spark, Shark, and Apache Cassandra
 
Single Page Application JS Framework Round up
Single Page Application JS Framework Round upSingle Page Application JS Framework Round up
Single Page Application JS Framework Round up
 
Power of linked list
Power of linked listPower of linked list
Power of linked list
 
Introduction to Cassandra and CQL for Java developers
Introduction to Cassandra and CQL for Java developersIntroduction to Cassandra and CQL for Java developers
Introduction to Cassandra and CQL for Java developers
 
Ben Coverston - The Apache Cassandra Project
Ben Coverston - The Apache Cassandra ProjectBen Coverston - The Apache Cassandra Project
Ben Coverston - The Apache Cassandra Project
 
Design for Scale / Surge 2010
Design for Scale / Surge 2010Design for Scale / Surge 2010
Design for Scale / Surge 2010
 
To Build My Own Cloud with Blackjack…
To Build My Own Cloud with Blackjack…To Build My Own Cloud with Blackjack…
To Build My Own Cloud with Blackjack…
 
Where Django Caching Bust at the Seams
Where Django Caching Bust at the SeamsWhere Django Caching Bust at the Seams
Where Django Caching Bust at the Seams
 
Azure Kubernetes Service - benefits and challenges
Azure Kubernetes Service - benefits and challengesAzure Kubernetes Service - benefits and challenges
Azure Kubernetes Service - benefits and challenges
 
Putting Cake into your CI
Putting Cake into your CIPutting Cake into your CI
Putting Cake into your CI
 
Five Years of EC2 Distilled
Five Years of EC2 DistilledFive Years of EC2 Distilled
Five Years of EC2 Distilled
 
Leveraging Databricks for Spark Pipelines
Leveraging Databricks for Spark PipelinesLeveraging Databricks for Spark Pipelines
Leveraging Databricks for Spark Pipelines
 

Recently uploaded

( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
nilamkumrai
 
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
nirzagarg
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Chandigarh Call girls 9053900678 Call girls in Chandigarh
 
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 

Recently uploaded (20)

( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
 
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Salem Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
 
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
 
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
 
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls DubaiDubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
 
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
 
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
 

Making It To Veteren Cassandra Status

  • 1. MAKING IT TO VETERAN CASSANDRA STATUS Been There, Done That, Survived
  • 2. Eric Lubow @elubow PERSONAL VANITY ๏ CTO of SimpleReach ๏ Co-Author of Practical Cassandra ๏ Skydiver, Mixed Martial Artist, Motorcyclist, Dog Dad (IG: @charliedognyc), NY Giants fan
  • 3. Eric Lubow @elubow SIMPLEREACH ๏ Identify the best content ๏ Use engagement metrics ๏ Stream processing ingest ๏ Many metrics, time sliced ๏ Multiple data stores
  • 4. Eric Lubow @elubow ๏Started using Cassandra at 0.2 in Sep of 2009 ๏First put Cassandra in production at 1.0 ๏Helped in building multiple drivers ๏Filed lots of Jira tickets (40+) ๏Beta tested features ๏Large counter deployment (largest?) AM I QUALIFIED TO BE A VETERAN
  • 5. Eric Lubow @elubow DID I MENTION I CO-WROTE A BOOK?
  • 6. Eric Lubow @elubow What are we actually going to talk about today?
  • 7. Eric Lubow @elubow HOW DOES ONE BECOME A VETERAN It’s not all unicorns and rainbows
  • 8. Eric Lubow @elubow ๏ Use Cassandra ๏ Dig in to the code from time to time (server and drivers) ๏ Know strengths and weaknesses and understand why ๏ Follow the changelogs and mailing lists ๏ Stress Cassandra in unconventional ways ๏ Learn the failure scenarios and how to fix them (hang out on IRC) ๏ Break the rules from time to time to see what happens ๏ “Those who do not know the past are condemned to repeat it.” - George Santayana HOW DO I LEVEL UP?
  • 9. Eric Lubow @elubow HOW DID SIMPLEREACH GET FROM …
  • 10. Eric Lubow @elubow ๏ What’s the latest cool technology? CHOOSING A DATABASE IS EASY, #AMIRITE ๏ What is my data volume? ๏ What are my query patterns? ๏ Is my data (un)structured? ๏ Will data remain consistent? ๏ Am I read heavy or write heavy? ๏ Am I batch loading data? ๏ Is eventually consistent data ok? ๏ Can I have a DR plan? ๏ Legal/compliance requirements? ๏ Are there experts/enterprise support? ๏ What’s the community like? ๏ Easy to administer? ๏ Tooling, monitoring, language support? ๏ Cloud or iron? ๏ High volume ingestion or batch loading? ๏ Fault tolerance? ๏ Open source vs enterprise system? ๏ Employee learning curve vs. learning cost?
  • 11. Eric Lubow @elubow LET’S LOOK AT SOME USE-CASES
  • 12. Eric Lubow @elubow WRITE: High volume/High velocity ingestion USE-CASE: READ/WRITE PATTERNS ๏ Log structured storage; fast writes ๏ Writes do not affect reads ๏ Row creation unaffected by table size ๏ Indexing does not affect writes ๏ No locking, uses vector clock/LWW ๏ Goals ๏ Document storage; slower writes ๏ MMAP reads affected by writes ๏ Slow document creation in large collections ๏ Poor indexing can destroy entire DB ๏ Server level, db level, collection level locks ๏ Goals READ: Recency, key/value lookups, ETL Cassandra Mongo
  • 13. Eric Lubow @elubow HELPERS FOR A MORE AFFORDABLE CLUSTER Aggregator Mongo Writer Broadcast Redis Writer Cassandra Writer Solr Writer Calculator NSQ Vertica Writer
  • 14. Eric Lubow @elubow HOW DO WE KNOW WHAT WORKS BEST
  • 15. Eric Lubow @elubow USE-CASE: ADMINISTRATION ๏ Every node is the same base ๏ No master node ๏ All monitoring through JMX ๏ One step to add/remove nodes ๏ Tunables, lots of em ๏ Easily wrote our own chef cookbook ๏ Goals ๏ Config nodes, Shard nodes, Replica nodes ๏ Master/slave nodes, leader election ๏ Monitoring via mongostat sometimes ๏ Two step to add/remove nodes ๏ No tunables ๏ Many non-well working chef cookbooks ๏ Goals BASICALLY JUST ME Cassandra Mongo
  • 16. Eric Lubow @elubow ๏ Primarily Datastax ๏ Community Contributions ๏ Who is the community? CASSANDRA IS OPEN SOURCE
  • 17. Eric Lubow @elubow SERIOUSLY 40+ JIRA TICKETS? SPARK-6949 Pyspark and datetime OPSC-6186 Rebalance - while calling decorator (IndexError): list index out of range CASSANDRA-9871 Cannot replace token does not exist - DN node removed as Fat Client OPSC-6045 Agent CPU on startup 800 Seconds OPSC-5346 Opsc Repair service system_traces system_auth CASSANDRA-7409 LCS improvement CASSANDRA-8611 Socket timeout shitty default CASSANDRA-9279 Gossip (and mutations) lock up on Startup OPSC-4879 OpsC Agent JMX Connections and Cassandra Operations Fail Incessantly CASSANDRA-8086 Too many connections - Cassandra Defense CASSANDRA-7122 System peers CASSANDRA-6506 Counters++ Final Performance CASSANDRA-7510 Up node gossip messages -- affects drivers PYTHON-202 More control for metadata updates PYTHON-201 Optionally randomize contact points OPSC-3672 OpsC - Repair Service Restarts on Node Flopping DSP-3059 / SOLR-5463 Solr 4.10 - and Deep Paging CASSANDRA-8548 Cleanup Dump DSP-4560 Possible ticket Upgrade from 4.5.2 to 4.5.3 DSP-3341 In-memory Phase 2 (off heap and remove GB limit) DSP-3970 Solr indexes even when values don't change CASSANDRA-8150 Stump's JVM Tuning
  • 18. Eric Lubow @elubow SIMPLEREACH CONTEXT ๏ 100 million URLs ๏ 350 million Tweets ๏ 50k - 100k events per second (tens of billions of events per day) ๏ 225G new per hour ๏ 700T of total data (10T per month) ๏ 10T of hot data ๏ 72 nodes Cassandra cluster ๏ 52 Realtime Nodes ๏ 9 Search Nodes ๏ 11 Spark Nodes
  • 19. Eric Lubow @elubow Solr Solr Vertica + Cassandra Vertica + Cassandra Vertica Mongo
  • 20. Eric Lubow @elubow ๏ Average over 200k counter writes per second ๏ Pre-aggregate writes (saved us 10x the writes) ๏ Trying to defeat the counter time bomb ๏ Breaking the rules with CASSANDRA-8150 ๏ Many many JVM tuning changes ๏ All things possible through monitoring ๏ Upgraded every node in the cluster by hand one at a time ๏ Upgrading to 2.1 definitely sealed the deal CONQUERING COUNTERS
  • 21. Eric Lubow @elubow ๏ Nodes might have removed themselves from a cluster because the disk was full ๏ Apps might lose connections to the cluster and then take 45 min to reconnect (or longer on bigger clusters) ๏ A slow node might make the entire cluster unusable ๏ A poorly gossiping node might overwork itself out of the cluster ๏ Adding a node to the cluster might take down all connected apps ๏ Sometimes you just can’t removenode (or bootstrap) UNDERSTAND FAILURE SCENARIOS
  • 22. Eric Lubow @elubow WHAT SHOULD YOU WALK AWAY WITH? ๏ Incredibly important to have a deep understanding around your cases ๏ Sometimes database tuning has nothing to do with database settings ๏ Understand failure scenarios for your use-cases ๏ Give back, it helps everything get better ๏ Ignoring best practices is almost never a good idea
  • 23. Eric Lubow @elubow THANKS FOR LISTENING
  • 24. Eric Lubow @elubow QUESTIONS IN LIFE ARE GUARANTEED, ANSWERS AREN’T. Eric Lubow @elubow NYC Cassandra Day