Qdrant optimizer, vacuum and deleted points

Qdrant marks deleted points and reclaims their space later, through background optimizers. This page explains how the Qdrant optimizer behaves, which settings to tune, and how to verify changes with the monitoring API.

On this page

How the Qdrant optimizer reclaims space from deleted points

Deleted points are removed by background optimization, not instantly. When you delete or overwrite a point, Qdrant marks the old data as deleted and the space it occupies is reclaimed later, when the Qdrant optimizer rewrites the affected segments. That is why disk use on a collection with heavy churn can stay high for a while after a delete job finishes. The optimizer is the component that finishes the job, so the first question is not how to force space back but whether the background process is running and keeping up with the write load.

Teams need to look at optimizer settings in three situations: sustained delete or update churn, large bulk loads that create many small segments, and disk pressure that is approaching the point where writes could be blocked. In each case, check segment counts, optimization activity and free disk before changing anything. Many deployments should not touch the optimizer at all. If disk use is stable, search latency is within target and deletes are infrequent, the default behavior is usually the right one, and changing thresholds without evidence can add I/O during peak hours.

Exact defaults and setting names change between releases, so confirm them against the configuration reference for the version you run. The latest release referenced in the pillar facts is v1.19.2, published October 5, 2026, and the configuration file and collection-level optimizer parameters should be checked against that version or the one you actually deploy. Record the values you start from, so that a later tuning change can be compared with a known baseline.

How deletes move through segments, optimizers and monitoring

The diagram starts with a delete or upsert request reaching one Qdrant peer, which marks points as deleted inside a segment rather than removing them at once. The vacuum, merge and indexing optimizers on that same peer pick up segments that cross their thresholds and write rewritten segments that replace the old ones. Operators then read optimizer status from the monitoring API on each peer, since optimizations run per node and not across the cluster. Check every peer, not just one endpoint, when deleted space seems slow to return.

Deletes mark points in segments, and per-peer optimizers rewrite them later.

Optimizer settings and when each one fits

This table compares the five optimizer setting groups that control vacuum, merging, segment sizing and indexing in Qdrant. Read each row as a dial: the cost of raising it is usually disk held longer or slower writes, and the cost of lowering it is usually more background CPU and I/O. Check the configuration reference for your deployed version before changing any key.

Setting groupWhat it controlsRaising it versus lowering itWorkload where it fits
Deleted-point ratio for vacuumHow much of a segment must be marked deleted before a vacuum pass rewrites it and reclaims spaceRaising it holds disk longer for deleted points but cuts background I/O. Lowering it reclaims disk sooner at the cost of more frequent rewritesCollections with heavy update or delete churn, where disk growth matters more than background load
Minimum size before vacuumThe smallest segment size at which vacuum is considered, so tiny segments are not rewritten over and overRaising it avoids churn on small segments but lets deleted points linger in them. Lowering it cleans small segments sooner with more small rewritesCollections with many small segments from frequent small batches of writes
Segment count targetHow many segments the merge optimizer aims to keep per shard, which sets how much work each search fans out acrossRaising it means more segments and more open files and search overhead. Lowering it triggers more merging and more background CPU and I/ORead-heavy collections where search latency matters, paired with a raised open-file limit
Maximum segment sizeThe size above which the optimizer stops merging segments and leaves them as they areRaising it produces larger segments that are fewer but slower to rewrite during optimization. Lowering it keeps optimizations quick but creates more segmentsLarge collections where rewrite time must stay short during business hours
Indexing thresholdThe segment size above which the optimizer builds the vector index instead of searching the segment by brute forceRaising it keeps recent data unindexed for longer, which slows search on it. Lowering it builds indexes sooner and uses more CPU and memory during buildsBulk loads that finish before queries start, or collections where recent data must be searchable quickly

Tuning the Qdrant optimizer for your workload

