SlideShare une entreprise Scribd logo
1  sur  19
Installing Liferay 6.1 and SOLR 4 in cluster

                     Israel Olalla
                       @iolalla
Looking for inspiration




“Only a life lived for others is a life worthwhile.”

                       Albert Einstein




                                                              2
What we want to get?




•Index and search all the content from Liferay
•No single point of failure
•Simple to manage: simple to add new machines, stop one and add
one to the cluster
•As cheap as possible: No Expensive HW or software to control the
cluster.
•Manage index and configuration with the same system




                                                                    3
OLD Liferay Reference Architecture




                                4
New Liferay Reference Architecture




                                5
Configuring Zookeeper and SOLR

1.   Configure the zookeeper cluster: http://zookeeper.apache.org/




                                                                                                  6
Configuring Zookeeper and SOLR

1.   Configure the zookeeper cluster: http://zookeeper.apache.org/

2.   Adapt solrconfig.xml to the new replication scenario




                                                                                                  7
Configuring Zookeeper and SOLR

1.   Configure the zookeeper cluster: http://zookeeper.apache.org/

2.   Adapt solrconfig.xml to the new replication scenario

3.   Adapt schema.xml to support Liferay




                                                                                                  8
Configuring Zookeeper and SOLR

1.   Configure the zookeeper cluster: http://zookeeper.apache.org/

2.   Adapt solrconfig.xml to the new replication scenario

3.   Adapt schema.xml to support Liferay

4.   Configure Tomcat to connect to the zookeeper cluster

5.   Start the zookeeper cluster




                                                                                                  9
Configuring Zookeeper and SOLR

1.   Configure the zookeeper cluster: http://zookeeper.apache.org/

2.   Adapt solrconfig.xml to the new replication scenario

3.   Adapt schema.xml to support Liferay

4.   Configure Tomcat to connect to the zookeeper cluster




                                                                                                 10
Configuring Zookeeper and SOLR

1.   Configure the zookeeper cluster: http://zookeeper.apache.org/

2.   Adapt solrconfig.xml to the new replication scenario

3.   Adapt schema.xml to support Liferay

4.   Configure Tomcat to connect to the zookeeper cluster

5.   Start the zookeeper cluster




                                                                                                 11
Configuring Zookeeper and SOLR

1.   Configure the zookeeper cluster: http://zookeeper.apache.org/

2.   Adapt solrconfig.xml to the new replication scenario

3.   Adapt schema.xml to support Liferay

4.   Configure Tomcat to connect to the zookeeper cluster

5.   Start the zookeeper cluster

6.   Start the SOLR Cluster




                                                                                                 12
Configuring Zookeeper and SOLR




                            13
Configuring Liferay
1.   Choose the right solr-web plugin, yes the one that supports zookeeper




                                                                                              14
Configuring Liferay
1.   Choose the right solr-web plugin, yes the one that supports zookeeper

2.   Configure the solr-spring.xml to point to the zookeeper cluster




                                                                                              15
Configuring Liferay
1.   Choose the right solr-web plugin, yes the one that supports zookeeper

2.   Configure the solr-spring.xml to point to the zookeeper cluster

3.   Start the liferay cluster.




                                                                                              16
Where we can get it?



•At the writing of this presentation, the plugin to
work with zookeeper is not integrated yet with the
liferay plugins head maybe in the future will end
there but know you have to use this fork:
https://github.com/iolalla/liferay-
plugins/tree/master/webs/solr-web




•If you want to find more instructions to
compile/modify the code or just the final
war, please read this post:
http://israelolalla.blogspot.com.es/2012/11/liferay-
61-solr-4-zookeeper-massive.html


                                                                         17
Summary




Pros:
•Architecture is 100% active, all machines are candidates
for Master, in the index or search process.
•100% shared nothing architecture, no need for network
shares, NFS, etc..
•We can manage the configuration files centrally.
•Architecture that is self Multi Master, ie if the Master
fall, cluster itself choose the new Master.
•Very efficient replication copies files and indices.
Cons:
•There is a bit more RAM and CPU consumption by the
new process.



                                                            18
Where we are?
                                                                                    Contact with iSOCO




                                            Want to innovate?


Barcelona                     Madrid                          Pamplona               Valencia
Tel +34 935 677 200           Tel +34 913 349 797             Tel +34 948 102 408    Tel +34 963 467 143
Av. Torre Blanca, 57          Av. del Partenón, 16-18, 1º7ª   Parque Tomás           Oficina 107
Edificio ESADE CREAPOLIS      Campo de las Naciones           Caballero, 2, 6º4ª     C/ Prof. Beltrán Báguena, 4
Oficina 3C 15                 28042 Madrid                    31006 Pamplona         46009 Valencia
08172 Sant Cugat del Vallès
Barcelona




                                                                                                                   19

