Product Cover Image

Practical Cassandra: A Developer's Approach, CourseSmart eTextbook

By Russell Bradberry, Eric Lubow

Published by Addison-Wesley Professional

Published Date: Dec 18, 2013

Description

Practical Cassandra is the first hands-on developer’s guide to building systems that deliver on Cassandra’s promises of extraordinary speed, scalability, reliability, and performance. Two pioneering Cassandra developers – including Russell Bradberry, primary author of Cassandra’s NodeJS driver – walk the reader through every step of building a real production application. Drawing on their exceptional expertise, they share deep insights into issues ranging from querying to deployment, management, maintenance, and monitoring. Bradberry and DataStax MVP Eric Lubow cover key issues ranging from architecture to migration and guide through navigating crucial decisions needed to make about data modeling.

Table of Contents

Foreword by Jonathon Ellis xiii

Foreword by Paul Dix xv

Preface xvii

Acknowledgments xxi

About the Authors xxiii

 

Chapter 1: Introduction to Cassandra 1

A Greek Story 1

What Is NoSQL? 2

There’s No Such Thing as “Web Scale” 2

ACID, CAP, and BASE 2

Where Cassandra Fits In 5

What Is Cassandra? 5

Cassandra Terminology 8

Our Hope 9

 

Chapter 2: Installation 11

Prerequisites 11

Installation 11

Configuration 13

Cluster Setup 15

Summary 16

 

Chapter 3: Data Modeling 17

The Cassandra Data Model 17

Model Queries—Not Data 19

Collections 22

Summary 25

 

Chapter 4: CQL 27

A Familiar Way of Doing Things 27

Summary 39

 

Chapter 5: Deployment and Provisioning 41

Keyspace Creation 41

Replication Strategies 42

Snitches 43

Partitioners 46

Node Layout 48

Firewalls 49

Platforms 49

Summary 50

 

Chapter 6: Performance Tuning 51

Methodology 51

Tuning 52

System Tuning 62

Solid-State Drives 64

JVM Tuning 65

Summary 67

 

Chapter 7: Maintenance 69

Understanding nodetool 69

Ring Information 72

ColumnFamily Statistics 73

Thread Pool Statistics 74

Compactions 76

Backup and Restore 79

CommitLog Archiving 81

Summary 82

 

Chapter 8: Monitoring 83

Logging 83

JMX and MBeans 85

Health Checks 91

Summary 96

 

Chapter 9: Drivers and Sample Code 99

Java 100

C# 104

Python 108

Ruby 112

Summary 117

 

Chapter 10: Troubleshooting 119

Toolkit 119

Common Problems 121

Summary 126

 

Chapter 11: Architecture 127

Meta Keyspaces 127

Gossip Protocol 129

Failure Detection 130

HintedHandoffs 131

Bloom Filters 131

Summary 134

 

Chapter 12: Case Studies 135

Ooyala 135

Hailo 137

eBay 141

Summary 147

 

Appendix A: Getting Help 149

Preparing Information 149

IRC 149

Mailing Lists 149

 

Appendix B: Enterprise Cassandra 151

DataStax 151

Acunu 152

Titan by Aurelius 153

Pentaho 154

Instaclustr 154 

 

Index 157

Purchase Info ?

With CourseSmart eTextbooks and eResources, you save up to 60% off the price of new print textbooks, and can switch between studying online or offline to suit your needs.

Once you have purchased your eTextbooks and added them to your CourseSmart bookshelf, you can access them anytime, anywhere.

Buy Access

Practical Cassandra: A Developer's Approach, CourseSmart eTextbook
Format: Safari Book

$17.49 | ISBN-13: 978-0-13-380553-6