Deletes and updates in Qdrant mark old points as deleted and write new versions into segments, so disk space is reclaimed only when the optimizer rewrites those segments. Under steady search traffic, this usually shows up as disk use that climbs between optimizer cycles and search latency that drifts upward as deleted points are scanned.

  • Symptom. Disk usage grows while the live point count stays flat, and the gap between stored and live points widens over days.
  • Driver. The vacuum optimizer, which rebuilds segments once the share of deleted points passes its threshold.
  • Adjust. Lower the deleted-point threshold so vacuum runs earlier in smaller passes. This trades more background I/O for less idle space.
  • Measure. Track optimizer activity and segment counts in the monitoring output, along with disk use and p95 search latency over several days after the change.

Confirm the exact threshold parameter names for your Qdrant version in the collection optimizer settings before you edit them.

Watching optimizations before and after a change

This sequence tests an optimizer threshold change on a copy of your data before it reaches production, then rolls it across the cluster one peer at a time. Each step ends with a check you can record, so the team can show whether deleted points were reclaimed, whether optimizations finished, and whether search latency moved.

  1. Record a per-node baseline

    Before changing anything, record segment counts, disk use and search latency for each node, using the same collection and query set you run in production. Take the readings from every peer's metrics endpoint and keep them in a dated log with the Qdrant version and the current optimizer settings. The step is done when you have one row per node and one row per query set, so later readings have a fixed point to compare against.

  2. Reproduce the delete pattern on a copy

    Restore a copy of the collection into a test cluster on the same minor version as production, since snapshots restore only to matching or next minor versions. Replay the delete pattern your application produces, such as bulk removals by filter or steady single-point deletes, and note how many points are marked deleted and when writes stop. The step is done when the copy shows the same growth in disk use and segment count that production showed, so the test matches your workload.

  3. Check optimizer status on every peer

    Query the collection's status and optimizer information on each peer directly, bypassing the load balancer, and record whether optimizations are idle, running or pending. A cluster-wide summary can look healthy while one node is still working through deleted points, so read each peer's answer separately. The step is done when every peer reports its optimizer state and you have written down the pending work for each node.

  4. Change one threshold in the test environment

    Adjust a single optimizer setting, such as the threshold that triggers vacuum or merging, in the test collection configuration. Changing one value at a time keeps the cause of any difference clear. Write down the old value, the new value and the time of the change. The step is done when the new setting is confirmed on the collection and the optimizer status from the previous step shows it has picked up the work.

  5. Repeat the measurement after the change

    Run the same delete pattern, wait until optimizer status on every peer returns to idle, then take the same segment, disk and latency readings you took for the baseline. Compare them against the logged baseline, not against memory of production. The step is done when you can state the change in disk use and latency per node and whether it met the goal you set. If disk use did not fall as expected, revert the setting and test a different hypothesis before tuning further.

  6. Roll the change one node at a time

    Apply the same setting to one production peer, leaving the others unchanged, then watch that peer's optimizer status, error logs and search latency through a full delete cycle before continuing. Start with the peer that carries the fewest active queries. Move to the next peer only after the first one shows no new errors and its readings match the test copy within the margin you set beforehand. The step is done when each node has the change and its readings are recorded.

  7. Confirm optimizations finish on all peers

    After the last node changes, check optimizer status on each peer again and confirm that no optimization is pending or running. Then compare segment counts and disk use across the cluster against the baseline. Record the final readings with the date and settings. The step is done when all peers report idle optimizers, disk use has moved in the expected direction on every node, and the record is filed with the change request so the next team can repeat the check.

Risks of tuning the optimizer too aggressively

Optimizer settings trade background work for foreground speed, disk space and predictability. The cards below cover the failure modes we see when those settings are pushed too far, and the first check for each so you can tell whether the optimizer or the underlying sizing is the real problem.

Optimizer I/O during peak hours

Symptom: search and upsert latency rises during business hours, and slow request logs show the same windows. Cause: vacuum, merge and indexing jobs read and write segment files on the same disks that serve queries, so aggressive thresholds schedule heavy rewrites while traffic is high. First check: compare optimizer activity in the monitoring API with your latency histograms for the same hours, then confirm disk utilization on each node. Qdrant recommends SSD or NVMe block storage, so spare I/O capacity is the first thing to verify.