Contenu connexe

Tendances

Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
mohamedmoharam
 
Performance schema and_ps_helper
Performance schema and_ps_helperPerformance schema and_ps_helper
Performance schema and_ps_helper
Mark Leith
 

Tendances (20)

Apache Tomcat 7 by Filip Hanik
Apache Tomcat 7 by Filip HanikApache Tomcat 7 by Filip Hanik
Apache Tomcat 7 by Filip Hanik
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
 
Ch10.애플리케이션 서버의 병목_발견_방법
Ch10.애플리케이션 서버의 병목_발견_방법Ch10.애플리케이션 서버의 병목_발견_방법
Ch10.애플리케이션 서버의 병목_발견_방법
 
Deep Dive Hands-on in Java EE 6 - Oredev 2010
Deep Dive Hands-on in Java EE 6 - Oredev 2010Deep Dive Hands-on in Java EE 6 - Oredev 2010
Deep Dive Hands-on in Java EE 6 - Oredev 2010
 
Introduction to java servlet 3.0 api javaone 2009
Introduction to java servlet 3.0 api javaone 2009Introduction to java servlet 3.0 api javaone 2009
Introduction to java servlet 3.0 api javaone 2009
 
Performance schema and_ps_helper
Performance schema and_ps_helperPerformance schema and_ps_helper
Performance schema and_ps_helper
 
Tomcat configuration
Tomcat configurationTomcat configuration
Tomcat configuration
 
Introduction of Tomcat
Introduction of TomcatIntroduction of Tomcat
Introduction of Tomcat
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache Tomcat
 
Rac&asm
Rac&asmRac&asm
Rac&asm
 
Tuscany : Applying OSGi After The Fact
Tuscany : Applying  OSGi After The FactTuscany : Applying  OSGi After The Fact
Tuscany : Applying OSGi After The Fact
 
Tomcat Configuration (1)
Tomcat Configuration (1)Tomcat Configuration (1)
Tomcat Configuration (1)
 
Apache tomcat
Apache tomcatApache tomcat
Apache tomcat
 
Maven, Eclipse and OSGi Working Together - Carlos Sanchez
Maven, Eclipse and OSGi Working Together - Carlos SanchezMaven, Eclipse and OSGi Working Together - Carlos Sanchez
Maven, Eclipse and OSGi Working Together - Carlos Sanchez
 
Arun Gupta: London Java Community: Java EE 6 and GlassFish 3
Arun Gupta: London Java Community: Java EE 6 and GlassFish 3 Arun Gupta: London Java Community: Java EE 6 and GlassFish 3
Arun Gupta: London Java Community: Java EE 6 and GlassFish 3
 
Writing Plugged-in Java EE Apps: Jason Lee
Writing Plugged-in Java EE Apps: Jason LeeWriting Plugged-in Java EE Apps: Jason Lee
Writing Plugged-in Java EE Apps: Jason Lee
 
Refresh development from productions
Refresh development from productionsRefresh development from productions
Refresh development from productions
 
Auxiliary : Tomcat
Auxiliary : TomcatAuxiliary : Tomcat
Auxiliary : Tomcat
 
Tomcat and apache httpd training
Tomcat and apache httpd trainingTomcat and apache httpd training
Tomcat and apache httpd training
 
Apache Maven supports all Java (JokerConf 2018)
Apache Maven supports all Java (JokerConf 2018)Apache Maven supports all Java (JokerConf 2018)
Apache Maven supports all Java (JokerConf 2018)
 

Similaire à Liferay 6.1 and solr 4 in cluster

Apache ZooKeeper TechTuesday
Apache ZooKeeper TechTuesdayApache ZooKeeper TechTuesday
Apache ZooKeeper TechTuesday
Andrei Savu
 
Netapp snapmirror unified_replication_v1.2-lab_guide
Netapp snapmirror unified_replication_v1.2-lab_guideNetapp snapmirror unified_replication_v1.2-lab_guide
Netapp snapmirror unified_replication_v1.2-lab_guide
Vikas Sharma
 
zookeeperProgrammers
zookeeperProgrammerszookeeperProgrammers
zookeeperProgrammers
Hiroshi Ono
 
BookKeeper Administrator's Guide
BookKeeper Administrator's GuideBookKeeper Administrator's Guide
BookKeeper Administrator's Guide
Jeff Smith
 

