Top Banner
www.nutshell.com Scaling Solr in the Cloud By @ ablyler & @ LindsaySnider FROM @ NutshellCRM
61

Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Sep 06, 2018

Download

Documents

hatram
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

www.nutshell.com

Scaling Solr in the CloudBy @ablyler & @LindsaySnider

F R O M

@NutshellCRM

Page 2: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Agenda

About the Speakers

About Nutshell

Nutshell and Solr

Solr Resource Usage

Scaling Methods

Questions and Answers

Page 3: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

About the Speakers

BitLeap / Barracuda NetworksDevelopers on the Backup Appliance / Cloud

Scaled databases and storage systems

Used SugarCRM & Salesforce.com

Page 4: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

About Nutshell

Web and Mobile CRM application

Heavy use of OpenSource technologies:Gentoo

Nginx / PHP / ZendFramework / jQuery

MySQL / Solr / Gearman

Jenkins / Redmine / Cacti / Nagios

Page 5: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Nutshell and Solr

Heavy use of Solr for searching, table views, and de-duplication

Used for searching / display:Accounts, Competitors, Contacts, Leads, Products, Sources, Teams, and Users

Used for de-duplication:Accounts, Contacts

Page 6: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Reads vs Writes

0

1750

3500

5250

7000

Jul 20, 2011 3:00 AM Jul 20, 2011 6:00 AM Jul 20, 2011 9:00 AM Jul 20, 2011 12:00 PM Jul 20, 2011 3:00 PM Jul 20, 2011 6:00 PM Jul 20, 2011 9:00 PM Jul 21, 2011 12:00 AM

Writes Reads Time

Average Read Query Time: 2.11ms

Page 8: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Computer Resources

CPU Disk I/O

RAM Disk Storage

Page 9: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

CPU Disk I/O

RAM Disk Storage

Page 10: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Resources

CPU Disk I/O

RAM Disk Storage

Light

Heavy

Page 11: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Resources

CPU Disk I/O

RAM Disk Storage

Light

Heavy CPU

Page 12: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Resources

CPU Disk I/O

RAM Disk Storage

Light

Heavy CPU Disk I/O

Page 13: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Resources

CPU Disk I/O

RAM Disk Storage

Light

Heavy CPU Disk I/O

Disk Storage

Page 14: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Resources

CPU Disk I/O

RAM Disk Storage

Light

Heavy CPU Disk I/O

Disk Storage

RAM

Page 15: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Auto Provisioning

Setup new Solr Jetty app

Create MySQL database

Populate MySQL / Solr with demo data

Send welcome email

Dark Ages Age of Enlightenment TodayModern Era

Page 16: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Separate Jetty per Customer

Uses a ton of memory

Separate schema / Solr for each customer

Ran into upper limit morning before launch

Dark Ages Age of Enlightenment TodayModern Era

Page 17: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Auto provisioning

Separate Jetty app for each customer

Dark Ages Age of Enlightenment TodayModern Era

Page 18: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Auto provisioning

Separate Jetty app for each customer

Dark Ages Age of Enlightenment TodayModern Era

0

25

50

Page 19: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Solr Core per Customer

Allows for management of Solr on a per customer basis: creating / stopping

Contained within a single Jetty app

Shared schema between all cores

Easily managed via simple HTTP API

Age of EnlightenmentDark Ages TodayModern Era

Page 20: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Fallback to MySQL

Landing page of application

Allows for graceful handling when Solr is down

Abstracted within the application library

Age of EnlightenmentDark Ages TodayModern Era

Page 21: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Sun JVM to IcedTea JVM

IcedTea JVM uses less memory than Sun JVM

Age of EnlightenmentDark Ages TodayModern Era

Page 22: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Separate Solr core per customer

Fallback to MySQL for table data

Migrated from Sun JVM to IcedTea JVM

Age of EnlightenmentDark Ages TodayModern Era

Page 23: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Separate Solr core per customer

Fallback to MySQL for table data

Migrated from Sun JVM to IcedTea JVM

0

150

300

Age of EnlightenmentDark Ages TodayModern Era

Page 24: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Shared Schema Across Cores

Decreases initialization time for each core

Decreases memory usage

Age of EnlightenmentDark Ages TodayModern Era

Page 25: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Solr Index Field Selection

More indexed fields = more used memory

Only index fields that are searched

Store other non-indexed fields for display

Age of EnlightenmentDark Ages TodayModern Era

Page 26: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Splitting of Reader / Writer

Index building is CPU / disk intensive

Writer = Solr with caching disabled

Reader = Solr slave, that doesn’t build indexes

Age of EnlightenmentDark Ages TodayModern Era

Page 27: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

MySQL(master-master)

Web

Solr Slave

Age of EnlightenmentDark Ages TodayModern Era

Page 28: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

MySQL(master-master)

Web

Solr Slave

Solr Master