Qdrant installation docs

Disk headroom during segment rewrites

Symptom: a node runs out of disk during an optimization that appeared to be routine, or free space drops sharply and then recovers. Cause: while a segment is rewritten, the new copy is built alongside the old one, so the collection needs temporary free space beyond its steady-state size. Aggressive settings that trigger rewrites more often make these peaks more frequent. First check: record free disk on every node before and during a large optimization, and keep enough headroom that a full rewrite of your largest segment still fits.

Large segments slow later optimizations

Symptom: each optimization run takes longer than the last, and the optimizer queue stays busy for hours. Cause: when merge thresholds let segments grow very large, every later rewrite has more data to read and write, and index rebuilds take longer. Tuning that favors fewer, bigger segments can look efficient at first and then compound. First check: list segment sizes and counts per collection over several weeks, and confirm that segment count and size are trending within the limits you set in your capacity plan.

Different settings across peers

Symptom: one node shows heavy optimizer work, slower responses or more disk growth while its peers look normal. Cause: optimizer thresholds are set per node through configuration, so a change applied to one peer or a partial rollout leaves the cluster with mixed behavior. Shards on the mismatched node then absorb a different share of the work. First check: compare the effective configuration files and container environment on every peer, and verify that all peers were restarted after the change.

Conflicts with quotas and write release margin

Symptom: writes stop with insufficient storage errors shortly after an optimization completes, or writes stay blocked longer than the disk usage suggests. Cause: an optimization can briefly raise disk use past a quota threshold, and writes resume only after usage falls below the release margin. Tight thresholds with an aggressive optimizer can keep a collection oscillating around that boundary. First check: review your quota and warning settings against the peak disk use you observe during optimizations, and confirm the release margin before you set limits that block writes.

Tuning that hides a sizing problem

Symptom: the optimizer runs constantly, yet disk and latency keep getting worse no matter how the thresholds are set. Cause: frequent vacuum and merge work often reflects a delete-heavy pattern, undersized nodes or too many small segments from frequent small writes. Changing thresholds moves the cost around without removing it. First check: measure your delete rate and write pattern, compare RAM and disk against your data volume, and confirm whether the optimizer backlog shrinks after you fix the ingest or sizing cause. Treat threshold changes as the last step, not the first.

Access control and operational safeguards for optimizer changes

Limit optimizer configuration changes and collection-level actions to a small group holding an admin-level API key. Qdrant supports admin and read-only API keys, so the people and automation that only watch optimization status can run on a read-only key instead. For finer control, JWT-based access control (available since v1.9.0) lets you grant per-collection read or write permissions, which means a dashboard or on-call tool can read optimizer state for one collection without any ability to change its thresholds. Confirm in your own environment which operations each key type can perform before you hand keys to a team, because the role boundaries decide who can accidentally trigger a change.

Treat the monitoring endpoints as operational surfaces, not public ones. The security documentation states that self-deployed instances listen on all network interfaces and have no authentication configured by default, so every peer's metrics and status endpoints should sit on a private network, reachable only from your scraping system and operators. Enable API keys and TLS before any scraper connects, and confirm that your Prometheus or Datadog collectors send the required key header. Your Qdrant security documentation is the reference for the exact configuration.

Enable JSON audit logging of authenticated API operations, available since v1.17.0, so every threshold change can be traced to a key and a time. Audit logs answer who changed a setting, but they do not explain why, so pair them with a written change record for each threshold: the old value, the new value, the collection, the metric that prompted the change, and the person who approved it. Before any settings change, take a fresh snapshot of the affected collection and confirm the snapshot is stored off the node. Snapshots only restore to clusters running the same or the next minor version, so record the Qdrant version alongside each snapshot to keep rollback options open.

Optimizer limits to confirm in your environment

Qdrant's optimizers change how fast deleted points disappear and how much disk a collection needs at peak. The settings, defaults and behaviors below vary by version and topology, so confirm each one in a test environment that matches production before you commit to a tuning plan.

Exact optimizer settings and defaults