Similaire à Liferay 6.1 and solr 4 in cluster (20)

Apache ZooKeeper TechTuesday
Apache ZooKeeper TechTuesdayApache ZooKeeper TechTuesday
Apache ZooKeeper TechTuesday
 
Red hat enterprise_linux-8-configuring_basic_system_settings-en-us
Red hat enterprise_linux-8-configuring_basic_system_settings-en-usRed hat enterprise_linux-8-configuring_basic_system_settings-en-us
Red hat enterprise_linux-8-configuring_basic_system_settings-en-us
 
Deploying and managing SolrCloud in the cloud using the Solr Scale Toolkit
Deploying and managing SolrCloud in the cloud using the Solr Scale ToolkitDeploying and managing SolrCloud in the cloud using the Solr Scale Toolkit
Deploying and managing SolrCloud in the cloud using the Solr Scale Toolkit
 
SFBay Area Solr Meetup - June 18th: Benchmarking Solr Performance
SFBay Area Solr Meetup - June 18th: Benchmarking Solr PerformanceSFBay Area Solr Meetup - June 18th: Benchmarking Solr Performance
SFBay Area Solr Meetup - June 18th: Benchmarking Solr Performance
 
Mule memory leak issue
Mule memory leak issueMule memory leak issue
Mule memory leak issue
 
Netapp snapmirror unified_replication_v1.2-lab_guide
Netapp snapmirror unified_replication_v1.2-lab_guideNetapp snapmirror unified_replication_v1.2-lab_guide
Netapp snapmirror unified_replication_v1.2-lab_guide
 
First oslo solr community meetup lightning talk janhoy
First oslo solr community meetup lightning talk janhoyFirst oslo solr community meetup lightning talk janhoy
First oslo solr community meetup lightning talk janhoy
 
Streaming Processing with a Distributed Commit Log
Streaming Processing with a Distributed Commit LogStreaming Processing with a Distributed Commit Log
Streaming Processing with a Distributed Commit Log
 
Codership's galera cluster installation and quickstart webinar march 2016
Codership's galera cluster installation and quickstart webinar march 2016Codership's galera cluster installation and quickstart webinar march 2016
Codership's galera cluster installation and quickstart webinar march 2016
 
Codership's galera cluster installation and quickstart webinar march 2016
Codership's galera cluster installation and quickstart webinar march 2016Codership's galera cluster installation and quickstart webinar march 2016
Codership's galera cluster installation and quickstart webinar march 2016
 
Codership's galera cluster installation and quickstart webinar march 2016
Codership's galera cluster installation and quickstart webinar march 2016Codership's galera cluster installation and quickstart webinar march 2016
Codership's galera cluster installation and quickstart webinar march 2016
 
Autoscaling Solr - Shalin Shekhar Mangar, Lucidworks
Autoscaling Solr - Shalin Shekhar Mangar, LucidworksAutoscaling Solr - Shalin Shekhar Mangar, Lucidworks
Autoscaling Solr - Shalin Shekhar Mangar, Lucidworks
 
ONOS와 Raspberry Pi 기반 가상물리 SDN 실증 환경 구축과 응용 개발
ONOS와 Raspberry Pi 기반 가상물리 SDN 실증 환경 구축과 응용 개발ONOS와 Raspberry Pi 기반 가상물리 SDN 실증 환경 구축과 응용 개발
ONOS와 Raspberry Pi 기반 가상물리 SDN 실증 환경 구축과 응용 개발
 
zookeeperProgrammers
zookeeperProgrammerszookeeperProgrammers
zookeeperProgrammers
 
RootedCON 2015 - Deep inside the Java framework Apache Struts
RootedCON 2015 - Deep inside the Java framework Apache StrutsRootedCON 2015 - Deep inside the Java framework Apache Struts
RootedCON 2015 - Deep inside the Java framework Apache Struts
 
Mastering VMware Datacenter Part-1
Mastering VMware Datacenter Part-1Mastering VMware Datacenter Part-1
Mastering VMware Datacenter Part-1
 
Alfresco tuning part2
Alfresco tuning part2Alfresco tuning part2
Alfresco tuning part2
 
Exhibitor Introduction
Exhibitor IntroductionExhibitor Introduction
Exhibitor Introduction
 
BookKeeper Administrator's Guide
BookKeeper Administrator's GuideBookKeeper Administrator's Guide
BookKeeper Administrator's Guide
 
OpenSolaris Server
OpenSolaris ServerOpenSolaris Server
OpenSolaris Server
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 

