Softwr

Cloud · head to head

Optuna vs Thanos

Optuna logo

Optuna

Cloud

Open-source Python framework for automated hyperparameter optimisation

From
Free
Free plan
Yes
Thanos logo

Thanos

Cloud

Highly available Prometheus with long-term object storage

From
Free
Free plan
Yes

The short version

  • Optuna is an MIT-licensed hyperparameter optimisation framework.
  • Both are free.
  • Only Optuna lists define-by-run search spaces; only Thanos lists global query.
  • Where Optuna falls short: searches are only as good as the objective and search space defined.
  • Where Thanos falls short: several components — sidecar, store, querier, compactor, ruler — each with its own configuration and failure modes.

How do Optuna and Thanos differ?

Optuna and Thanos differ on pricing model and platforms (Web against Self-hosted, Linux). Only the attributes on which Optuna and Thanos actually diverge.

Attributes where Optuna and Thanos differ
AttributeOptunaThanos
Pricing modelOpen-sourceOpen source, no licence fee
PlatformsWebSelf-hosted, Linux

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for Optuna.

Which features does each one have?

They share no listed features; 7 appear only for Optuna and 4 only for Thanos. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Optuna

  • Define-by-run search spaces
  • Pruning of unpromising trials
  • Parallel and distributed search
  • Framework-agnostic integrations
  • Optuna Dashboard
  • OptunaHub feature sharing
  • Multiple search algorithms

Only in Thanos

  • Global query
  • Object storage retention
  • Deduplication
  • Downsampling

What is each one used for?

Optuna is most often brought in for tuning deep learning models; Thanos for querying metrics across many clusters or regions from one place. The jobs each tool is most often brought in to do.

Optuna

  • Tuning deep learning modelsnot Thanos
  • Tuning gradient-boosted treesnot Thanos
  • Pruning slow experiments earlynot Thanos
  • Parallel searches across machinesnot Thanos

Thanos

  • Querying metrics across many clusters or regions from one placenot Optuna
  • Retaining metrics for years without local disk growthnot Optuna
  • Removing the gap that appears when a single Prometheus instance restartsnot Optuna

Where do Optuna and Thanos fall short?

Optuna's most cited limit: searches are only as good as the objective and search space defined. Thanos's: several components — sidecar, store, querier, compactor, ruler — each with its own configuration and failure modes. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Optuna

  • Searches are only as good as the objective and search space defined
  • Distributed runs need a shared storage backend set up by the user
  • Works only with Python code, so non-Python teams cannot use it
  • Tuning only; no experiment tracking or deployment features

Thanos

  • Several components — sidecar, store, querier, compactor, ruler — each with its own configuration and failure modes
  • The compactor is a common source of operational trouble and must not run twice against the same bucket
  • Query latency over object storage is meaningfully higher than local Prometheus
  • Object storage costs and API request charges become real at high volume

How much do Optuna and Thanos cost?

Optuna is free to use; Thanos is free to use. Plan by plan below, from each vendor's own pricing page.

Optuna

Free

No published plan breakdown. See the Optuna review.

Thanos

Free
  • ThanosFree
    • Full functionality
    • No usage limits
    • Community support

Which should you pick?

Choose Optuna if

  • You need define-by-run search spaces.
  • You want to start without paying.
  • You also want pruning of unpromising trials.

Choose Thanos if

  • You need global query.
  • You want to start without paying.
  • You work on Self-hosted, Linux.
  • You also want object storage retention.

Questions people ask

Is Optuna or Thanos better?
It depends on the job. Optuna fits tuning deep learning models; Thanos fits querying metrics across many clusters or regions from one place. Optuna starts at Free and Thanos at Free.
Which is cheaper, Optuna or Thanos?
Optuna starts at Free and Thanos at Free.
Does Optuna or Thanos run on more platforms?
Optuna runs on Web. Thanos runs on Self-hosted, Linux.
Can I use Optuna for free?
Both have a free tier, so you can try either at no cost before committing.
What is Optuna best used for?
Optuna is most often used for tuning deep learning models, tuning gradient-boosted trees, pruning slow experiments early, parallel searches across machines. Of those, tuning deep learning models and tuning gradient-boosted trees are not what Thanos is typically brought in for.
What can Optuna do that Thanos cannot?
Optuna covers Define-by-run search spaces, Pruning of unpromising trials, Parallel and distributed search, Framework-agnostic integrations. Thanos covers Global query, Object storage retention, Deduplication, Downsampling.

Answered from the vendors’ own pages

Optuna: What licence does Optuna use?

The MIT License.

Source
Thanos: Is Thanos free?

Yes, open source and CNCF-incubating. Costs are the object storage it uses.

Optuna: Who develops Optuna?

Preferred Networks, which first introduced it in 2018.

Source
Thanos: Does Thanos replace Prometheus?

No. It runs alongside existing Prometheus servers, adding global query, deduplication and long-term storage.

Optuna: What Python version is needed?

Python 3.10 or newer.

Source
Thanos: Thanos or VictoriaMetrics?

Thanos layers onto Prometheus using object storage and is the more established multi-cluster answer. VictoriaMetrics is a separate store aiming at lower resource use and fewer moving parts.

Share

Related pages

Other head to heads