## Apache Druid on AKS ![](https://i.imgur.com/3omPtPP.jpg =250x) ![](https://i.imgur.com/bHUCZjC.jpg =180x) <!-- Put the link to this slide here so people can follow --> <!-- slide: https://hackmd.io/@y56/SkSUF0kD_ --> Speaker: Eugene Wang --- ### Background - Count unique users - high dimensionality (100k cubes) - time series data (250 days) - 300M records, 30G <!-- - Apache Druid (cost: 30k NTD/month) - 30 days in 250 days - 4.8, () - Azure Synapse (cost: 30k NTD/month) - 30 days in 250 days - 16s --> ![](https://i.imgur.com/U2GlBrr.jpg =220x) ![](https://i.imgur.com/NHwPeZN.jpg =720x) <!-- ![](https://i.imgur.com/sbpgU7f.png =200x) --> --- ### MOLAP/Druid features (**m**ulti-dimensional **o**n**l**ine **a**nalytical **p**rocessing) - pre-computed aggregation :smiley: - Distinct count not mergeable :cry: - much work if records change often :cry: - multidimensional indexing (eg, bitmap index) - Smaller on-disk size <!-- (our case, 150G json ==> 30G) --> <!-- - ?? data redundancy :smiley: :cry: --> ![](https://i.imgur.com/hNswUbg.png =700x) --- ### Apache DataSketches Most Frequent, Quantiles, ***Distinct Counting***! - random uniform hash function - Theta Sketches - KMV (K-th Minimum Value) - HyperLogLog Sketches - find first set/number of leading zeros - hardware operator ![](https://i.imgur.com/y2BiTPU.jpg =300x) ![](https://i.imgur.com/gQB2jeU.png =200x) ![](https://i.imgur.com/qHJGlA1.png =200x) --- ![](https://i.imgur.com/6WwWVyA.png) --- ![](https://i.imgur.com/HwlRrd9.png) --- Druid arch ![](https://i.imgur.com/I6mJQBj.png) <!-- ![](https://i.imgur.com/MyuP8Qh.png =100x) --> <!-- - datasource (stream/batch) - ingestion - chunk, segment, granularity --> --- (streaming cases) query data in process ![](https://i.imgur.com/umEJHw6.png) --- ![](https://i.imgur.com/mqU1Xdi.png) --- ## tuning - JVM heap size (Prometheus to monitor JVM) - off-memory size - PV size - premium SSD - number of historicals/middle manages Thank you! ---
{"metaMigratedAt":"2023-06-15T23:22:30.769Z","metaMigratedFrom":"YAML","title":"Apache Druid on AKS","breaks":true,"description":"View the slide with \"Slide Mode\".","contributors":"[{\"id\":\"ff3248ca-6193-489f-9f8f-549f1547b9a9\",\"add\":7226,\"del\":5005}]"}
    2348 views