ZEKTOR.IO Docs

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

TierRAMvCPUIncluded storagePrice
AKPG-5512MB0.255GB€5.00/mo
AKPG-101GB0.55GB€12.00/mo
AKPG-202GB15GB€20.00/mo
AKPG-404GB25GB€40.00/mo
AKPG-808GB410GB€85.00/mo
AKPG-16016GB820GB€165.00/mo
AKPG-32032GB1640GB€330.00/mo

Valkey Tiers

TierRAMvCPUPrice
AKVK-1128MB0.125€2.00/mo
AKVK-5512MB0.5€5.00/mo
AKVK-101GB1€12.00/mo
AKVK-202GB2€24.00/mo
AKVK-404GB4€48.00/mo
AKVK-808GB8€90.00/mo

How to Scale

Scaling Up (Upgrading)

  1. Navigate to your instance's Settings tab
  2. Under Cluster Size, select a larger tier
  3. Click Save Changes
  4. The resize process will begin automatically

Scaling Down (Downgrading)

You can also scale down to a smaller tier to reduce costs:

  1. Navigate to your instance's Settings tab
  2. Select a smaller tier
  3. 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:

  1. A new instance with the target cluster size is provisioned
  2. Your data is migrated to the new instance
  3. Connection endpoints are updated to point to the new instance
  4. 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_dump into 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

SymptomLikely CauseSolution
High CPU usage (>80% sustained)Heavy query loadUpgrade to a larger cluster
High memory usage (>90%)Large working setMore RAM for buffer cache
Disk usage approaching limitData growthGrow storage, or turn on automatic growth
FATAL: too many clientsConnection limit reachedUpgrade tier or use pooling
Slow query performanceInsufficient resourcesMore 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

  1. 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;
  2. Use connection pooling — Reduce connection overhead with PgBouncer or application-level pooling

  3. Optimize queries — Use EXPLAIN ANALYZE to identify slow operations

    EXPLAIN ANALYZE SELECT * FROM orders WHERE customer_id = 42;
  4. VACUUM regularly — PostgreSQL needs VACUUM to reclaim space and update statistics

    VACUUM ANALYZE;
  5. Check for table bloat — Large, frequently-updated tables can accumulate dead tuples

Valkey

  1. Use appropriate data structures — Choose Sets, Sorted Sets, Hashes over individual keys
  2. Set TTLs on keys — Prevent unbounded memory growth
  3. Use pipelining — Batch commands to reduce round trips
  4. 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

On this page