Scaling
How to scale your Zektor.io database instances — vertical scaling, cluster resizing, and performance optimization.
Overview
Zektor.io supports vertical scaling — upgrading or changing the compute resources (CPU and RAM) allocated to your database instance. Storage scales separately and only grows. You can scale your instance at any time from the dashboard.
Cluster Sizes
Each database engine offers multiple cluster sizes (tiers). Choose the right tier based on your workload:
PostgreSQL Tiers
| Tier | RAM | vCPU | Included storage | Price |
|---|---|---|---|---|
| AKPG-5 | 512MB | 0.25 | 5GB | €5.00/mo |
| AKPG-10 | 1GB | 0.5 | 5GB | €12.00/mo |
| AKPG-20 | 2GB | 1 | 5GB | €20.00/mo |
| AKPG-40 | 4GB | 2 | 5GB | €40.00/mo |
| AKPG-80 | 8GB | 4 | 10GB | €85.00/mo |
| AKPG-160 | 16GB | 8 | 20GB | €165.00/mo |
| AKPG-320 | 32GB | 16 | 40GB | €330.00/mo |
Valkey Tiers
| Tier | RAM | vCPU | Price |
|---|---|---|---|
| AKVK-1 | 128MB | 0.125 | €2.00/mo |
| AKVK-5 | 512MB | 0.5 | €5.00/mo |
| AKVK-10 | 1GB | 1 | €12.00/mo |
| AKVK-20 | 2GB | 2 | €24.00/mo |
| AKVK-40 | 4GB | 4 | €48.00/mo |
| AKVK-80 | 8GB | 8 | €90.00/mo |
How to Scale
Scaling Up (Upgrading)
- Navigate to your instance's Settings tab
- Under Cluster Size, select a larger tier
- Click Save Changes
- The resize process will begin automatically
Scaling Down (Downgrading)
You can also scale down to a smaller tier to reduce costs:
- Navigate to your instance's Settings tab
- Select a smaller tier
- Click Save Changes
Note: Storage stays as it is; GB above the smaller plan's included storage are billed at €0.15/GB/month. AKPG-160 at 20GB moved to AKPG-40 adds €2.25/mo.
What Happens During a Resize
When you resize a PostgreSQL instance:
- A new instance with the target cluster size is provisioned
- Your data is migrated to the new instance
- Connection endpoints are updated to point to the new instance
- The old instance is decommissioned
Downtime: There is a brief period of downtime during the cutover, typically a few seconds. The exact duration depends on your database size.
Connections: Existing connections will be terminated during the cutover. Applications with connection pooling and retry logic will reconnect automatically.
In-flight queries: Any queries running during the cutover will fail. Ensure your application handles transient errors gracefully.
Billing: Tier changes are prorated by the hour. You only pay for each tier for the hours you used it.
Resizing Branches
Each branch can be independently sized. You don't need to match the cluster size of your main branch — this is useful for running cheaper development branches.
Storage
Every plan includes storage: 5GB on AKPG-5 to AKPG-40, then 10GB, 20GB and 40GB on AKPG-80, AKPG-160 and AKPG-320. Storage scales separately from CPU and RAM:
- Growing: Grow it any time, up to 1000GB, from Settings → Storage, with
zektor storage resize, or through the API. It runs online, with no restart. - Never shrinks: Neither you, a plan change nor a restore can make it smaller. The only way
to pay for less is to
pg_dumpinto a new database and delete the old one. - Price: €0.15/GB per month above what the plan includes, in whole GB, prorated by the hour like plans. You pay for the size, not the usage: deleting rows frees room, not money.
- Automatic growth: Opt-in, and needs a maximum above the current size. At 80% full it grows to the larger of +5GB or 70% full, never above the maximum. Each grow is permanent and billed like a manual one, and you're notified each time. After a failed automatic grow it waits a day.
- Plan changes: An upgrade to a plan that includes more raises the size to that plan's, free. A downgrade keeps its storage, and the GB above the smaller plan are billed.
Growing beyond what the plan includes, or turning on automatic growth, needs a payment method or account credit. Databases created before growable storage existed can't grow yet; they are moving there soon, and are never billed for storage.
You can monitor your current storage usage in the Monitoring dashboard.
When to Scale
Signs You Need to Scale Up
| Symptom | Likely Cause | Solution |
|---|---|---|
| High CPU usage (>80% sustained) | Heavy query load | Upgrade to a larger cluster |
| High memory usage (>90%) | Large working set | More RAM for buffer cache |
| Disk usage approaching limit | Data growth | Grow storage, or turn on automatic growth |
FATAL: too many clients | Connection limit reached | Upgrade tier or use pooling |
| Slow query performance | Insufficient resources | More CPU/RAM |
Choosing the Right Tier
- Starter — Small projects, prototypes, development databases
- Standard — Production applications with moderate traffic
- Pro — Growing applications with significant query load
- Business — High-traffic production workloads
- Custom — Contact us for dedicated resources
Performance Optimization
Before scaling up, consider these optimizations that often solve performance issues for free:
PostgreSQL
-
Add indexes — Missing indexes are the #1 cause of slow queries
-- Find tables with mostly sequential scans SELECT relname, seq_scan, idx_scan FROM pg_stat_user_tables WHERE seq_scan > idx_scan ORDER BY seq_scan DESC; -
Use connection pooling — Reduce connection overhead with PgBouncer or application-level pooling
-
Optimize queries — Use
EXPLAIN ANALYZEto identify slow operationsEXPLAIN ANALYZE SELECT * FROM orders WHERE customer_id = 42; -
VACUUM regularly — PostgreSQL needs VACUUM to reclaim space and update statistics
VACUUM ANALYZE; -
Check for table bloat — Large, frequently-updated tables can accumulate dead tuples
Valkey
- Use appropriate data structures — Choose Sets, Sorted Sets, Hashes over individual keys
- Set TTLs on keys — Prevent unbounded memory growth
- Use pipelining — Batch commands to reduce round trips
- Monitor eviction — If keys are being evicted, you need more memory
Need Larger Instances?
For deployments requiring more than our standard tier offerings — or for dedicated hardware, custom networking, or compliance requirements — contact us.
Next Steps
- Monitoring — Track resource usage and identify bottlenecks
- Connecting — Configure connection pooling
- Pricing — Understand costs for each tier
- Limits & Quotas — Storage and connection limits per tier