Pricing Overview
Monthly charges depend on your cluster plan:- Basic: Usage-based pricing (Request Units + Storage)
- Standard: Provisioned compute + usage-based storage and services
- Advanced: Fully provisioned infrastructure + usage-based services
Pricing by Plan
- Basic
- Standard
- Advanced
CockroachDB Basic uses fully usage-based pricing.
Cost Components
Request Units (RUs):- Measures compute, network, and I/O consumption
- 1 RU = 3ms SQL CPU, or 1 KiB network egress, or varying storage I/O
- Billed per RU consumed
- Rates vary by cloud provider and region
- Billed per GiB-hour
- Includes 3x replication at no extra cost
- Rates vary by cloud provider and region
Free Tier
For monthly-billed customers:- First $15/month is free
- Equivalent to ~50M Request Units + 10 GiB storage
- Does not apply to annual contracts
Example Cost Calculation
Scenario: Small application, 100M RU/month, 25 GiB storageActual prices vary by cloud provider and region. See pricing page for current rates.
Detailed Pricing Components
Compute Pricing
How compute is priced
How compute is priced
Basic:
- Measured in Request Units
- 1 RU = 3ms of SQL CPU
- Auto-scales with workload
- Provisioned capacity in vCPUs
- Billed hourly regardless of usage
- Rates: 0.15/vCPU-hour depending on region
- Per-node hourly rate
- Based on machine type (vCPU + RAM)
- Rates: 2.00/node-hour depending on size and region
Storage Pricing
How storage is priced
How storage is priced
Basic:
- Usage-based per GiB-hour
- Rates: ~$0.00014/GiB-hour
- 3x replication included
- Usage-based per GiB-hour
- Auto-scales with data
- Rates: ~$0.00014/GiB-hour
- 3x replication included
- Provisioned per node
- Billed per GiB-hour per node
- Rates: ~$0.001/GiB-hour per node
- Must be set at creation
Data Transfer Pricing
How data transfer is priced
How data transfer is priced
Same-Region:
- Free between cluster nodes
- Charged for egress to external endpoints
- Rates: CSP same-region egress rates
- Charged for all cross-region traffic
- Includes inter-node replication
- Rates: CSP cross-region transfer rates
- All data egressing to internet
- Includes client connections, exports, changefeeds
- Rates: CSP internet egress rates
Backup Pricing
How backups are priced
How backups are priced
Managed Backups:
- Tiered per-GiB-month rates
- Tier 1 (under 5 GiB): Higher rate
- Tier 2 (5-100 GiB): Mid rate
- Tier 3 (100-500 GiB): Lower rate
- Tier 4 (500-1000 GiB): Even lower
- Tier 5 (over 1000 GiB): Lowest rate
- Daily vs hourly backup rates differ
- Per-GiB transfer fee
- You pay for your cloud storage separately
- Gives you full control
CDC (Changefeeds) Pricing
How changefeeds are priced
How changefeeds are priced
- Charged per GiB-month of watched data
- “Watched data” = total size of tables with active changefeeds
- Tiered pricing (same tiers as backups)
- Basic: Included in Request Units
- Standard/Advanced: Separate usage-based charge
Regional Pricing Differences
Prices vary significantly by region: Example vCPU-hour rates (Standard):| Region | Cloud | Rate/vCPU-hour |
|---|---|---|
| Iowa (us-central1) | GCP | $0.100 |
| Oregon (us-west1) | GCP | $0.106 |
| Belgium (europe-west1) | GCP | $0.113 |
| Singapore (asia-southeast1) | GCP | $0.121 |
| US East (us-east-1) | AWS | $0.098 |
| EU West (eu-west-1) | AWS | $0.109 |
For current regional pricing, see the pricing calculator.
Cost Optimization Strategies
Choose the Right Plan
Use Basic For
- Development/testing
- Proof of concepts
- Small applications
- Variable workloads
- Learning CockroachDB
Use Standard For
- Production workloads
- Predictable traffic
- Cost optimization
- Growing applications
Use Advanced For
- Mission-critical apps
- Compliance requirements
- Enterprise features
- Dedicated resources
- DB Console access
Optimize Compute Costs
Basic:- Optimize queries to reduce RU consumption
- Use indexes effectively
- Implement caching where appropriate
- See Resource Usage guide
- Right-size provisioned capacity
- Monitor actual vs provisioned usage
- Scale down during off-peak (where allowed)
- Use auto-scaling features
- Choose appropriate node sizes
- Don’t over-provision
- Use multi-region only when needed
- Consider node count vs node size tradeoffs
Optimize Storage Costs
- Implement data retention policies
- Use TTL to expire old data automatically
- Archive historical data
- Compress large columns
- Drop unused indexes
- Regular vacuum/compaction
Optimize Data Transfer Costs
- Minimize cross-region queries
- Use regional tables for multi-region clusters
- Implement follower reads
- Optimize changefeed payloads
- Cache frequently accessed data
- Use private connectivity to reduce egress
Optimize Backup Costs
- Set appropriate retention periods
- Use self-managed backups for long-term retention
- Consider backup frequency vs RPO requirements
- Expire old backups
- Use incremental backups
Billing and Payment
Payment Methods
- Credit Card
- AWS Marketplace
- GCP Marketplace
- Enterprise Agreement
- Charged monthly
- Automatic payment
- Update anytime in Console
Billing Cycle
- Billing Period: Calendar month
- Invoice Date: 1st of following month
- Payment Due: Per payment method
- Usage: Hourly metering, monthly billing
Credits and Trials
Free Trial:- $400 in credits
- Valid for 30 days
- All features included
- Standard or Advanced cluster
- $15/month for monthly-billed customers
- ~50M Request Units + 10 GiB storage
- Not available for annual contracts
Pricing Examples
Example 1: Small Development Cluster (Basic)
Workload:- 20M Request Units/month
- 5 GiB storage
- Single region (GCP Iowa)
Example 2: Production App (Standard)
Configuration:- 16 vCPUs provisioned
- 200 GiB storage (actual usage)
- Single region (AWS us-east-1)
- Daily backups, ~50 GiB
Example 3: Multi-Region Production (Advanced)
Configuration:- 9 nodes (3 per region)
- 8 vCPU, 32 GB RAM per node
- 100 GiB storage per node
- 3 regions (GCP: Iowa, Belgium, Singapore)
Cost Estimation Tools
Pricing Calculator
Use the CockroachDB Pricing Calculator to estimate costs:- Select plan type
- Choose cloud provider and regions
- Configure capacity
- View estimated monthly cost
Cloud Console Estimates
The Cloud Console shows real-time cost estimates:- During cluster creation
- When scaling capacity
- On cluster overview page
- In billing section
Monitoring Costs
Track your spending:Billing Page
- Overview: Current month charges
- Invoices: Historical billing
- Usage: Detailed breakdown
- Estimates: Projected costs
Cost Alerts
Set up spending alerts:Usage APIs
Track usage programmatically:Next Steps
Plan Comparison
Compare plans in detail
Billing Management
Manage billing and payments
Cost Calculator
Estimate your costs
Resource Usage
Understand resource consumption