Read the optimizer configuration for the version you deploy, not the version you read about. Record the defaults for vacuum, merge and indexing thresholds, then confirm whether your config file, environment variables or collection-level settings override them. Write down the values you actually run, since a tuning plan built on remembered defaults will drift after an upgrade.

Installation docs

Behavior across restarts

Test whether an optimization running during a restart is paused, cancelled or restarted from the beginning, and how long it takes to resume. Stop a node in the middle of a vacuum on a large collection, bring it back, and watch the optimizer state. Long optimizations that restart from zero can keep deleted points on disk for far longer than the thresholds suggest.

Quota release
1.19

Interaction with 1.19 quotas

Qdrant 1.19 introduced resource quotas that can block writes once a limit is reached. Confirm whether optimizer work that rewrites segments counts against those limits, and whether a collection can end up blocked while its optimizer is trying to free space. Reproduce this in a test cluster with a quota set close to current usage, then check which writes stop and when they resume.

Qdrant releases

Free disk needed during rewrites

Segment rewrites briefly need free space beyond the data already stored, because the new segment is written before the old one is removed. Measure the peak disk use during a full vacuum on a copy of your largest collection, on the same block storage class you use in production. Network file systems and object storage are not supported, so the test must run on the production storage type.

Storage requirements

Optimizer state in the monitoring API

Confirm which endpoints and fields report optimizer state in your version, such as the collection info response and the telemetry output, and whether they show pending work, running jobs and deleted point counts. Check that your Prometheus or Grafana setup scrapes the same values. A dashboard built on a field that changed name in an upgrade will show calm graphs during a stalled optimization.

Effect of single node or replicated topology

Decide whether your deployment is a single node or a distributed cluster with replicas, then test optimizer timing in that exact topology. Replicated shards may optimize on each peer separately, so deleted points can clear on some replicas before others. Recommended cluster sizes and replication factors are in the distributed deployment docs, and the timing you measure on one node does not transfer to a multi-node cluster.

Distributed deployment docs

Questions teams ask about Qdrant optimizers and deleted points

Why does disk usage not drop after deleting points in Qdrant?

Deleted points are usually marked as removed first and physically cleaned up later, so disk usage can stay flat for a while after a large delete. Qdrant's vacuum optimizer is the background process that rebuilds segments holding removed points, and it runs on its own schedule. Space is freed when those segments are rebuilt, and the operating system may not show a smaller file until that work finishes. Teams often read a flat disk graph as a leak, but the cause is normal background work. Before concluding anything, check the deleted-point and segment counts through the monitoring API and confirm the exact behavior for your version in the Qdrant documentation. If the counts keep rising with no optimizer activity, that is the point to investigate further.

Is tuning the Qdrant optimizer a one-time task or ongoing work?

It is both. The initial thresholds are a one-time setup decision, but the right values change as data volume, update rates and delete patterns change. A collection that receives steady deletes, bulk reloads or re-embedding runs needs its settings reviewed after each significant shift in workload. Schedule a recurring review alongside capacity reviews and every Qdrant upgrade, because optimizer behavior can change between releases. The Qdrant GitHub releases page lists v1.19.2, published October 5, 2026, so teams on older 1.x releases should read release notes before reusing old settings. Ongoing work usually means watching optimizer activity, disk growth and search latency each month, then changing settings only when the data shows a problem. DeployOpen offers retainers for recurring review, and a one-off tuning pass can be scoped separately.

What makes Qdrant optimizer tuning take more or less effort?

Four factors drive the effort most. The first is the delete pattern: frequent, small deletes spread across many segments are harder to reason about than occasional large batch deletes. The second is cluster size, meaning node count, shard count and replication factor. The Qdrant distributed deployment documentation notes that a replication factor of 2 doubles storage, so each node and each replica adds more segments to watch. The third is the number of collections, since each collection has its own segments and optimizer state, and effort scales with the number of collections that behave differently. The fourth is access to a staging copy. Testing threshold changes against data of similar size and delete pattern is far safer than experimenting in production. Ask any provider to price these four factors explicitly in the written scope.

