Cover image for Scaling CouchDB

Book description

A practical guide to web developers who need to scale their CouchDB database instances. The basic concepts behind CouchDB's scalability (i.e. its distributed shared nothing architecture) will be covered as well as:

  • Replicating using both Futon and CouchDB's RESTful API

  • Continuous replication

  • Conflict resolution

  • Load balancing

  • Clustering with CouchDB Lounge

Table of Contents

  1. Special Upgrade Offer
  2. Preface
    1. Conventions Used in This Book
    2. Using Code Examples
    3. Safari® Books Online
    4. How to Contact Us
    5. Acknowledgments
  3. 1. Defining Scaling Goals
    1. What is Scalability?
    2. Capacity Planning
    3. The CAP Theorem
      1. Consistency
      2. Availability
      3. Partition Tolerance
  4. 2. Tuning and Designing for Scale
    1. Performance Tips
    2. Document Design
  5. 3. Replication
    1. Filters and Specifying Documents
    2. Conflict Resolution
      1. Picking the Same Revision as CouchDB
      2. Picking a Conflicted Revision
      3. Merging Revisions
  6. 4. Load Balancing
    1. CouchDB Nodes
    2. Replication Setup
    3. Proxy Server Configuration
    4. Testing
  7. 5. Clustering
    1. BigCouch
    2. Lounge
    3. Pillow
  8. 6. Distributed Load Testing
    1. Installing Tsung
    2. Configuring Tsung
    3. Running Tsung
    4. Monitoring
    5. Identifying Bottlenecks
    6. Test Configuration
  9. About the Author
  10. Special Upgrade Offer
  11. Copyright