Liferay 6.1 and solr 4 in cluster

3,058 views
2,650 views

Published on

Liferay 6.1 and solr 4 in cluster

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,058
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
52
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Liferay 6.1 and solr 4 in cluster

  1. 1. Installing Liferay 6.1 and SOLR 4 in cluster Israel Olalla @iolalla
  2. 2. Looking for inspiration“Only a life lived for others is a life worthwhile.” Albert Einstein 2
  3. 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 addone to the cluster•As cheap as possible: No Expensive HW or software to control thecluster.•Manage index and configuration with the same system 3
  4. 4. OLD Liferay Reference Architecture 4
  5. 5. New Liferay Reference Architecture 5
  6. 6. Configuring Zookeeper and SOLR1. Configure the zookeeper cluster: http://zookeeper.apache.org/ 6
  7. 7. Configuring Zookeeper and SOLR1. Configure the zookeeper cluster: http://zookeeper.apache.org/2. Adapt solrconfig.xml to the new replication scenario 7
  8. 8. Configuring Zookeeper and SOLR1. Configure the zookeeper cluster: http://zookeeper.apache.org/2. Adapt solrconfig.xml to the new replication scenario3. Adapt schema.xml to support Liferay 8
  9. 9. Configuring Zookeeper and SOLR1. Configure the zookeeper cluster: http://zookeeper.apache.org/2. Adapt solrconfig.xml to the new replication scenario3. Adapt schema.xml to support Liferay4. Configure Tomcat to connect to the zookeeper cluster5. Start the zookeeper cluster 9
  10. 10. Configuring Zookeeper and SOLR1. Configure the zookeeper cluster: http://zookeeper.apache.org/2. Adapt solrconfig.xml to the new replication scenario3. Adapt schema.xml to support Liferay4. Configure Tomcat to connect to the zookeeper cluster 10
  11. 11. Configuring Zookeeper and SOLR1. Configure the zookeeper cluster: http://zookeeper.apache.org/2. Adapt solrconfig.xml to the new replication scenario3. Adapt schema.xml to support Liferay4. Configure Tomcat to connect to the zookeeper cluster5. Start the zookeeper cluster 11
  12. 12. Configuring Zookeeper and SOLR1. Configure the zookeeper cluster: http://zookeeper.apache.org/2. Adapt solrconfig.xml to the new replication scenario3. Adapt schema.xml to support Liferay4. Configure Tomcat to connect to the zookeeper cluster5. Start the zookeeper cluster6. Start the SOLR Cluster 12
  13. 13. Configuring Zookeeper and SOLR 13
  14. 14. Configuring Liferay1. Choose the right solr-web plugin, yes the one that supports zookeeper 14
  15. 15. Configuring Liferay1. Choose the right solr-web plugin, yes the one that supports zookeeper2. Configure the solr-spring.xml to point to the zookeeper cluster 15
  16. 16. Configuring Liferay1. Choose the right solr-web plugin, yes the one that supports zookeeper2. Configure the solr-spring.xml to point to the zookeeper cluster3. Start the liferay cluster. 16
  17. 17. Where we can get it?•At the writing of this presentation, the plugin towork with zookeeper is not integrated yet with theliferay plugins head maybe in the future will endthere 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 tocompile/modify the code or just the finalwar, please read this post:http://israelolalla.blogspot.com.es/2012/11/liferay-61-solr-4-zookeeper-massive.html 17
  18. 18. SummaryPros:•Architecture is 100% active, all machines are candidatesfor Master, in the index or search process.•100% shared nothing architecture, no need for networkshares, NFS, etc..•We can manage the configuration files centrally.•Architecture that is self Multi Master, ie if the Masterfall, cluster itself choose the new Master.•Very efficient replication copies files and indices.Cons:•There is a bit more RAM and CPU consumption by thenew process. 18
  19. 19. Where we are? Contact with iSOCO Want to innovate?Barcelona Madrid Pamplona ValenciaTel +34 935 677 200 Tel +34 913 349 797 Tel +34 948 102 408 Tel +34 963 467 143Av. Torre Blanca, 57 Av. del Partenón, 16-18, 1º7ª Parque Tomás Oficina 107Edificio ESADE CREAPOLIS Campo de las Naciones Caballero, 2, 6º4ª C/ Prof. Beltrán Báguena, 4Oficina 3C 15 28042 Madrid 31006 Pamplona 46009 Valencia08172 Sant Cugat del VallèsBarcelona 19

×