SlideShare a Scribd company logo
Thoth - Real-time Solr Monitor and Search Analysis Engine: Presented by Damiano Braga & Praneet Mhatre, Trulia
Thoth 
Real-time Solr Monitor 
Search Analysis Engine 
Damiano Braga 
Sr. Software Engineer 
dbraga@trulia.com 
Praneet Mhatre 
Data Mining Engineer 
pmhatre@trulia.com
Overview 
- What is Thoth ? 
- Data Collection and Thoth Core Indexing 
- Thoth API & Thoth Dashboard 
- Thoth Monitor 
- Thoth ML : Prediction and Topic Modeling 
- Special Thanks & Q/A 
Demo
What is Thoth? 
- Innovation project at Trulia 
- Understand our search infrastructure without touching logs 
- Troubleshoot search performance issues 
- Designed as a modular system 
- Set of tools that can help gather info, monitor, understand a search infrastructure 
- Open source project : 
thoth 
thoth-ml 
thoth-api 
thoth-dashboard 
thoth-monitor 
thoth-demo
Problem: Know Your Search Infrastructure 
- Solr logs are a good source. Sometimes partial information 
- Decentralized data (at least 1 log per search server) 
- Log rotation 
- Not searchable 
If we could index all the information .. Let’s use Solr ! 
- We can search on it 
- We have some handy features for free: facets, stats etc 
- It’s scalable
Thoth Document 
1 Solr Request = 1 Thoth (Solr) Document 
Server Info 
hostname, port number, core name, pool name 
Query Info 
timestamp, actual query, qtime, hits, exception?
Data Collection (1/2) 
- Should be smooth. No traffic slowing down. 
- We care about near real-time data 
- We care about historical data 
- Dataset is growing fast 
- Interceptor on each search server 
- We use a SolrComponent attached to a Request Handler 
- Queue System (E.g: ActiveMQ) to facilitate and temporary store messages 
- Each search server has a manifest in the solrconfig.xml
Data Collection (2/2) 
<requestHandler name="select" class="com.solr2activemq.SolrToActiveMQHandler”> 
<arr name="last-components”> 
<str>solr2activemq</str> 
</arr> 
</requestHandler> 
<searchComponent name="solr2activemq” class="com.solr2activemq.SolrToActiveMQComponent" > 
<str name="activemq-broker-uri">localhost</str> 
<int name="activemq-broker-port">61616</int> 
<str name="activemq-broker-destination-type">queue</str> 
<str name="activemq-broker-destination-name">test-queue</str> 
<str name="solr-hostname">localhost</str> 
<int name="solr-port">8983</int> 
<str name="solr-poolname">default</str> 
<str name="solr-corename">collection</str> 
<int name="solr2activemq-buffer-size">1000</int> 
<int name="solr2activemq-dequeuing-buffer-polling">500</int> 
<int name="solr2activemq-check-activemq-polling">5000</int> 
</searchComponent>
Sizing of Data 
- Need for granular information for near real-time data 
- Less granularity for historical data 
Too much data = slow search, space problem 
- Shrinking feature: 
-­‐ Create 
Shrank 
Document 
-­‐ Real-­‐3me 
Core 
cleanup 
- Shrinking time is configurable
Thoth Index 
- Solr 4.7 
- Soft commit for near real-time search 
- Soft commit maxTime set to 1s 
- Auto commit set to 15s 
- Update chain set to enforce UUID as PkID 
- Use of Solrj to index data and query
Thoth API 
- Abstraction for Thoth index and Thoth data 
- Read only REST-like API 
- JSON response 
- Written in Node.js to accommodate socket.io 
Example: 
thoth:3001/api/server/foo/core/bar/port/portbar/start/NOW-­‐1DAY/end/NOW/count/nqueries 
{"numFound":95,"values":[{"timestamp":"2014-09-16T18:00:02Z","value":45337}, 
{"timestamp":"2014-09-16T18:15:02Z","value":77325}, 
{"timestamp":"2014-09-16T18:30:02Z","value":109523}, 
{"timestamp":"2014-09-16T18:45:02Z","value":112279}, 
{"timestamp":"2014-09-16T19:00:02Z","value":115334}
Thoth Dashboard (1/5) 
- Visual insight on Thoth data 
- Useful graphs divided by server or pool 
- Handy list of slow queries and exceptions 
- Real-time view for server 
- Selecting data based on time 
- Sharable URLs (to OPS team, QA team, Release Eng. )
Thoth Dashboard (2/5)
Thoth Dashboard (3/5)
Thoth Dashboard (4/5)
Thoth Dashboard (5/5)
Thoth Monitor 
- Continuously monitoring for metrics 
- Stateless 
- Alerting through email or Nagios 
- Examples: QTime, Number of Zero hits, 
Predictor Model Health 
- Possibility to implement custom monitors 
- Reuse StatsComponent 
[http://wiki.apache.org/solr/StatsComponent] 
if possible
Thoth ML 
What can we do with all this data? 
• Rich source of information 
• Can we turn it into knowledge? 
• How about machine learning? 
1. 
Query 
3me 
predic3on 
2. 
Query 
paJern 
recogni3on 
3. 
Server 
sizing 
and 
resource 
alloca3on
1. Query Time Prediction (1/4) 
• Goal : appropriately route queries to slow/ fast pool 
• Look at query attributes 
• Query 
text 
• Start 
parameter 
• Facets, 
range 
queries, 
geo 
spa3al 
searches 
etc 
• Train a supervised learning model 
• Use learned model to predict if a query will be slow v/s fast 
• H2O Machine Learning Library
1. Query Time Prediction (2/4) 
Challenges 
• Imbalanced dataset 
• Frequency of model training 
• Type of model 
• Minimal delay requirement
1. Query Time Prediction (3/4) 
Challenges Addressed 
• Imbalanced dataset 
• Stra3fied 
sampling 
• Frequency of model training 
• Auto 
iden3fy 
relearning 
frequency 
• Type of model 
• Boolean, 
categorical 
features 
-­‐> 
Tree 
based 
• High 
accuracy 
• Gradient 
Boosted 
Machine 
• Minimal delay requirement 
• User 
pool 
queries: 
45-­‐50 
ms 
• Predic3on: 
1-­‐3 
ms
1. Query Time Prediction (4/4) 
• 1000 Gradient Boosted Trees 
• Slow queries = (>100ms. Configurable) 
• Experimental Results 
• Training 
on 
~3.1 
million 
• Test 
on 
~1.4 
million 
• AUC: 
0.94542 
• Accuracy: 
0.9202223
Query Time Prediction in Action (1/2) 
Performance on real time traffic at Trulia
Query Time Prediction in Action (2/2) 
Performance on real time traffic at Trulia
2. Query Pattern Recognition 
• Exceptions, zero hit queries 
• Analyze and find out why 
• Probabilistic Topic Modeling 
• Using MALLET open source toolkit
Topic Modeling Flow
Topics With Keywords
Future Direction 
- Thoth ML improvements: 
• Predic3ng 
query 
3me 
buckets 
• Regression 
v/s 
classifica3on 
• Excep3ons 
and 
zero 
hit 
query 
analysis 
• Sizing 
and 
resource 
alloca3on 
- Solr Cloud integration 
- Dashboard integration with Solr cloud 
- More standard metrics on Thoth Monitor 
- More data collection (load, GC)
Contributors and Special Thanks 
Damiano : dbraga@trulia.com 
Praneet: pmhatre@trulia.com 
Fork us on Github! 
github.com/trulia/thoth 
JD Cantrell ( API, Dashboard) 
Giulio Grillanda (API, Dashboard) 
Rajendra Shioramwar (Core) 
Ying Wang (Design) 
Girish Gudla (Monitor) 
Alexander Kanarsky 
Alex Burmester

More Related Content

PDF
Search at Twitter: Presented by Michael Busch, Twitter
PDF
Efficient Scalable Search in a Multi-Tenant Environment: Presented by Harry H...
PDF
Solr4 nosql search_server_2013
PDF
Solr Distributed Indexing in WalmartLabs: Presented by Shengua Wan, WalmartLabs
PDF
Data Engineering with Solr and Spark
PDF
Parallel SQL and Streaming Expressions in Apache Solr 6
PDF
Your Big Data Stack is Too Big!: Presented by Timothy Potter, Lucidworks
PPTX
Benchmarking Solr Performance at Scale
Search at Twitter: Presented by Michael Busch, Twitter
Efficient Scalable Search in a Multi-Tenant Environment: Presented by Harry H...
Solr4 nosql search_server_2013
Solr Distributed Indexing in WalmartLabs: Presented by Shengua Wan, WalmartLabs
Data Engineering with Solr and Spark
Parallel SQL and Streaming Expressions in Apache Solr 6
Your Big Data Stack is Too Big!: Presented by Timothy Potter, Lucidworks
Benchmarking Solr Performance at Scale

What's hot (20)

PDF
H-Hypermap - Heatmap Analytics at Scale: Presented by David Smiley, D W Smile...
PDF
Lessons From Sharding Solr At Etsy: Presented by Gregg Donovan, Etsy
PDF
Parallel Computing with SolrCloud: Presented by Joel Bernstein, Alfresco
PDF
Introduction to Apache Flink - Fast and reliable big data processing
PDF
Integrating Spark and Solr-(Timothy Potter, Lucidworks)
PDF
Data Science with Solr and Spark
PDF
"Spark Search" - In-memory, Distributed Search with Lucene, Spark, and Tachyo...
PDF
Search Analytics Component: Presented by Steven Bower, Bloomberg L.P.
PDF
Twitter Search Architecture
PDF
Understanding Lucene Search Performance
PPTX
Expand data analysis tool at scale with Zeppelin
PPTX
Real Time search using Spark and Elasticsearch
PDF
Why Is My Solr Slow?: Presented by Mike Drob, Cloudera
PDF
Search at Twitter
PDF
Learning to Rank in Solr: Presented by Michael Nilsson & Diego Ceccarelli, Bl...
PPTX
Feature Hashing for Scalable Machine Learning: Spark Summit East talk by Nick...
PDF
Searching for Better Code: Presented by Grant Ingersoll, Lucidworks
PDF
Taking Spark Streaming to the Next Level with Datasets and DataFrames
PPTX
Dictionary Based Annotation at Scale with Spark by Sujit Pal
PDF
Never Stop Exploring - Pushing the Limits of Solr: Presented by Anirudha Jadh...
H-Hypermap - Heatmap Analytics at Scale: Presented by David Smiley, D W Smile...
Lessons From Sharding Solr At Etsy: Presented by Gregg Donovan, Etsy
Parallel Computing with SolrCloud: Presented by Joel Bernstein, Alfresco
Introduction to Apache Flink - Fast and reliable big data processing
Integrating Spark and Solr-(Timothy Potter, Lucidworks)
Data Science with Solr and Spark
"Spark Search" - In-memory, Distributed Search with Lucene, Spark, and Tachyo...
Search Analytics Component: Presented by Steven Bower, Bloomberg L.P.
Twitter Search Architecture
Understanding Lucene Search Performance
Expand data analysis tool at scale with Zeppelin
Real Time search using Spark and Elasticsearch
Why Is My Solr Slow?: Presented by Mike Drob, Cloudera
Search at Twitter
Learning to Rank in Solr: Presented by Michael Nilsson & Diego Ceccarelli, Bl...
Feature Hashing for Scalable Machine Learning: Spark Summit East talk by Nick...
Searching for Better Code: Presented by Grant Ingersoll, Lucidworks
Taking Spark Streaming to the Next Level with Datasets and DataFrames
Dictionary Based Annotation at Scale with Spark by Sujit Pal
Never Stop Exploring - Pushing the Limits of Solr: Presented by Anirudha Jadh...
Ad

Viewers also liked (11)

PDF
Solr At Scale For Time-Oriented Data: Presented by Brett Hoerner, Rocana
PPTX
Start Your Search Engines: Optimizing Solr to Improve Results
PDF
Large Scale Log Analytics with Solr: Presented by Rafał Kuć & Radu Gheorghe, ...
PDF
Visualize Solr Data with Banana: Presented by Andrew Thanalertvisuti, Lucidworks
PDF
Solr for Indexing and Searching Logs
PPTX
Formación apache Solr
PDF
Apache Solr crash course
PDF
Indexing Text and HTML Files with Solr
PPTX
The Hadoop Ecosystem
PDF
Hadoop Family and Ecosystem
PPTX
Big Data Analytics with Hadoop
Solr At Scale For Time-Oriented Data: Presented by Brett Hoerner, Rocana
Start Your Search Engines: Optimizing Solr to Improve Results
Large Scale Log Analytics with Solr: Presented by Rafał Kuć & Radu Gheorghe, ...
Visualize Solr Data with Banana: Presented by Andrew Thanalertvisuti, Lucidworks
Solr for Indexing and Searching Logs
Formación apache Solr
Apache Solr crash course
Indexing Text and HTML Files with Solr
The Hadoop Ecosystem
Hadoop Family and Ecosystem
Big Data Analytics with Hadoop
Ad

Similar to Thoth - Real-time Solr Monitor and Search Analysis Engine: Presented by Damiano Braga & Praneet Mhatre, Trulia (20)

PPTX
Thoth - Realtime Solr Monitor and Search Analysis Engine
PDF
Sumo Logic QuickStart Webinar - Jan 2016
PDF
Internals of Presto Service
PDF
Sumo Logic QuickStart Webinar
PPTX
Welcome Webinar Slides
PPTX
Sumo Logic QuickStart Webinar - Dec 2016
PPTX
Sumo Logic Quickstart - Jan 2017
PPTX
Sumo Logic Quickstart - Nv 2016
PPTX
Sumo Logic QuickStat - Apr 2017
PPTX
Sumo Logic QuickStart Webinar Oct 2016
PDF
(ATS6-PLAT02) Accelrys Catalog and Protocol Validation
PDF
Overview of data analytics service: Treasure Data Service
PDF
Apache con 2020 use cases and optimizations of iotdb
PDF
Sumo Logic Quickstart Training 10/14/2015
PPTX
Setting Up Sumo Logic - Apr 2017
PPTX
Real-Time Inverted Search NYC ASLUG Oct 2014
PDF
Presto meetup 2015-03-19 @Facebook
PPTX
Sumo Logic QuickStart Webinar July 2016
PPTX
Visual Studio 2013 Profiling
PPTX
MongoDB for Time Series Data
Thoth - Realtime Solr Monitor and Search Analysis Engine
Sumo Logic QuickStart Webinar - Jan 2016
Internals of Presto Service
Sumo Logic QuickStart Webinar
Welcome Webinar Slides
Sumo Logic QuickStart Webinar - Dec 2016
Sumo Logic Quickstart - Jan 2017
Sumo Logic Quickstart - Nv 2016
Sumo Logic QuickStat - Apr 2017
Sumo Logic QuickStart Webinar Oct 2016
(ATS6-PLAT02) Accelrys Catalog and Protocol Validation
Overview of data analytics service: Treasure Data Service
Apache con 2020 use cases and optimizations of iotdb
Sumo Logic Quickstart Training 10/14/2015
Setting Up Sumo Logic - Apr 2017
Real-Time Inverted Search NYC ASLUG Oct 2014
Presto meetup 2015-03-19 @Facebook
Sumo Logic QuickStart Webinar July 2016
Visual Studio 2013 Profiling
MongoDB for Time Series Data

More from Lucidworks (20)

PDF
Search is the Tip of the Spear for Your B2B eCommerce Strategy
PDF
Drive Agent Effectiveness in Salesforce
PPTX
How Crate & Barrel Connects Shoppers with Relevant Products
PPTX
Lucidworks & IMRG Webinar – Best-In-Class Retail Product Discovery
PPTX
Connected Experiences Are Personalized Experiences
PDF
Intelligent Insight Driven Policing with MC+A, Toronto Police Service and Luc...
PPTX
[Webinar] Intelligent Policing. Leveraging Data to more effectively Serve Com...
PPTX
Preparing for Peak in Ecommerce | eTail Asia 2020
PPTX
Accelerate The Path To Purchase With Product Discovery at Retail Innovation C...
PPTX
AI-Powered Linguistics and Search with Fusion and Rosette
PDF
The Service Industry After COVID-19: The Soul of Service in a Virtual Moment
PPTX
Webinar: Smart answers for employee and customer support after covid 19 - Europe
PDF
Smart Answers for Employee and Customer Support After COVID-19
PPTX
Applying AI & Search in Europe - featuring 451 Research
PPTX
Webinar: Accelerate Data Science with Fusion 5.1
PDF
Webinar: 5 Must-Have Items You Need for Your 2020 Ecommerce Strategy
PPTX
Where Search Meets Science and Style Meets Savings: Nordstrom Rack's Journey ...
PPTX
Apply Knowledge Graphs and Search for Real-World Decision Intelligence
PPTX
Webinar: Building a Business Case for Enterprise Search
PPTX
Why Insight Engines Matter in 2020 and Beyond
Search is the Tip of the Spear for Your B2B eCommerce Strategy
Drive Agent Effectiveness in Salesforce
How Crate & Barrel Connects Shoppers with Relevant Products
Lucidworks & IMRG Webinar – Best-In-Class Retail Product Discovery
Connected Experiences Are Personalized Experiences
Intelligent Insight Driven Policing with MC+A, Toronto Police Service and Luc...
[Webinar] Intelligent Policing. Leveraging Data to more effectively Serve Com...
Preparing for Peak in Ecommerce | eTail Asia 2020
Accelerate The Path To Purchase With Product Discovery at Retail Innovation C...
AI-Powered Linguistics and Search with Fusion and Rosette
The Service Industry After COVID-19: The Soul of Service in a Virtual Moment
Webinar: Smart answers for employee and customer support after covid 19 - Europe
Smart Answers for Employee and Customer Support After COVID-19
Applying AI & Search in Europe - featuring 451 Research
Webinar: Accelerate Data Science with Fusion 5.1
Webinar: 5 Must-Have Items You Need for Your 2020 Ecommerce Strategy
Where Search Meets Science and Style Meets Savings: Nordstrom Rack's Journey ...
Apply Knowledge Graphs and Search for Real-World Decision Intelligence
Webinar: Building a Business Case for Enterprise Search
Why Insight Engines Matter in 2020 and Beyond

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
assetexplorer- product-overview - presentation
PPTX
Patient Appointment Booking in Odoo with online payment
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
L1 - Introduction to python Backend.pptx
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PDF
Download FL Studio Crack Latest version 2025 ?
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Nekopoi APK 2025 free lastest update
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PPTX
Operating system designcfffgfgggggggvggggggggg
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
assetexplorer- product-overview - presentation
Patient Appointment Booking in Odoo with online payment
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Monitoring Stack: Grafana, Loki & Promtail
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
wealthsignaloriginal-com-DS-text-... (1).pdf
Reimagine Home Health with the Power of Agentic AI​
Advanced SystemCare Ultimate Crack + Portable (2025)
Why Generative AI is the Future of Content, Code & Creativity?
L1 - Introduction to python Backend.pptx
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
Download FL Studio Crack Latest version 2025 ?
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Nekopoi APK 2025 free lastest update
Design an Analysis of Algorithms I-SECS-1021-03
CHAPTER 2 - PM Management and IT Context
Oracle Fusion HCM Cloud Demo for Beginners
Operating system designcfffgfgggggggvggggggggg

Thoth - Real-time Solr Monitor and Search Analysis Engine: Presented by Damiano Braga & Praneet Mhatre, Trulia

  • 2. Thoth Real-time Solr Monitor Search Analysis Engine Damiano Braga Sr. Software Engineer dbraga@trulia.com Praneet Mhatre Data Mining Engineer pmhatre@trulia.com
  • 3. Overview - What is Thoth ? - Data Collection and Thoth Core Indexing - Thoth API & Thoth Dashboard - Thoth Monitor - Thoth ML : Prediction and Topic Modeling - Special Thanks & Q/A Demo
  • 4. What is Thoth? - Innovation project at Trulia - Understand our search infrastructure without touching logs - Troubleshoot search performance issues - Designed as a modular system - Set of tools that can help gather info, monitor, understand a search infrastructure - Open source project : thoth thoth-ml thoth-api thoth-dashboard thoth-monitor thoth-demo
  • 5. Problem: Know Your Search Infrastructure - Solr logs are a good source. Sometimes partial information - Decentralized data (at least 1 log per search server) - Log rotation - Not searchable If we could index all the information .. Let’s use Solr ! - We can search on it - We have some handy features for free: facets, stats etc - It’s scalable
  • 6. Thoth Document 1 Solr Request = 1 Thoth (Solr) Document Server Info hostname, port number, core name, pool name Query Info timestamp, actual query, qtime, hits, exception?
  • 7. Data Collection (1/2) - Should be smooth. No traffic slowing down. - We care about near real-time data - We care about historical data - Dataset is growing fast - Interceptor on each search server - We use a SolrComponent attached to a Request Handler - Queue System (E.g: ActiveMQ) to facilitate and temporary store messages - Each search server has a manifest in the solrconfig.xml
  • 8. Data Collection (2/2) <requestHandler name="select" class="com.solr2activemq.SolrToActiveMQHandler”> <arr name="last-components”> <str>solr2activemq</str> </arr> </requestHandler> <searchComponent name="solr2activemq” class="com.solr2activemq.SolrToActiveMQComponent" > <str name="activemq-broker-uri">localhost</str> <int name="activemq-broker-port">61616</int> <str name="activemq-broker-destination-type">queue</str> <str name="activemq-broker-destination-name">test-queue</str> <str name="solr-hostname">localhost</str> <int name="solr-port">8983</int> <str name="solr-poolname">default</str> <str name="solr-corename">collection</str> <int name="solr2activemq-buffer-size">1000</int> <int name="solr2activemq-dequeuing-buffer-polling">500</int> <int name="solr2activemq-check-activemq-polling">5000</int> </searchComponent>
  • 9. Sizing of Data - Need for granular information for near real-time data - Less granularity for historical data Too much data = slow search, space problem - Shrinking feature: -­‐ Create Shrank Document -­‐ Real-­‐3me Core cleanup - Shrinking time is configurable
  • 10. Thoth Index - Solr 4.7 - Soft commit for near real-time search - Soft commit maxTime set to 1s - Auto commit set to 15s - Update chain set to enforce UUID as PkID - Use of Solrj to index data and query
  • 11. Thoth API - Abstraction for Thoth index and Thoth data - Read only REST-like API - JSON response - Written in Node.js to accommodate socket.io Example: thoth:3001/api/server/foo/core/bar/port/portbar/start/NOW-­‐1DAY/end/NOW/count/nqueries {"numFound":95,"values":[{"timestamp":"2014-09-16T18:00:02Z","value":45337}, {"timestamp":"2014-09-16T18:15:02Z","value":77325}, {"timestamp":"2014-09-16T18:30:02Z","value":109523}, {"timestamp":"2014-09-16T18:45:02Z","value":112279}, {"timestamp":"2014-09-16T19:00:02Z","value":115334}
  • 12. Thoth Dashboard (1/5) - Visual insight on Thoth data - Useful graphs divided by server or pool - Handy list of slow queries and exceptions - Real-time view for server - Selecting data based on time - Sharable URLs (to OPS team, QA team, Release Eng. )
  • 17. Thoth Monitor - Continuously monitoring for metrics - Stateless - Alerting through email or Nagios - Examples: QTime, Number of Zero hits, Predictor Model Health - Possibility to implement custom monitors - Reuse StatsComponent [http://wiki.apache.org/solr/StatsComponent] if possible
  • 18. Thoth ML What can we do with all this data? • Rich source of information • Can we turn it into knowledge? • How about machine learning? 1. Query 3me predic3on 2. Query paJern recogni3on 3. Server sizing and resource alloca3on
  • 19. 1. Query Time Prediction (1/4) • Goal : appropriately route queries to slow/ fast pool • Look at query attributes • Query text • Start parameter • Facets, range queries, geo spa3al searches etc • Train a supervised learning model • Use learned model to predict if a query will be slow v/s fast • H2O Machine Learning Library
  • 20. 1. Query Time Prediction (2/4) Challenges • Imbalanced dataset • Frequency of model training • Type of model • Minimal delay requirement
  • 21. 1. Query Time Prediction (3/4) Challenges Addressed • Imbalanced dataset • Stra3fied sampling • Frequency of model training • Auto iden3fy relearning frequency • Type of model • Boolean, categorical features -­‐> Tree based • High accuracy • Gradient Boosted Machine • Minimal delay requirement • User pool queries: 45-­‐50 ms • Predic3on: 1-­‐3 ms
  • 22. 1. Query Time Prediction (4/4) • 1000 Gradient Boosted Trees • Slow queries = (>100ms. Configurable) • Experimental Results • Training on ~3.1 million • Test on ~1.4 million • AUC: 0.94542 • Accuracy: 0.9202223
  • 23. Query Time Prediction in Action (1/2) Performance on real time traffic at Trulia
  • 24. Query Time Prediction in Action (2/2) Performance on real time traffic at Trulia
  • 25. 2. Query Pattern Recognition • Exceptions, zero hit queries • Analyze and find out why • Probabilistic Topic Modeling • Using MALLET open source toolkit
  • 28. Future Direction - Thoth ML improvements: • Predic3ng query 3me buckets • Regression v/s classifica3on • Excep3ons and zero hit query analysis • Sizing and resource alloca3on - Solr Cloud integration - Dashboard integration with Solr cloud - More standard metrics on Thoth Monitor - More data collection (load, GC)
  • 29. Contributors and Special Thanks Damiano : dbraga@trulia.com Praneet: pmhatre@trulia.com Fork us on Github! github.com/trulia/thoth JD Cantrell ( API, Dashboard) Giulio Grillanda (API, Dashboard) Rajendra Shioramwar (Core) Ying Wang (Design) Girish Gudla (Monitor) Alexander Kanarsky Alex Burmester