更新时间:2021-08-06 19:50:43
coverpage
Cassandra High Availability
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Cassandra's Approach to High Availability
ACID
The monolithic architecture
The master-slave architecture
Cassandra's solution
Cassandra's architecture
Summary
Chapter 2. Data Distribution
Hash table fundamentals
Consistent hashing
Token assignment
Partitioners
Chapter 3. Replication
The replication factor
Snitches
Consistency conflicts
Balancing the replication factor with consistency
Chapter 4. Data Centers
Use cases for multiple data centers
Data center setup
Replication across data centers
Chapter 5. Scaling Out
Choosing the right hardware configuration
Scaling out versus scaling up
Growing your cluster
How to scale out
How to scale up
Removing nodes
Other data migration scenarios
Snitch changes
Chapter 6. High Availability Features in the Native Java Client
Thrift versus the native protocol
Setting up the environment
Connecting to the cluster
Executing statements
Handling asynchronous requests
Load balancing
Failing over to a remote data center
Tying it all together
Chapter 7. Modeling for High Availability
How Cassandra stores data
Understanding compaction
CQL under the hood
Understanding queries
How collections are stored
Working with time-series data
Designing for immutability
Working with geospatial data
Chapter 8. Antipatterns
Multikey queries
Secondary indices
Distributed joins
Deleting data
Unbounded row growth
Chapter 9. Failing Gracefully
Knowledge is power
Logging
Monitoring node metrics
When a node goes down
Backing up data
Index