selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Druid logo

Self-host Druid

druid-38.0.0

Real-time OLAP database for sub-second analytics at scale

ReleaseOpen SourceApache-2.0
Updatedlast month
LanguageJava
Setup difficultyAdvanced
Stars
14 097
RAM
6 GiB (Docker quickstart cluster: at least 6 GiB available for Docker)
Ports
8888 (Router process serving the web console), 8081 (Coordinator service), 8082 (Broker service (queries)), 8083 (Historical service (querying segments)), 8091 (MiddleManager service (ingestion tasks))
Requires
Apache ZooKeeper
Docker
apache/druid
Install with Docker Compose
Druid web console served by the router once the Docker cluster has startedIngestion data loader wizard configuring a Kafka streaming inputCluster management view of datasources, segments, tasks and servicesBuilt-in query workbench running SQL and native queries

What is Druid?

Druid alternatives

All self-hosted alternatives to Amazon Redshift → All self-hosted alternatives to Google BigQuery → All self-hosted alternatives to Snowflake →

Should you self-host Druid?

Druid scores 75/100 on selfhost.directory (how scoring works) and ranks #1 of 2 in Data Warehousing. It has 14 097 GitHub stars, +35 in the last 30 days.

It shipped 5 stable releases in the past year. The latest, druid-38.0.0, came out on 24 September 2026. New versions land roughly every 2 months.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Java.

Its closest alternative on selfhost.directory is openobserve (79/100, 23 066 stars). It scores higher overall, so compare the two before you pick. See Druid vs openobserve side by side.

Features

  • Batch Ingestion
  • Built-in web console
  • Cluster management views
  • Columnar compressed storage
  • High availability and self-healing
  • Horizontal Scaling
  • Joins
  • REST API
  • Role-based authorization
  • Schema auto-discovery
  • SQL Support
  • Streaming Ingestion
  • Tiering and quality of service
  • TLS EncryptionDisabled by default; must be configured for production.

Druid README

Docker Helm

Workflow Status
⚙️ CodeQL Config codeql-config
🔍 CodeQL codeql
🕒 Cron Job ITS cron-job-its
🏷️ Labeler labeler
🧪 Unit and Integration Tests Unified unit-and-integration-tests-unified

How to install Druid

Install Druid with Docker Compose

Environment variables
DRUID_XMX, DRUID_XMS, DRUID_MAXDIRECTMEMORYSIZE, DRUID_SINGLE_NODE_CONF, DRUID_LOG4J, DRUID_LOG_LEVEL, JAVA_OPTS

Create a directory to hold the Druid Docker files. Download the example docker-compose.yml and the example environment file into it, then:

cd into the directory that contains the configuration files.

Run docker compose up to launch the cluster with a shell attached, or docker compose up -d to run the cluster in the background. Once started, navigate to the web console at http://localhost:8888.

Example stack launches eight containers: Zookeeper, PostgreSQL and six Druid containers.

How to configure Druid

  • druid.enableTlsPortTurn on TLS globally in common.runtime.properties.

    values: true/false

  • DRUID_XMX1 GBSet Java Xmx, the maximum heap size.
  • DRUID_XMS1 GBSet Java Xms, the initial heap size.
  • DRUID_MAXDIRECTMEMORYSIZE6 GiBSet Java max direct memory size.
  • DRUID_MAXNEWSIZESet Java max new size.

Druid releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Is Druid in-memory?

No longer strictly: Druid memory-maps data between disk and memory, so a node can load up to its disk size and clusters can be configured anywhere from all-in-memory to heavily over-committed, tiered by query requirements.

Where does Druid fit in my big data stack?

Druid typically sits behind a raw-data source such as a message bus like Apache Kafka or a filesystem like HDFS, ingests an indexed columnar copy, and serves analytics workloads to applications and users.

How is Druid deployed?

On commodity hardware in any *NIX environment; the cluster is made up of several services (ingestion, querying, coordination, etc.) that can be co-located on the same machines, and it runs well in AWS, GCP, Azure and other clouds.

Does Druid separate storage and compute?

Druid queries its own indexed copy of the raw data, called a segment, instead of pulling raw data from an external storage system at query time.

Is Druid a timeseries database? When should I use Druid over InfluxDB/OpenTSDB/Prometheus?

It shares traits with TSDBs and partitions data by time, but it combines analytics-database and search designs and can outperform TSDBs on non-time grouping, searching and complex metrics like histograms and quantiles.

Is Druid a log aggregation/log search system? When should I use Druid over Elastic/Splunk?

Not really: Druid uses compressed-bitmap inverted indexes for fast filtering, but it is an analytics engine rather than a text-log full-text search system; it is often used for semi-structured data such as JSON.

Is Druid a data warehouse? When should I use Druid over Redshift/BigQuery/Snowflake?

No: Druid is a new kind of database aimed at real-time analytic workloads over event-driven data, borrowing column-oriented storage from warehouses but also designs from search and time-series systems, with much lower query and ingest latency.

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…