Liferay 6.1 and solr 4 in cluster

  • 1. Installing Liferay 6.1 and SOLR 4 in cluster Israel Olalla @iolalla
  • 2. Looking for inspiration “Only a life lived for others is a life worthwhile.” Albert Einstein 2
  • 3. What we want to get? •Index and search all the content from Liferay •No single point of failure •Simple to manage: simple to add new machines, stop one and add one to the cluster •As cheap as possible: No Expensive HW or software to control the cluster. •Manage index and configuration with the same system 3
  • 4. OLD Liferay Reference Architecture 4
  • 5. New Liferay Reference Architecture 5
  • 6. Configuring Zookeeper and SOLR 1. Configure the zookeeper cluster: http://zookeeper.apache.org/ 6
  • 7. Configuring Zookeeper and SOLR 1. Configure the zookeeper cluster: http://zookeeper.apache.org/ 2. Adapt solrconfig.xml to the new replication scenario 7
  • 8. Configuring Zookeeper and SOLR 1. Configure the zookeeper cluster: http://zookeeper.apache.org/ 2. Adapt solrconfig.xml to the new replication scenario 3. Adapt schema.xml to support Liferay 8
  • 9. Configuring Zookeeper and SOLR 1. Configure the zookeeper cluster: http://zookeeper.apache.org/ 2. Adapt solrconfig.xml to the new replication scenario 3. Adapt schema.xml to support Liferay 4. Configure Tomcat to connect to the zookeeper cluster 5. Start the zookeeper cluster 9
  • 10. Configuring Zookeeper and SOLR 1. Configure the zookeeper cluster: http://zookeeper.apache.org/ 2. Adapt solrconfig.xml to the new replication scenario 3. Adapt schema.xml to support Liferay 4. Configure Tomcat to connect to the zookeeper cluster 10
  • 11. Configuring Zookeeper and SOLR 1. Configure the zookeeper cluster: http://zookeeper.apache.org/ 2. Adapt solrconfig.xml to the new replication scenario 3. Adapt schema.xml to support Liferay 4. Configure Tomcat to connect to the zookeeper cluster 5. Start the zookeeper cluster 11
  • 12. Configuring Zookeeper and SOLR 1. Configure the zookeeper cluster: http://zookeeper.apache.org/ 2. Adapt solrconfig.xml to the new replication scenario 3. Adapt schema.xml to support Liferay 4. Configure Tomcat to connect to the zookeeper cluster 5. Start the zookeeper cluster 6. Start the SOLR Cluster 12
  • 14. Configuring Liferay 1. Choose the right solr-web plugin, yes the one that supports zookeeper 14
  • 15. Configuring Liferay 1. Choose the right solr-web plugin, yes the one that supports zookeeper 2. Configure the solr-spring.xml to point to the zookeeper cluster 15
  • 16. Configuring Liferay 1. Choose the right solr-web plugin, yes the one that supports zookeeper 2. Configure the solr-spring.xml to point to the zookeeper cluster 3. Start the liferay cluster. 16
  • 17. Where we can get it? •At the writing of this presentation, the plugin to work with zookeeper is not integrated yet with the liferay plugins head maybe in the future will end there but know you have to use this fork: https://github.com/iolalla/liferay- plugins/tree/master/webs/solr-web •If you want to find more instructions to compile/modify the code or just the final war, please read this post: http://israelolalla.blogspot.com.es/2012/11/liferay- 61-solr-4-zookeeper-massive.html 17
  • 18. Summary Pros: •Architecture is 100% active, all machines are candidates for Master, in the index or search process. •100% shared nothing architecture, no need for network shares, NFS, etc.. •We can manage the configuration files centrally. •Architecture that is self Multi Master, ie if the Master fall, cluster itself choose the new Master. •Very efficient replication copies files and indices. Cons: •There is a bit more RAM and CPU consumption by the new process. 18
  • 19. Where we are? Contact with iSOCO Want to innovate? Barcelona Madrid Pamplona Valencia Tel +34 935 677 200 Tel +34 913 349 797 Tel +34 948 102 408 Tel +34 963 467 143 Av. Torre Blanca, 57 Av. del Partenón, 16-18, 1º7ª Parque Tomás Oficina 107 Edificio ESADE CREAPOLIS Campo de las Naciones Caballero, 2, 6º4ª C/ Prof. Beltrán Báguena, 4 Oficina 3C 15 28042 Madrid 31006 Pamplona 46009 Valencia 08172 Sant Cugat del Vallès Barcelona 19