Apache Druid: a high performance real-time analytics database.
Go to file
Jason Koch 7a3bd89a85
Dimension dictionary reduce locking (#13710)
* perf: introduce benchmark for StringDimensionIndexer

jdk11 -- Benchmark                                                       Mode  Cnt      Score     Error  Units
StringDimensionIndexerProcessBenchmark.parallelReadWrite                 avgt   10  30471.552 ±  456.716  us/op
StringDimensionIndexerProcessBenchmark.parallelReadWrite:parallelReader  avgt   10  18069.863 ±  327.923  us/op
StringDimensionIndexerProcessBenchmark.parallelReadWrite:parallelWriter  avgt   10  67676.617 ± 2351.311  us/op
StringDimensionIndexerProcessBenchmark.soloReader                        avgt   10   1048.079 ±    1.120  us/op
StringDimensionIndexerProcessBenchmark.soloWriter                        avgt   10   4629.769 ±   29.353  us/op

* perf: switch DimensionDictionary to StampedLock

jdk11 - Benchmark                                                        Mode  Cnt      Score      Error  Units
StringDimensionIndexerProcessBenchmark.parallelReadWrite                 avgt   10  37958.372 ± 1685.206  us/op
StringDimensionIndexerProcessBenchmark.parallelReadWrite:parallelReader  avgt   10  31192.232 ± 2755.365  us/op
StringDimensionIndexerProcessBenchmark.parallelReadWrite:parallelWriter  avgt   10  58256.791 ± 1998.220  us/op
StringDimensionIndexerProcessBenchmark.soloReader                        avgt   10   1079.440 ±    1.753  us/op
StringDimensionIndexerProcessBenchmark.soloWriter                        avgt   10   4585.690 ±   13.225  us/op

* perf: use optimistic locking in DimensionDictionary

jdk11 - Benchmark                                                        Mode  Cnt      Score     Error  Units
StringDimensionIndexerProcessBenchmark.parallelReadWrite                 avgt   10   6212.366 ± 162.684  us/op
StringDimensionIndexerProcessBenchmark.parallelReadWrite:parallelReader  avgt   10   1807.235 ± 109.339  us/op
StringDimensionIndexerProcessBenchmark.parallelReadWrite:parallelWriter  avgt   10  19427.759 ± 611.692  us/op
StringDimensionIndexerProcessBenchmark.soloReader                        avgt   10    194.370 ±   1.050  us/op
StringDimensionIndexerProcessBenchmark.soloWriter                        avgt   10   2871.423 ±  14.426  us/op

* perf: refactor DimensionDictionary null handling to need less locks

jdk11 - Benchmark                                                        Mode  Cnt      Score      Error  Units
StringDimensionIndexerProcessBenchmark.parallelReadWrite                 avgt   10   6591.619 ±  470.497  us/op
StringDimensionIndexerProcessBenchmark.parallelReadWrite:parallelReader  avgt   10   1387.338 ±  144.587  us/op
StringDimensionIndexerProcessBenchmark.parallelReadWrite:parallelWriter  avgt   10  22204.462 ± 1620.806  us/op
StringDimensionIndexerProcessBenchmark.soloReader                        avgt   10    204.911 ±    0.459  us/op
StringDimensionIndexerProcessBenchmark.soloWriter                        avgt   10   2935.376 ±   12.639  us/op

* perf: refactor DimensionDictionary add handling to do a little less work

jdk11 - Benchmark                                                        Mode  Cnt      Score    Error  Units
StringDimensionIndexerProcessBenchmark.parallelReadWrite                 avgt   10   2914.859 ± 22.519  us/op
StringDimensionIndexerProcessBenchmark.parallelReadWrite:parallelReader  avgt   10    508.010 ± 14.675  us/op
StringDimensionIndexerProcessBenchmark.parallelReadWrite:parallelWriter  avgt   10  10135.408 ± 82.745  us/op
StringDimensionIndexerProcessBenchmark.soloReader                        avgt   10    205.415 ±  0.158  us/op
StringDimensionIndexerProcessBenchmark.soloWriter                        avgt   10   3098.743 ± 23.603  us/op
2023-02-01 02:59:12 -08:00
.github install node on runners (#13690) 2023-01-18 16:19:57 +05:30
.idea Revert Accidental Change to Druid.xml (#13190) 2022-10-06 14:42:35 -07:00
benchmarks Dimension dictionary reduce locking (#13710) 2023-02-01 02:59:12 -08:00
cloud Prepare master branch for next release, 26.0.0 (#13401) 2022-11-22 15:31:01 +05:30
codestyle Update forbidden apis with fixed executor (#13633) 2023-01-12 15:34:36 +05:30
core Adjust Operators to be Pausable (#13694) 2023-01-23 20:52:06 -08:00
dev Make http options the default configurations (#13092) 2022-10-05 05:35:17 +05:30
distribution Update docker-compose to use druid 24.0.1 (#13623) 2023-01-04 18:46:40 +05:30
docs Support postaggregation function as in Math.pow() (#13703) (#13704) 2023-01-31 22:55:04 +05:30
examples fix var name (#13657) 2023-01-11 21:15:30 +05:30
extendedset Prepare master branch for next release, 26.0.0 (#13401) 2022-11-22 15:31:01 +05:30
extensions-contrib Upgrade to netty 4.1.86.Final to address CVEs (#13604) 2022-12-23 01:44:01 +05:30
extensions-core Add maxInputBytesPerWorker as query context parameter (#13707) 2023-01-31 20:55:28 +05:30
helm/druid Add new probe delay configurations into Helm Chart doc (#12997) 2023-01-17 22:06:24 +05:30
hll Prepare master branch for next release, 26.0.0 (#13401) 2022-11-22 15:31:01 +05:30
hooks Git hooks should fail on errors; pass args to git hooks (#12322) 2022-03-10 09:07:50 +09:00
indexing-hadoop allow using nested column indexer for schema discovery (#13653) 2023-01-12 18:31:12 -08:00
indexing-service discover nested columns when using nested column indexer for schemaless ingestion (#13672) 2023-01-18 12:57:28 -08:00
integration-tests Fix Parquet Parser missing column when reading parquet file (#13612) 2023-01-11 20:08:48 -10:00
integration-tests-ex discover nested columns when using nested column indexer for schemaless ingestion (#13672) 2023-01-18 12:57:28 -08:00
licenses Web console: making the cell filter menu more functional, removing the old query view, and updating d3 (#13169) 2022-10-07 12:44:40 -07:00
processing Dimension dictionary reduce locking (#13710) 2023-02-01 02:59:12 -08:00
publications De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
server fix nested column handling of null and "null" (#13714) 2023-01-31 20:59:19 -08:00
services Add an option to enable HSTS in druid services (#13489) 2023-01-10 22:31:51 +05:30
sql Adjust Operators to be Pausable (#13694) 2023-01-23 20:52:06 -08:00
web-console Web console: Data loader should allow for multiline JSON messages in kafka (#13709) 2023-01-25 21:23:18 -08:00
website Tutorial: Query view (#13565) 2023-01-27 14:29:43 -08:00
.asf.yaml Add .asf.yaml. (#9083) 2019-12-20 16:45:38 -08:00
.backportrc.json Add 0.18.0 to .backportrc.json to facilitate backport. (#9661) 2020-04-11 13:49:04 -07:00
.codecov.yml Use Codecov (#8388) 2019-08-28 08:49:30 -07:00
.dockerignore Add docker container for druid (#6896) 2019-02-08 12:12:28 +00:00
.gitignore docs: add index page and related stuff for jupyter tutorials (#13342) 2022-12-16 13:33:50 -08:00
.lgtm.yml be consistent about referring to the web console by its name (#13118) 2022-09-19 15:02:17 -07:00
.travis.yml Allow using composed storage for SuperSorter intermediate data (#13368) 2023-01-24 01:02:03 +05:30
CONTRIBUTING.md Add missing MSQ error code fields to docs (#13308) 2022-11-10 21:03:04 +05:30
LABELS Add plain text README.txt, use relative link from README.md to build.md (#7611) 2019-05-09 21:29:26 -07:00
LICENSE support Aliyun OSS service as deep storage (#9898) 2020-07-01 22:20:53 -07:00
NOTICE Update year in the notice file and the release process instructions (#12622) 2022-08-23 18:17:18 +05:30
README.md be consistent about referring to the web console by its name (#13118) 2022-09-19 15:02:17 -07:00
README.template De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
check_test_suite.py Adds license and security vulnerabilities checks for Hadoop3 build (#13270) 2022-11-09 14:50:31 +05:30
check_test_suite_test.py ignore licenses changes in check test script (#12964) 2022-08-25 12:31:28 -07:00
it.sh Convert from DRUID_INTEGRATION_TEST_INDEXER to USE_INDEXER (#13684) 2023-01-18 08:51:42 -08:00
licenses.yaml update core Apache Kafka dependencies to 3.3.2 (#13717) 2023-01-27 21:00:01 -08:00
owasp-dependency-check-suppressions.xml Upgrade to netty 4.1.86.Final to address CVEs (#13604) 2022-12-23 01:44:01 +05:30
pom.xml update core Apache Kafka dependencies to 3.3.2 (#13717) 2023-01-27 21:00:01 -08:00
upload.sh Adding licenses and enable apache-rat-plugin. (#6215) 2018-09-18 08:39:26 -07:00

README.md

Build Status Language grade: Java Coverage Status Docker Helm


Website | Twitter | Download | Get Started | Documentation | Community | Build | Contribute | License


Apache Druid

Druid is a high performance real-time analytics database. Druid's main value add is to reduce time to insight and action.

Druid is designed for workflows where fast queries and ingest really matter. Druid excels at powering UIs, running operational (ad-hoc) queries, or handling high concurrency. Consider Druid as an open source alternative to data warehouses for a variety of use cases. The design documentation explains the key concepts.

Getting started

You can get started with Druid with our local or Docker quickstart.

Druid provides a rich set of APIs (via HTTP and JDBC) for loading, managing, and querying your data. You can also interact with Druid via the built-in web console (shown below).

Load data

data loader Kafka

Load streaming and batch data using a point-and-click wizard to guide you through ingestion setup. Monitor one off tasks and ingestion supervisors.

Manage the cluster

management

Manage your cluster with ease. Get a view of your datasources, segments, ingestion tasks, and services from one convenient location. All powered by SQL systems tables, allowing you to see the underlying query for each view.

Issue queries

query view combo

Use the built-in query workbench to prototype DruidSQL and native queries or connect one of the many tools that help you make the most out of Druid.

Documentation

See the latest documentation for the documentation for the current official release. If you need information on a previous release, you can browse previous releases documentation.

Make documentation and tutorials updates in /docs using MarkDown and contribute them using a pull request.

Community

Visit the official project community page to read about getting involved in contributing to Apache Druid, and how we help one another use and operate Druid.

  • Druid users can find help in the druid-user mailing list on Google Groups, and have more technical conversations in #troubleshooting on Slack.
  • Druid development discussions take place in the druid-dev mailing list (dev@druid.apache.org). Subscribe by emailing dev-subscribe@druid.apache.org. For live conversations, join the #dev channel on Slack.

Check out the official community page for details of how to join the community Slack channels.

Find articles written by community members and a calendar of upcoming events on the project site - contribute your own events and articles by submitting a PR in the apache/druid-website-src repository.

Building from source

Please note that JDK 8 or JDK 11 is required to build Druid.

See the latest build guide for instructions on building Apache Druid from source.

Contributing

Please follow the community guidelines for contributing.

For instructions on setting up IntelliJ dev/intellij-setup.md

License

Apache License, Version 2.0