What does our team need to provide for an optimizer review?

Four things make the review productive. First, metrics access: the team needs to scrape or query the Qdrant metrics from every peer, plus the API key if authentication is enabled, so the review starts from a baseline rather than from memory. Second, a representative dataset or staging copy with similar size, payload shape and delete behavior. Third, a change window for restarts or configuration changes, agreed with the people who own search traffic. Fourth, a named decision owner who can approve threshold changes and accept the trade-off between faster cleanup and background load. Also provide the collection list, the write pattern for each collection and any known incidents involving disk growth or slow searches. Missing inputs usually extend the review more than any technical complexity.

Can one in-house engineer tune the Qdrant optimizer alone?

Yes, a capable platform engineer can do it, provided they have metrics access, a staging copy, time set aside for testing and a documented rollback plan. The work is mostly careful observation: reading optimizer activity, comparing segment counts over time, changing one setting at a time and checking search latency after each change. The main risks are operational rather than conceptual. Optimizer work consumes CPU, memory and disk I/O, so a poorly timed change can slow searches during peak hours. A single engineer also has no second reviewer for threshold decisions, and knowledge often leaves with that person. A practical middle path is for the in-house engineer to own the work while an outside reviewer checks the plan, the change window and the evidence before and after each change. Document every decision so the next engineer can repeat the review.

What does a fixed-scope Qdrant optimizer tuning engagement cover?

DeployOpen's engagements are fixed-scope, and the scope, deliverables and timeline are agreed in writing before work starts. A typical tuning scope includes an inventory of collections, their write and delete patterns, a metric baseline from before any change, and threshold recommendations tested against a staging copy the client provides. It also includes a change plan with a rollback step, support during the agreed change window, and documentation that explains each setting and how to watch it. Items outside the written scope, such as production changes outside the window, unrelated search tuning or ongoing monitoring, need separate agreement. DeployOpen does not promise a specific amount of reclaimed space, since results depend on the data. A quote follows from the written scope, so ask for each deliverable and each client input to be listed.

How do we tell whether optimizations are running or stuck?

Start with the monitoring API, which reports optimizer status per collection, and compare that with the metrics your team already collects from each peer. Running optimizations should show changing segment counts and temporary rises in disk and CPU use. Stuck optimizations usually show the same segment counts and deleted-point counts across several checks, with the collection status staying in a degraded state. Check the node logs for errors around the same time, and confirm that all peers are healthy, since an unhealthy peer can hold back work on its shards. If optimizations stopped after a restart, review the collection status guidance before forcing any action. Record each observation with a timestamp so the pattern is clear. If the pattern does not clear, escalate to a vendor or partner with the logs and metric history ready.

How DeployOpen scopes and tunes Qdrant optimizer settings

DeployOpen approaches Qdrant optimizer, vacuum and deleted points as an operations question that starts before go-live. We scope which collections see heavy deletes and updates, build the optimizer thresholds and monitoring around that write pattern, and document how your team reads optimizer activity. Engagements are fixed-scope, and ongoing support is available as a retainer.

How we scope

  • Map which collections receive frequent deletes, upserts and payload updates, and how often each occurs
  • Confirm the Qdrant version, deployment path and node count the optimizer settings will run on
  • Agree in writing which optimizer thresholds are in scope and which monitoring outputs will be delivered

How we build

  • Configure optimizer thresholds per collection, with each change recorded and tied to a measured write pattern
  • Test deletes and bulk updates in a staging copy to observe how segments merge and disk usage changes
  • Wire the monitoring API outputs for optimizer activity into the dashboards and alerts your team chooses

How we hand over

  • Deliver a runbook explaining why deleted points still occupy space until optimization completes
  • Document each threshold value, its reason and the test result that supports it
  • Walk your operators through reading optimizer status and deciding when to act or escalate

How we support

  • Review optimizer behavior after version upgrades, since defaults and behavior may change between releases
  • Re-check thresholds when collection sizes, delete rates or hardware change materially
  • Offer continuous support and periodic reviews under a retainer, scoped in writing with your team

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.