Softwr

Cloud · head to head

Longhorn vs MySQL

Longhorn logo

Longhorn

Cloud

Open source distributed block storage for Kubernetes, incubating at the CNCF

From
Free
Free plan
Yes
MySQL logo

MySQL

Databases

Open source database

From
Free
Free plan
Yes

The short version

  • MySQL is an open-source relational database management system.
  • Longhorn is free; MySQL starts at $2000/yr.
  • Only Longhorn lists per-volume controllers; only MySQL lists ACID compliance.
  • Where MySQL falls short: hot online backup is not in the free Community Server; MySQL Enterprise Backup is a paid Enterprise Edition component.

How do Longhorn and MySQL differ?

Longhorn and MySQL differ on pricing model, platforms and category (Cloud against Databases). Only the attributes on which Longhorn and MySQL actually diverge.

Attributes where Longhorn and MySQL differ
AttributeLonghornMySQL
Pricing modelOpen source, no licence feeFreemium
PlatformsLinux, Self-hostedWindows, macOS, Linux
CategoryCloudDatabases

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

Not yet recorded: founded for Longhorn.

Which features does each one have?

They share no listed features; 6 appear only for Longhorn and 20 only for MySQL. 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 Longhorn

  • Per-volume controllers
  • Synchronous replication
  • Snapshots and backups
  • Volume expansion
  • Disaster recovery volumes
  • Web interface

Only in MySQL

  • ACID compliance
  • SQL support
  • Multi-version concurrency control
  • Replication
  • Partitioning
  • Stored procedures
  • Triggers
  • Views

What is each one used for?

MySQL is most often brought in for web application backend. The jobs each tool is most often brought in to do.

Longhorn

  • An on-premises Kubernetes cluster with local disks and no SAN that needs replicated persistent volumesnot MySQL
  • Edge sites where shipping a storage array is impractical and three nodes is the whole clusternot MySQL
  • A K3s deployment where the storage layer must be light enough to run alongside the workloadsnot MySQL
  • A team that wants snapshots and S3 backups of persistent volumes without paying per-node storage licencesnot MySQL

MySQL

  • Web application backendnot Longhorn
  • E-commerce platformsnot Longhorn
  • Content management systemsnot Longhorn
  • Data warehousingnot Longhorn
  • Business applicationsnot Longhorn

Where do Longhorn and MySQL fall short?

MySQL's most cited limit: hot online backup is not in the free Community Server; MySQL Enterprise Backup is a paid Enterprise Edition component. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Longhorn

  • There is no vendor and no SLA, so a production incident at three in the morning is your own problem unless you buy SUSE Rancher Prime support separately
  • Synchronous replication across nodes means write latency depends on the slowest replica and the network between nodes, which makes it a poor fit for latency-sensitive databases
  • Every replica is a full copy, so three-way replication consumes three times the raw capacity, unlike erasure-coded systems that are far more space efficient
  • It is designed for block storage on modest clusters and does not scale to the node counts or throughput that Ceph or a commercial array handles, so growth eventually forces a migration
  • Recovery from certain degraded states, such as a volume stuck detaching or replicas failing to rebuild, requires manual intervention and knowledge of Longhorn internals that is not widely held

MySQL

  • Hot online backup is not in the free Community Server; MySQL Enterprise Backup is a paid Enterprise Edition component
  • Transparent Data Encryption, data masking and de-identification are Enterprise Edition only
  • MySQL Enterprise Firewall, which guards against SQL injection, and MySQL Enterprise Audit are both paid components
  • External authentication against PAM or Windows Active Directory requires MySQL Enterprise Authentication
  • The thread pool ships as MySQL Enterprise Scalability rather than in the community build

How much do Longhorn and MySQL cost?

Longhorn is free to use; MySQL has a free plan, with paid plans from $2000/yr. Plan by plan below, from each vendor's own pricing page.

Longhorn

Free
  • LonghornFree
    • Apache 2.0 licensed, no licence fee
    • Community support via GitHub and Slack only
    • No vendor SLA or escalation path

MySQL

Free
  • Community EditionFree
    • Open source license
    • Full SQL support
    • InnoDB storage engine
  • Standard Edition$2,000/yr
    • Commercial license
    • Oracle Premier Support
    • MySQL Enterprise backup
  • Enterprise Edition$5,000/yr
    • Advanced security
    • MySQL Enterprise Monitor
    • High Availability

Which should you pick?

Choose Longhorn if

  • You need per-volume controllers.
  • You want to start without paying.
  • You work on Linux, Self-hosted.
  • You also want synchronous replication.

Choose MySQL if

  • You need acid compliance.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want sql support.

Questions people ask

Is Longhorn or MySQL better?
It depends on the job. Longhorn fits an on-premises Kubernetes cluster with local disks and no SAN that needs replicated persistent volumes; MySQL fits web application backend. Longhorn starts at Free and MySQL at Free.
Which is cheaper, Longhorn or MySQL?
Longhorn starts at Free and MySQL at Free.
Does Longhorn or MySQL run on more platforms?
Longhorn runs on Linux, Self-hosted. MySQL runs on Windows, macOS, Linux.
Can I use Longhorn for free?
Both have a free tier, so you can try either at no cost before committing.
What is Longhorn best used for?
Longhorn is most often used for an on-premises kubernetes cluster with local disks and no san that needs replicated persistent volumes, edge sites where shipping a storage array is impractical and three nodes is the whole cluster, a k3s deployment where the storage layer must be light enough to run alongside the workloads, a team that wants snapshots and s3 backups of persistent volumes without paying per-node storage licences. Of those, an on-premises kubernetes cluster with local disks and no san that needs replicated persistent volumes and edge sites where shipping a storage array is impractical and three nodes is the whole cluster are not what MySQL is typically brought in for.
What can Longhorn do that MySQL cannot?
Longhorn covers Per-volume controllers, Synchronous replication, Snapshots and backups, Volume expansion. MySQL covers ACID compliance, SQL support, Multi-version concurrency control, Replication.

Answered from the vendors’ own pages

Longhorn: Who do we call when it breaks?

Nobody, unless you buy SUSE Rancher Prime, which includes commercial support for Longhorn. This is the decisive question for production use.

MySQL: Does MySQL cost money?

MySQL is primarily open-source and free to use. Commercial editions and support services are available but pricing is not published on the main website.

Source
Longhorn: How much capacity does replication cost?

Full copies, so three replicas means three times the raw capacity. Budget accordingly rather than assuming erasure coding efficiency.

MySQL: How do I get MySQL pricing information?

For MySQL commercial editions and support pricing, customers can contact MySQL sales directly at +1-866-221-0634 or navigate to individual product pages.

Source
Longhorn: Is it suitable for production databases?

For modest workloads yes, but synchronous replication adds write latency and high-transaction databases usually want something faster.

Share

Related pages

Other head to heads