Range indexerRange indexerRange indexerRange indexerDocument indexers

Gearman workers

Age of EnlightenmentDark Ages TodayModern Era

Page 29: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

MySQL(master-master)

Web

Solr Slave

Solr Master

Range indexerRange indexerRange indexerRange indexerDocument indexers

Gearman workers

Age of EnlightenmentDark Ages TodayModern Era

Page 30: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

MySQL(master-master)

Web

Solr Slave

Solr Master

Range indexerRange indexerRange indexerRange indexerDocument indexers

Gearman workers

Age of EnlightenmentDark Ages TodayModern Era

Page 31: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

MySQL(master-master)

Web

Solr Slave

Solr Master

Reindex ManagerRange indexerRange indexer

Range indexerRange indexerRange indexers

Age of EnlightenmentDark Ages TodayModern Era

Page 32: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

MySQL(master-master)

Web

Solr Slave

Solr Master

Reindex ManagerRange indexer

Range indexerRange indexerRange indexerRange indexers

Age of EnlightenmentDark Ages TodayModern Era

Page 33: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

MySQL(master-master)

Web

Solr Slave

Solr Master

Reindex ManagerRange indexer

Range indexerRange indexerRange indexerRange indexers

Age of EnlightenmentDark Ages TodayModern Era

Page 34: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Shared schema across cores

Solr index field selection

Splitting of reader / writer roles

Intelligent indexing / reindexing

Age of EnlightenmentDark Ages TodayModern Era

Page 35: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Shared schema across cores

Solr index field selection

Splitting of reader / writer roles

Intelligent indexing / reindexing

Age of EnlightenmentDark Ages TodayModern Era

0

500

1000

Page 36: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Intelligent Core Management

Least recently used Solr cores are spun down

Solr cores started on login

Reindexing is a database flag, and happens on the next login

Age of EnlightenmentDark Ages TodayModern Era

Page 37: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Partitioning

Pairs of readers and writers

Partitioned based on account idLeft pad the account id w/ zeros to length of two

Reverse the account id

Take last two digits of the account id

Age of EnlightenmentDark Ages TodayModern Era

Page 38: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Intelligent core spin down / up

Partitioning of customers to separate Solr servers

Age of EnlightenmentDark Ages TodayModern Era

Page 39: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

Intelligent core spin down / up

Partitioning of customers to separate Solr servers

Age of EnlightenmentDark Ages TodayModern Era

0

4000

8000

Page 40: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk
Page 41: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

Page 42: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

Page 43: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

Page 44: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

Page 45: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

123456

Page 46: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

123456

1 2 3 4 5 6

Page 47: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

123456

1 2 3 4 5 6

Page 48: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

1 2 3 4 5 6

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

123456

1 2 3 4 5 6

Page 49: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

1 2 3 4 5 6

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

123456

1 2 3 4 5 6

65

Page 50: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

1 2 3 4 5 6

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

123456

1 2 3 4 5 6

65

01

02

03

04

65

66

96

97

98

99

Page 51: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

1 2 3 4 5 6

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

123456

1 2 3 4 5 6

65

01

02

03

04

65

66

96

97

98

99

65

Page 52: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

1 2 3 4 5 6

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

123456

1 2 3 4 5 6

65

01

02

03

04

65

66

96

97

98

99

Page 53: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

01

02

03

04

65

66

96

97

98

99

Page 54: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

01

02

03

04

65

66

96

97

98

99

Page 55: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

01

02

03

04

65

66

96

97

98

99

SOLR Server

8000 User

Page 56: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

01

02

03

04

65

66

96

97

98

99

SOLR Server

8000 User

SOLR Server

8000 User

Page 57: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

01

02

03

04

65

66

96

97

98

99

SOLR Server

8000 User

SOLR Server

8000 User

Page 58: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

01

02

03

04

65

66

96

97

98

99

SOLR Server

8000 User

SOLR Server

8000 User

Page 59: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

01

02

03

04

65

66

96

97

98

99

SOLR Server

8000 User

SOLR Server

8000 User

Page 60: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

SOLR Server

8000 User

01

02

03

04

65

66

96

97

98

99

SOLR Server

8000 User

SOLR Server

8000 User

Page 61: Scaling Solr in the Cloud - assets.en.oreilly.comassets.en.oreilly.com/1/event/61/Scaling Solr Horizontally in the... · Computer Resources CPU Disk I/O RAM Disk Storage. CPU Disk

7000 Users

600 Users

300 Users

50 Usersauto provisioning

separate Jetty app for each customer

separate Solr core per customer

fall back to MySQL for table data

migrated from Sun JVM to IcedTea JVM

shared schema across cores

solr index field selection

splitting reader / writer roles

intelligent core spin down / up

parititioning of customer to separate Solr servers

Scaling Solr in the Cloud

By @ablyler & @LindsaySniderF R O M

@NutshellCRM