Size a Redis or
Valkey cluster for a fintech workload: memory, fork headroom and eviction
Size a Redis or Valkey cluster from the peak, not the average: with persistence on, a write-heavy node can use up to twice its normal memory while it saves an RDB file or rewrites the AOF, and the docs advise setting maxmemory to 8 or 9 GB on a host with 10 GB free (Valkey admin docs, read 23 Nov 2026). That alone can turn a 60 GB dataset into a few hundred gigabytes of provisioned RAM. A typical fintech design also fixes eviction (noeviction for ledgers, an eviction policy for caches), key encodings and the replica count before anyone provisions a node. OSStend engineers write the memory budget, test it with a copy of your keys, and sign it off before the cluster exists. This page shows the budget method with arithmetic, not a customer result.
45 minutes with an engineer: we review your workload and sketch the design.
- ✓Redis
- ✓Design
- ✓Fintech
- Question
- How much memory per shard, and how many shards
- Inputs
- Key shapes, value sizes, write rate, persistence mode
- Fork headroom
- Up to 2x on write-heavy nodes during a save
- Deliverable
- Signed memory budget and test results
- Where it runs
- Your cloud account
Typical situation
Trigger. A new payments feature will add a large keyspace and the team cannot guess the node size.
Versions. Valkey or Redis 8 and later; cluster mode with replicas.
- Ledger-adjacent keys must never be evicted silently.
- Persistence is on, so fork headroom counts.
- Latency budget is set by the payment path.
A typical situation, not a named customer.
Cluster size is set by peak memory: a write-heavy node can use up to 2x memory during an RDB save or AOF rewrite, and maxmemory should sit below host memory. OSStend measures your key shapes, sets eviction and replicas, and signs a memory budget before provisioning.
Customers
Partners
- PostgreSQL
- MySQL
- MongoDB
- Redis
Valkey
- OpenSearch
- Kafka
- RabbitMQ
- AWS
- Google Cloud
- Azure
- Kubernetes
- OpenShift
- Prometheus
- Grafana
- Datadog
- Dynatrace
- Splunk
What OSStend runs and what you keep
This is a design engagement. OSStend measures and writes the budget; your team provides the data shapes and owns the application.
| Area | OSStend | You |
|---|---|---|
| Key survey | Samples key types, sizes and TTLs from a copy. | Provides a sanitised copy. |
| Encoding review | Checks which keys use compact encodings and where thresholds convert them. | Accepts or changes data shapes. |
| Memory budget | Computes data, overhead, fork headroom and headroom for growth. | Supplies growth forecasts. |
| Eviction policy | Sets noeviction or a policy per keyspace. | Decides what may be evicted. |
| Replica and shard plan | Sets shards, replicas and placement across zones. | Approves the availability target. |
| Load test | Runs the budget against a replayed write rate. | Provides the write profile. |
| Run | Operates the cluster 24/7 if chosen. | Application changes. |
Where it can run
The budget method is engine-neutral. The engine and version are chosen by where the cluster runs.
| Option | When it fits | Licence and source |
|---|---|---|
| Our cloud | A design that suits a dedicated cluster in OSStend's cloud. | Valkey (BSD 3-clause, COPYING, read 23 Nov 2026) or Redis 8 and later (AGPLv3 option, LICENSE, read 23 Nov 2026). |
| Your cloud account | The default for fintech data in your own account. | Same engines, plus Redis 7.4 to 7.x (RSALv2 or SSPLv1 only) where a version is pinned. |
| Your data center | Latency to on-premises systems. | Same as your cloud account. |
How we run it
The design takes about three weeks and ends in a signed document. The test step is what turns a spreadsheet into a design.
Key survey (3 to 5 days)
Sample keys by type and size, and record TTL spread and big keys.
Encoding and shape review (3 to 5 days)
Check default compact-encoding limits, for example hash entries 512 and value size 64 in Valkey 7.2, and decide what to change (docs, read 23 Nov 2026).
Budget and plan (1 week)
Compute per-shard memory with fork headroom, set maxmemory below host memory and pick replicas.
Load and failover test (1 week)
Replay writes with persistence on, force a save and kill a primary.
Sign-off
The budget, settings and test results go into the design you sign.
Cost basis
Memory is the main cost driver and the budget makes it explicit. The example below is arithmetic on stated assumptions, not a measurement.
| Assumption (illustrative) | Value | Result |
|---|---|---|
| Logical data | 60 GB | |
| Overhead and fragmentation allowance | 20% | 72 GB in memory |
| Shards | 6 primaries | 12 GB data per shard |
| Read-mostly, persistence light: maxmemory at 85% of host | Host about 14 GB per node, 168 GB across primaries | |
| Write-heavy with saves: allow up to 2x for fork | Host about 24 GB per node, 288 GB across 12 nodes with replicas |
Arithmetic with stated assumptions. Fork headroom up to 2x and the 8 to 9 GB of 10 GB guideline are from the Valkey admin docs, read 23 Nov 2026. Replicas not shown for the read-mostly row. Not a quote.
The point of the table is the spread: the same dataset needs very different hardware depending on write rate and persistence. OSStend's price is quoted per design; see pricing.
What we watch on call
A well-sized cluster still has to be watched for the places where the budget leaks.
- Big keys.
- One hash or sorted set that grows without bound. Signal: sampled key sizes and slowlog.
- Encoding conversion.
- A value passes the compact-encoding limit and memory per key jumps. Signal: memory per key by type.
- Fragmentation.
- Memory stays near peak after deletes. Signal: RSS against used memory; the ratio misleads after large deletes (docs, read 23 Nov 2026).
- Fork latency.
- A save stalls writes on a large node. Signal: latest fork time.
- Silent eviction.
- An eviction policy on a keyspace that must not lose keys. Signal: evicted keys per keyspace.
When OSStend is not the right fit
A written budget pays off before the first large build. It is overkill for a throwaway cache.
Contact us if
- ✓A new keyspace of tens of gigabytes is about to be provisioned.
- ✓Persistence and replicas are required.
- ✓You want the budget tested before spending on hosts.
Not a fit if
- ✕A small cache with default settings.
- ✕A workload with no persistence where an eviction policy is enough.
- ✕You already hold a tested budget.
Questions buyers ask
These are the questions fintech teams ask about Redis sizing.
Why is provisioned RAM so much larger than the dataset?
Overhead, fragmentation and fork copy-on-write. A write-heavy node can use up to 2x memory while saving (Valkey admin docs, read 23 Nov 2026), so peak sets the size.
Which eviction policy for ledger data?
noeviction, so writes fail with an error instead of dropping keys. Caches that tolerate loss can use an eviction policy.
Does OSStend run it afterwards?
If you choose. See managed Redis or Valkey.
Where does the live move fit?
Related pages
- PricingDatabase as a service pricing: dedicated, tailoredDatabase as a service pricing from OSStend: dedicated, tailored clusters priced by engine, size, SLA tier and location. Enterprise only, with no free tier.
- Redis or ValkeyManaged Redis or Valkey, your choice of engineManaged Redis or Valkey: you choose the engine, with persistence, eviction and configuration set for your workload, run 24/7 in your cloud or data center.
- Use caseLive Redis cutover for a gaming platformA gaming platform moves a live Redis leaderboard and session store by replication with a seconds-long write pause and a rollback. Commands and licence row.
Get a memory budget before you buy hosts
45 minutes: key shapes, write rate and persistence, then the budget method.
- ✓A design sketch for your workload, not a plan menu
- ✓A zero-downtime cutover path for what you run today
- ✓A price for that design, after the review





