SlideShare a Scribd company logo
Cluster Overview and PLF Cluster
Basic notions, configuration, common errors and current status




                                      TRAN Trung Thanh, PLF/MQ
                                                        March 2012
Agenda (1)


 1   Cluster Introduction
     - Cluster, What's it?

     - Why cluster?


 2
     Basic configuration
     - Basic cluster infrastructure with load balancing
     - Two-node PLF cluster


 3
     Advanced configuration

     - Hot spare server

     - Asymmetric load


 4
     PLF cluster current status

     - Story

     - Bugs relating to configuration

     - Bugs in the implementation
                    www.exoplatform.com - Copyright 2012 eXo Platform   2
Agenda (2)


     Conclusion and Perspective


     Q&A




                www.exoplatform.com - Copyright 2012 eXo Platform   3
Agenda


1   Cluster Introduction
    - Cluster, What's it?

    - Why cluster?


2
    Basic configuration
    - Basic cluster infrastructure with load balancing
    - Two-node PLF cluster


3
    Advanced configuration

    - Hot spare server

    - Asymmetric load


4
    PLF cluster current status

    - Story

    - Bugs relating to configuration

    - Bugs in the implementation
                   www.exoplatform.com - Copyright 2012 eXo Platform   4
Cluster, What is it?

− High scalable and high available virtual server
− Fully transparent to end user




                            Basic Cluster Infrastructure


                  www.exoplatform.com - Copyright 2012 eXo Platform   5
Why cluster? (1)

− Challenges
   − Increase dramatically the traffic of Internet ( annual rate > 100%)
   − Increase rapidly workload of servers
   − Enhance the availability of servers

− Solutions
   − Upgrade the software/hardware of servers
   − Multi-server
        −   Cluster
        −   Grid
        −   Cloud




                      www.exoplatform.com - Copyright 2012 eXo Platform    6
Why cluster? (2)

− Cluster Notions
   − Scalability
   − Load Balancing
       −   Load Balancing with an appliance
       −   Load Balancing with a software/hardware combination
            
                mod_proxy, mod_jk, mod_cluster
   − High Availability




                    www.exoplatform.com - Copyright 2012 eXo Platform   7
Agenda


1   Cluster Introduction
    - Cluster, What's it?

    - Why cluster?


2
    Basic configuration
    - Basic cluster infrastructure with load balancing
    - Two-node PLF cluster


3
    Advanced configuration

    - Hot spare server

    - Asymmetric load


4
    PLF cluster current status

    - Story

    - Bugs relating to configuration

    - Bugs in the implementation
                   www.exoplatform.com - Copyright 2012 eXo Platform   8
Basic Cluster Infrastructure with load balancing




               www.exoplatform.com - Copyright 2012 eXo Platform   9
Two-node PLF cluster

− Load Balancer: mod_jk
− Server cluster: 2 nodes ( 2
  instances of PLF in same
  machine or in 2 distinguished
  machines)
− Shared Storage:
   − NFS: indexing data, key
      for gadget
   − DB server: shared PLF
      data




                   www.exoplatform.com - Copyright 2012 eXo Platform   10
Mod_jk(1)

− Connector used to connect the Tomcat Servlet Container with Web
  Servers
− Use AJP (Apache Jserv Protocol)
− Roles
   − Load the servlet container adapter library and initialize it (prior to
     serving requests)
   − Check and redirect requests to servlet to handle it




                    www.exoplatform.com - Copyright 2012 eXo Platform         11
Mod_jk(2)
− mod_jk configuration step-by-step
   − Install apache
   − Add mod_jk modules to apache
   − Configure mod_jk parameters in apache configuration (httpd.conf)
   − Assign URL to apache
        −   JkMount <URL prefix> <Worker name>
   − Configure worker properties: IP, port for AJP, hostname




                    www.exoplatform.com - Copyright 2012 eXo Platform   12
PLF cluster configuration(1)
− Notes
   − Use profile all to deploy PLF server in cluster mode
   − PLF user external connector to connect DB
         −   Need to add a external connector if necessary
− Configure datasource
    − Config target
    $TOMCAT_HOME/conf/server.xml (tomcat server)
        $JBOSS_HOME/server/all/gatein-ds.xml (jboss server).

    − Parameters
         −   User name/password, connector, database address




                      www.exoplatform.com - Copyright 2012 eXo Platform   13
PLF cluster configuration(2)
− Configure NFS
    
        Config target
         −   $TOMCAT_HOME/conf/server.xml (tomcat server)
         −   $JBOSS_HOME/server/all/deploy/jbossweb.sar/server.xml (jboss
             server)
− Configure AJP route
    − Config target
         −   $TOMCAT_HOME/gatein/conf/configuration.properties (tomcat server)
         −   $JBOSS_HOME/server/all/conf/gatein/configuration.properties (jboss
             server)

    − Parameters
         −   Add JVM Route to mark the name of server used by mod_jk




                      www.exoplatform.com - Copyright 2012 eXo Platform           14
PLF cluster configuration(3)
− Activate PLF configuration
    
        Tomcat
         −   Switch jcr mode to cluster
         −   Add profile cluster to eXo Profile
         −   Add preferIPv4Stack parameter to route message for synchronized
    
        Jboss
         −   Switch jcr mode to cluster
         −   Add profile cluster to eXo Profile
         −   Add preferIPv4Stack parameter to route message for synchronized
         −   Activate Cluster Single On




                       www.exoplatform.com - Copyright 2012 eXo Platform       15
PLF cluster configuration(4)
− Start PLF
    
          Tomcat
        ./start_eXo.sh
    
          Jboss
        bin/run.sh -g MyClusterPartition -b IP_NODE -c all




                         www.exoplatform.com - Copyright 2012 eXo Platform   16
PLF cluster configuration(5)
− Verify cluster
    
        In console, when a new member is added or any downs
    INFO [MyClusterPartition] Dead members: 0 ([])
    INFO [MyClusterPartition] New Members : 1 ([127.0.0.1:1099])
    INFO [MyClusterPartition] All Members : 2 ([127.0.0.1:1199,
       127.0.0.1:1099])




                   www.exoplatform.com - Copyright 2012 eXo Platform   17
PLF cluster configuration(6)
− Common errors in configuring and use cluster mode
    
        Error on connection to DB server
         −   Lack of connector in lib
               
                   Add connector
         −   Wrong database address parameters
               
                   Verify database parameters
         −   DB isn't set to accept remote access
               
                   Configure to accept remote access
    
        Indexing data and database aren't matched
         −   Remove indexing data and database if possible




                       www.exoplatform.com - Copyright 2012 eXo Platform   18
Agenda


1   Cluster Introduction
    - Cluster, What's it?

    - Why cluster?


2
    Basic configuration
    - Basic cluster infrastructure with load balancing
    - Two-node PLF cluster


3
    Advanced configuration

    - Hot spare server

    - Asymmetric load


4
    PLF cluster current status

    - Story

    - Bugs relating to configuration

    - Bugs in the implementation
                   www.exoplatform.com - Copyright 2012 eXo Platform   19
Advanced Configuration(1)

− Hot Spare server
 l
     Failover mechanism to provide reliability
 l
     A key component fails, the hot spare is switched into
     operation




                     www.exoplatform.com - Copyright 2012 eXo Platform   20
Advanced configuration(2)
− Hot spare configuration
   − Set hot spare server for main server
       # Define preferred failover node for plfnode1

       worker.plfnode1.redirect=plfnode2

   − Deactivate hot spare server
      # Disable plfnode2 for all requests except failover

      worker.plfnode2.activation=disabled




                     www.exoplatform.com - Copyright 2012 eXo Platform   21
Advanced Configuration(3)

•Asymmetric load
  l
    User to divide the workload among servers
  l
    Use lbfactor for each server
   worker.plfnode1.lbfactor=2
   worker.plfnode2.lbfactor=8




                    www.exoplatform.com - Copyright 2012 eXo Platform   22
Agenda


1   Cluster Introduction
    - Cluster, What's it?

    - Why cluster?


2
    Basic configuration
    - Basic cluster infrastructure with load balancing
    - Two-node PLF cluster


3
    Advanced configuration

    - Hot spare server

    - Asymmetric load


4
    PLF cluster current status

    - Story

    - Bugs relating to configuration

    - Bugs in the implementation
                   www.exoplatform.com - Copyright 2012 eXo Platform   23
Story

− Support cluster from PLF 3.0.x
   − EPP SP 5.1.x in cluster mode with RedHat
   − Lack of test and of evaluation in PLF 3.0.x
− Support fully cluster mode from PLF 3.5.1
    − FQA test campaign for cluster
− Cluster configuration changes from PLF 3.0.x to 3.5.x
    − Use shared file-system for security token store (EXOGTN-237)
    − Reconfigure the parameters for cluster mode (PLF-630)




                    www.exoplatform.com - Copyright 2012 eXo Platform   24
Bugs relating to configuration

− Too many warnings on console
   − Related issue: PLF-2652
   − Description: Too many warning on console repeatedly
   − Workaround: Hide log
        −   Tomcat: Add to conf/logging.properties
             org.jgroups.level = ERROR
             org.jgroups.handlers=


  java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
       - Jboss: Add to server/all/conf/jboss-log4j.xml
             <category name="org.jgroups">
              <priority value="ERROR"/>
       </category>

                     www.exoplatform.com - Copyright 2012 eXo Platform   25
Bugs relating to configuration(2)

− Replication time out
   − Related issue: PLF-2752
   − Description: Replication Timeout console on running PLF in
     cluster mode with multi instances
   − Workaround: Increase Replication Timeout




                  www.exoplatform.com - Copyright 2012 eXo Platform   26
Bugs in implementation(1)

− Lack of Synchronized function
   − Related issue: ECMS-2324
   − Description: Job runs only on a server
     → Another job try to access the resource using by another job

   − Suggested Solution: Synchronize functions. At one time, only a
      thread access a resource




                  www.exoplatform.com - Copyright 2012 eXo Platform   27
Bugs in implementation(2)

− Cache problem
   − Related issue: ECMS-3337, SOC-1368, EXOGTN-978
   − Description: To increase performance, the local cache is
      implemented. Cache among another nodes isn't synchronized
     → Cannot see update in other nodes or some objects are
  unavailable.

   − Suggested: Solution: Only use cache for necessary cases. Evict
      cache immediately if the changes have to take effect on cluster
      nodes.




                   www.exoplatform.com - Copyright 2012 eXo Platform    28
Bugs in implementation(3)

− Problem with login session
   − Related issue: EXOGTN-943, PLF-2730
   − Description: The user login session isn't well shared among
      servers in cluster.
     → Problem 1: Cannot relogin after a login failure
      → Problem 2: When a instance fails, all clients using it have to relogin.

   − Suggested Solution: Broadcast user login session among servers
      in cluster




                     www.exoplatform.com - Copyright 2012 eXo Platform            29
Agenda


    Conclusion and Perspective


    Q&A




               www.exoplatform.com - Copyright 2012 eXo Platform   30
Conclusion and Perspective

− Conclusion
   − PLF supports quite well in cluster mode
   − There are some problems in cluster mode
− Perspective
   − Use mod_cluster for cluster configuration
   − Organize server in many groups. Among in a group, all server
      shared the same session




                  www.exoplatform.com - Copyright 2012 eXo Platform   31
References

Admin guide for PLF 3.5

Install cluster mode by Nghi TQA

http://www.mulesoft.com/tomcat-cluster

http://msdn.microsoft.com/en-us/library/ff649250.aspx

http://tldp.org/HOWTO/openMosix-HOWTO/x135.html

http://www.linuxvirtualserver.org/whatis.html

http://www.sql-server-performance.com/2002/clustering-intro/

http://docs.oracle.com/cd/E14049_01/doc.9101/e14046/jboss_cluster.htm#BGBGDCHD

http://oddthesis.org/posts/2008-12-jboss-and-mod_cluster/

http://vinaytechs.blogspot.com/2009/11/clustering-in-jboss-application-server.html

http://www.webopedia.com/TERM/C/clustering.html



                          www.exoplatform.com - Copyright 2012 eXo Platform          32
Q&A




      www.exoplatform.com - Copyright 2012 eXo Platform   33

More Related Content

What's hot

Echi Converter Presentation External
Echi Converter Presentation ExternalEchi Converter Presentation External
Echi Converter Presentation External
guestc3b49e
 
EMEA Airheads- LACP and distributed LACP – ArubaOS Switch
EMEA Airheads- LACP and distributed LACP – ArubaOS SwitchEMEA Airheads- LACP and distributed LACP – ArubaOS Switch
EMEA Airheads- LACP and distributed LACP – ArubaOS Switch
Aruba, a Hewlett Packard Enterprise company
 
Tomcat Clustering
Tomcat ClusteringTomcat Clustering
Tomcat Clustering
gouthamrv
 
Rac on NFS
Rac on NFSRac on NFS
Rac on NFS
mengjiagou
 
Apache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling OutApache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling Out
Sander Temme
 
Yum (Linux)
Yum (Linux) Yum (Linux)
Yum (Linux)
Raghu nath
 
RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)
skalaivanibutp
 
12 yum
12  yum12  yum
25 Apache Performance Tips
25 Apache Performance Tips25 Apache Performance Tips
25 Apache Performance Tips
Monitis_Inc
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management
Acácio Oliveira
 
AIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge ShareAIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge Share
.Gastón. .Bx.
 
PostgreSQL High Availability via SLONY and PG POOL II
PostgreSQL High Availability via SLONY and PG POOL IIPostgreSQL High Availability via SLONY and PG POOL II
PostgreSQL High Availability via SLONY and PG POOL II
Command Prompt., Inc
 
Software Packaging with RPM
Software Packaging with RPMSoftware Packaging with RPM
Software Packaging with RPM
Schalk Cronjé
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linux
nejadmand
 
[India Merge World Tour] Meru Networks
[India Merge World Tour] Meru Networks[India Merge World Tour] Meru Networks
[India Merge World Tour] Meru Networks
Perforce
 
RPM (LINUX)
RPM (LINUX)RPM (LINUX)
RPM (LINUX)
Raghu nath
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
mohamedmoharam
 
RHCE Training
RHCE TrainingRHCE Training
RHCE Training
ajeet yadav
 
C mode class
C mode classC mode class
C mode class
Accenture
 

What's hot (19)

Echi Converter Presentation External
Echi Converter Presentation ExternalEchi Converter Presentation External
Echi Converter Presentation External
 
EMEA Airheads- LACP and distributed LACP – ArubaOS Switch
EMEA Airheads- LACP and distributed LACP – ArubaOS SwitchEMEA Airheads- LACP and distributed LACP – ArubaOS Switch
EMEA Airheads- LACP and distributed LACP – ArubaOS Switch
 
Tomcat Clustering
Tomcat ClusteringTomcat Clustering
Tomcat Clustering
 
Rac on NFS
Rac on NFSRac on NFS
Rac on NFS
 
Apache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling OutApache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling Out
 
Yum (Linux)
Yum (Linux) Yum (Linux)
Yum (Linux)
 
RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)
 
12 yum
12  yum12  yum
12 yum
 
25 Apache Performance Tips
25 Apache Performance Tips25 Apache Performance Tips
25 Apache Performance Tips
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management
 
AIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge ShareAIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge Share
 
PostgreSQL High Availability via SLONY and PG POOL II
PostgreSQL High Availability via SLONY and PG POOL IIPostgreSQL High Availability via SLONY and PG POOL II
PostgreSQL High Availability via SLONY and PG POOL II
 
Software Packaging with RPM
Software Packaging with RPMSoftware Packaging with RPM
Software Packaging with RPM
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linux
 
[India Merge World Tour] Meru Networks
[India Merge World Tour] Meru Networks[India Merge World Tour] Meru Networks
[India Merge World Tour] Meru Networks
 
RPM (LINUX)
RPM (LINUX)RPM (LINUX)
RPM (LINUX)
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
 
RHCE Training
RHCE TrainingRHCE Training
RHCE Training
 
C mode class
C mode classC mode class
C mode class
 

Viewers also liked

Advance jquery-plugin
Advance jquery-pluginAdvance jquery-plugin
Advance jquery-plugin
adm_exoplatform
 
Jquery
JqueryJquery
I os
I osI os
Magento
MagentoMagento
Wg11 automaive
Wg11 automaiveWg11 automaive
Wg11 automaive
Anshul Aggarwal
 
Memory and runtime analysis
Memory and runtime analysisMemory and runtime analysis
Memory and runtime analysis
adm_exoplatform
 
Hadoop
HadoopHadoop
E xo mobile_overview_best_practice_in_mobile_application_design
E xo mobile_overview_best_practice_in_mobile_application_designE xo mobile_overview_best_practice_in_mobile_application_design
E xo mobile_overview_best_practice_in_mobile_application_design
adm_exoplatform
 

Viewers also liked (8)

Advance jquery-plugin
Advance jquery-pluginAdvance jquery-plugin
Advance jquery-plugin
 
Jquery
JqueryJquery
Jquery
 
I os
I osI os
I os
 
Magento
MagentoMagento
Magento
 
Wg11 automaive
Wg11 automaiveWg11 automaive
Wg11 automaive
 
Memory and runtime analysis
Memory and runtime analysisMemory and runtime analysis
Memory and runtime analysis
 
Hadoop
HadoopHadoop
Hadoop
 
E xo mobile_overview_best_practice_in_mobile_application_design
E xo mobile_overview_best_practice_in_mobile_application_designE xo mobile_overview_best_practice_in_mobile_application_design
E xo mobile_overview_best_practice_in_mobile_application_design
 

Similar to Cluster mode and plf cluster

My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)
Gustavo Rene Antunez
 
Juniper Trouble Shooting
Juniper Trouble ShootingJuniper Trouble Shooting
Juniper Trouble Shooting
Mike(Haobin) Zheng
 
Flink Forward Berlin 2017: Patrick Lucas - Flink in Containerland
Flink Forward Berlin 2017: Patrick Lucas - Flink in ContainerlandFlink Forward Berlin 2017: Patrick Lucas - Flink in Containerland
Flink Forward Berlin 2017: Patrick Lucas - Flink in Containerland
Flink Forward
 
Install FD.IO VPP On Intel(r) Architecture & Test with Trex*
Install FD.IO VPP On Intel(r) Architecture & Test with Trex*Install FD.IO VPP On Intel(r) Architecture & Test with Trex*
Install FD.IO VPP On Intel(r) Architecture & Test with Trex*
Michelle Holley
 
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
OpenStack Korea Community
 
Integrating Active Networking and Commercial-Grade Routing Platforms
Integrating Active Networking and Commercial-Grade Routing PlatformsIntegrating Active Networking and Commercial-Grade Routing Platforms
Integrating Active Networking and Commercial-Grade Routing Platforms
Tal Lavian Ph.D.
 
An introduction into Oracle VM V3.x
An introduction into Oracle VM V3.xAn introduction into Oracle VM V3.x
An introduction into Oracle VM V3.x
Marco Gralike
 
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
Continuent
 
Flex your Database on 12c's Flex ASM Flex Cluster
Flex your Database on 12c's Flex ASM Flex ClusterFlex your Database on 12c's Flex ASM Flex Cluster
Flex your Database on 12c's Flex ASM Flex Cluster
ALI ANWAR, OCP®
 
Flex Your Database on 12c's Flex ASM and Flex Cluster
Flex Your Database on 12c's Flex ASM and Flex ClusterFlex Your Database on 12c's Flex ASM and Flex Cluster
Flex Your Database on 12c's Flex ASM and Flex Cluster
Maaz Anjum
 
Fastsocket Linxiaofeng
Fastsocket LinxiaofengFastsocket Linxiaofeng
Fastsocket Linxiaofeng
Michael Zhang
 
Introduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 PresentationIntroduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 Presentation
Tomcat Expert
 
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
BIOVIA
 
Hardware accelerated switching with Linux @ SWLUG Talks May 2014
Hardware accelerated switching with Linux @ SWLUG Talks May 2014Hardware accelerated switching with Linux @ SWLUG Talks May 2014
Hardware accelerated switching with Linux @ SWLUG Talks May 2014
Nat Morris
 
Cl116
Cl116Cl116
Doag data replication with oracle golden gate: Looking behind the scenes
Doag data replication with oracle golden gate: Looking behind the scenesDoag data replication with oracle golden gate: Looking behind the scenes
Doag data replication with oracle golden gate: Looking behind the scenes
Trivadis
 
Benchmark emc vnx7500, emc fast suite, emc snap sure and oracle rac on v-mware
Benchmark   emc vnx7500, emc fast suite, emc snap sure and oracle rac on v-mwareBenchmark   emc vnx7500, emc fast suite, emc snap sure and oracle rac on v-mware
Benchmark emc vnx7500, emc fast suite, emc snap sure and oracle rac on v-mware
solarisyougood
 
Runos OpenFlow Controller (eng)
Runos OpenFlow Controller (eng)Runos OpenFlow Controller (eng)
Runos OpenFlow Controller (eng)
Alexander Shalimov
 
Oracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open WorldOracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open World
Paul Marden
 
SDN/OpenFlow #lspe
SDN/OpenFlow #lspeSDN/OpenFlow #lspe
SDN/OpenFlow #lspe
Chris Westin
 

Similar to Cluster mode and plf cluster (20)

My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)
 
Juniper Trouble Shooting
Juniper Trouble ShootingJuniper Trouble Shooting
Juniper Trouble Shooting
 
Flink Forward Berlin 2017: Patrick Lucas - Flink in Containerland
Flink Forward Berlin 2017: Patrick Lucas - Flink in ContainerlandFlink Forward Berlin 2017: Patrick Lucas - Flink in Containerland
Flink Forward Berlin 2017: Patrick Lucas - Flink in Containerland
 
Install FD.IO VPP On Intel(r) Architecture & Test with Trex*
Install FD.IO VPP On Intel(r) Architecture & Test with Trex*Install FD.IO VPP On Intel(r) Architecture & Test with Trex*
Install FD.IO VPP On Intel(r) Architecture & Test with Trex*
 
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
 
Integrating Active Networking and Commercial-Grade Routing Platforms
Integrating Active Networking and Commercial-Grade Routing PlatformsIntegrating Active Networking and Commercial-Grade Routing Platforms
Integrating Active Networking and Commercial-Grade Routing Platforms
 
An introduction into Oracle VM V3.x
An introduction into Oracle VM V3.xAn introduction into Oracle VM V3.x
An introduction into Oracle VM V3.x
 
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
 
Flex your Database on 12c's Flex ASM Flex Cluster
Flex your Database on 12c's Flex ASM Flex ClusterFlex your Database on 12c's Flex ASM Flex Cluster
Flex your Database on 12c's Flex ASM Flex Cluster
 
Flex Your Database on 12c's Flex ASM and Flex Cluster
Flex Your Database on 12c's Flex ASM and Flex ClusterFlex Your Database on 12c's Flex ASM and Flex Cluster
Flex Your Database on 12c's Flex ASM and Flex Cluster
 
Fastsocket Linxiaofeng
Fastsocket LinxiaofengFastsocket Linxiaofeng
Fastsocket Linxiaofeng
 
Introduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 PresentationIntroduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 Presentation
 
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
 
Hardware accelerated switching with Linux @ SWLUG Talks May 2014
Hardware accelerated switching with Linux @ SWLUG Talks May 2014Hardware accelerated switching with Linux @ SWLUG Talks May 2014
Hardware accelerated switching with Linux @ SWLUG Talks May 2014
 
Cl116
Cl116Cl116
Cl116
 
Doag data replication with oracle golden gate: Looking behind the scenes
Doag data replication with oracle golden gate: Looking behind the scenesDoag data replication with oracle golden gate: Looking behind the scenes
Doag data replication with oracle golden gate: Looking behind the scenes
 
Benchmark emc vnx7500, emc fast suite, emc snap sure and oracle rac on v-mware
Benchmark   emc vnx7500, emc fast suite, emc snap sure and oracle rac on v-mwareBenchmark   emc vnx7500, emc fast suite, emc snap sure and oracle rac on v-mware
Benchmark emc vnx7500, emc fast suite, emc snap sure and oracle rac on v-mware
 
Runos OpenFlow Controller (eng)
Runos OpenFlow Controller (eng)Runos OpenFlow Controller (eng)
Runos OpenFlow Controller (eng)
 
Oracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open WorldOracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open World
 
SDN/OpenFlow #lspe
SDN/OpenFlow #lspeSDN/OpenFlow #lspe
SDN/OpenFlow #lspe
 

More from adm_exoplatform

Development withforce
Development withforceDevelopment withforce
Development withforce
adm_exoplatform
 
Jquery ui
Jquery uiJquery ui
Jquery ui
adm_exoplatform
 
Cmsms
CmsmsCmsms
Java application server in the cloud
Java application server in the cloudJava application server in the cloud
Java application server in the cloud
adm_exoplatform
 
Jvm mbeans jmxtran
Jvm mbeans jmxtranJvm mbeans jmxtran
Jvm mbeans jmxtran
adm_exoplatform
 
Git training
Git trainingGit training
Git training
adm_exoplatform
 
Cluster mode and plf cluster
Cluster mode and plf clusterCluster mode and plf cluster
Cluster mode and plf cluster
adm_exoplatform
 

More from adm_exoplatform (7)

Development withforce
Development withforceDevelopment withforce
Development withforce
 
Jquery ui
Jquery uiJquery ui
Jquery ui
 
Cmsms
CmsmsCmsms
Cmsms
 
Java application server in the cloud
Java application server in the cloudJava application server in the cloud
Java application server in the cloud
 
Jvm mbeans jmxtran
Jvm mbeans jmxtranJvm mbeans jmxtran
Jvm mbeans jmxtran
 
Git training
Git trainingGit training
Git training
 
Cluster mode and plf cluster
Cluster mode and plf clusterCluster mode and plf cluster
Cluster mode and plf cluster
 

Recently uploaded

"What does it really mean for your system to be available, or how to define w...
"What does it really mean for your system to be available, or how to define w..."What does it really mean for your system to be available, or how to define w...
"What does it really mean for your system to be available, or how to define w...
Fwdays
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
UiPathCommunity
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
christinelarrosa
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
Fwdays
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
DianaGray10
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Neo4j
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
christinelarrosa
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
Sease
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
Demystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through StorytellingDemystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through Storytelling
Enterprise Knowledge
 
High performance Serverless Java on AWS- GoTo Amsterdam 2024
High performance Serverless Java on AWS- GoTo Amsterdam 2024High performance Serverless Java on AWS- GoTo Amsterdam 2024
High performance Serverless Java on AWS- GoTo Amsterdam 2024
Vadym Kazulkin
 

Recently uploaded (20)

"What does it really mean for your system to be available, or how to define w...
"What does it really mean for your system to be available, or how to define w..."What does it really mean for your system to be available, or how to define w...
"What does it really mean for your system to be available, or how to define w...
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
Demystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through StorytellingDemystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through Storytelling
 
High performance Serverless Java on AWS- GoTo Amsterdam 2024
High performance Serverless Java on AWS- GoTo Amsterdam 2024High performance Serverless Java on AWS- GoTo Amsterdam 2024
High performance Serverless Java on AWS- GoTo Amsterdam 2024
 

Cluster mode and plf cluster

  • 1. Cluster Overview and PLF Cluster Basic notions, configuration, common errors and current status TRAN Trung Thanh, PLF/MQ March 2012
  • 2. Agenda (1) 1 Cluster Introduction - Cluster, What's it? - Why cluster? 2 Basic configuration - Basic cluster infrastructure with load balancing - Two-node PLF cluster 3 Advanced configuration - Hot spare server - Asymmetric load 4 PLF cluster current status - Story - Bugs relating to configuration - Bugs in the implementation www.exoplatform.com - Copyright 2012 eXo Platform 2
  • 3. Agenda (2) Conclusion and Perspective Q&A www.exoplatform.com - Copyright 2012 eXo Platform 3
  • 4. Agenda 1 Cluster Introduction - Cluster, What's it? - Why cluster? 2 Basic configuration - Basic cluster infrastructure with load balancing - Two-node PLF cluster 3 Advanced configuration - Hot spare server - Asymmetric load 4 PLF cluster current status - Story - Bugs relating to configuration - Bugs in the implementation www.exoplatform.com - Copyright 2012 eXo Platform 4
  • 5. Cluster, What is it? − High scalable and high available virtual server − Fully transparent to end user Basic Cluster Infrastructure www.exoplatform.com - Copyright 2012 eXo Platform 5
  • 6. Why cluster? (1) − Challenges − Increase dramatically the traffic of Internet ( annual rate > 100%) − Increase rapidly workload of servers − Enhance the availability of servers − Solutions − Upgrade the software/hardware of servers − Multi-server − Cluster − Grid − Cloud www.exoplatform.com - Copyright 2012 eXo Platform 6
  • 7. Why cluster? (2) − Cluster Notions − Scalability − Load Balancing − Load Balancing with an appliance − Load Balancing with a software/hardware combination  mod_proxy, mod_jk, mod_cluster − High Availability www.exoplatform.com - Copyright 2012 eXo Platform 7
  • 8. Agenda 1 Cluster Introduction - Cluster, What's it? - Why cluster? 2 Basic configuration - Basic cluster infrastructure with load balancing - Two-node PLF cluster 3 Advanced configuration - Hot spare server - Asymmetric load 4 PLF cluster current status - Story - Bugs relating to configuration - Bugs in the implementation www.exoplatform.com - Copyright 2012 eXo Platform 8
  • 9. Basic Cluster Infrastructure with load balancing www.exoplatform.com - Copyright 2012 eXo Platform 9
  • 10. Two-node PLF cluster − Load Balancer: mod_jk − Server cluster: 2 nodes ( 2 instances of PLF in same machine or in 2 distinguished machines) − Shared Storage: − NFS: indexing data, key for gadget − DB server: shared PLF data www.exoplatform.com - Copyright 2012 eXo Platform 10
  • 11. Mod_jk(1) − Connector used to connect the Tomcat Servlet Container with Web Servers − Use AJP (Apache Jserv Protocol) − Roles − Load the servlet container adapter library and initialize it (prior to serving requests) − Check and redirect requests to servlet to handle it www.exoplatform.com - Copyright 2012 eXo Platform 11
  • 12. Mod_jk(2) − mod_jk configuration step-by-step − Install apache − Add mod_jk modules to apache − Configure mod_jk parameters in apache configuration (httpd.conf) − Assign URL to apache − JkMount <URL prefix> <Worker name> − Configure worker properties: IP, port for AJP, hostname www.exoplatform.com - Copyright 2012 eXo Platform 12
  • 13. PLF cluster configuration(1) − Notes − Use profile all to deploy PLF server in cluster mode − PLF user external connector to connect DB − Need to add a external connector if necessary − Configure datasource − Config target $TOMCAT_HOME/conf/server.xml (tomcat server) $JBOSS_HOME/server/all/gatein-ds.xml (jboss server). − Parameters − User name/password, connector, database address www.exoplatform.com - Copyright 2012 eXo Platform 13
  • 14. PLF cluster configuration(2) − Configure NFS  Config target − $TOMCAT_HOME/conf/server.xml (tomcat server) − $JBOSS_HOME/server/all/deploy/jbossweb.sar/server.xml (jboss server) − Configure AJP route − Config target − $TOMCAT_HOME/gatein/conf/configuration.properties (tomcat server) − $JBOSS_HOME/server/all/conf/gatein/configuration.properties (jboss server) − Parameters − Add JVM Route to mark the name of server used by mod_jk www.exoplatform.com - Copyright 2012 eXo Platform 14
  • 15. PLF cluster configuration(3) − Activate PLF configuration  Tomcat − Switch jcr mode to cluster − Add profile cluster to eXo Profile − Add preferIPv4Stack parameter to route message for synchronized  Jboss − Switch jcr mode to cluster − Add profile cluster to eXo Profile − Add preferIPv4Stack parameter to route message for synchronized − Activate Cluster Single On www.exoplatform.com - Copyright 2012 eXo Platform 15
  • 16. PLF cluster configuration(4) − Start PLF  Tomcat ./start_eXo.sh  Jboss bin/run.sh -g MyClusterPartition -b IP_NODE -c all www.exoplatform.com - Copyright 2012 eXo Platform 16
  • 17. PLF cluster configuration(5) − Verify cluster  In console, when a new member is added or any downs INFO [MyClusterPartition] Dead members: 0 ([]) INFO [MyClusterPartition] New Members : 1 ([127.0.0.1:1099]) INFO [MyClusterPartition] All Members : 2 ([127.0.0.1:1199, 127.0.0.1:1099]) www.exoplatform.com - Copyright 2012 eXo Platform 17
  • 18. PLF cluster configuration(6) − Common errors in configuring and use cluster mode  Error on connection to DB server − Lack of connector in lib  Add connector − Wrong database address parameters  Verify database parameters − DB isn't set to accept remote access  Configure to accept remote access  Indexing data and database aren't matched − Remove indexing data and database if possible www.exoplatform.com - Copyright 2012 eXo Platform 18
  • 19. Agenda 1 Cluster Introduction - Cluster, What's it? - Why cluster? 2 Basic configuration - Basic cluster infrastructure with load balancing - Two-node PLF cluster 3 Advanced configuration - Hot spare server - Asymmetric load 4 PLF cluster current status - Story - Bugs relating to configuration - Bugs in the implementation www.exoplatform.com - Copyright 2012 eXo Platform 19
  • 20. Advanced Configuration(1) − Hot Spare server l Failover mechanism to provide reliability l A key component fails, the hot spare is switched into operation www.exoplatform.com - Copyright 2012 eXo Platform 20
  • 21. Advanced configuration(2) − Hot spare configuration − Set hot spare server for main server # Define preferred failover node for plfnode1 worker.plfnode1.redirect=plfnode2 − Deactivate hot spare server # Disable plfnode2 for all requests except failover worker.plfnode2.activation=disabled www.exoplatform.com - Copyright 2012 eXo Platform 21
  • 22. Advanced Configuration(3) •Asymmetric load l User to divide the workload among servers l Use lbfactor for each server worker.plfnode1.lbfactor=2 worker.plfnode2.lbfactor=8 www.exoplatform.com - Copyright 2012 eXo Platform 22
  • 23. Agenda 1 Cluster Introduction - Cluster, What's it? - Why cluster? 2 Basic configuration - Basic cluster infrastructure with load balancing - Two-node PLF cluster 3 Advanced configuration - Hot spare server - Asymmetric load 4 PLF cluster current status - Story - Bugs relating to configuration - Bugs in the implementation www.exoplatform.com - Copyright 2012 eXo Platform 23
  • 24. Story − Support cluster from PLF 3.0.x − EPP SP 5.1.x in cluster mode with RedHat − Lack of test and of evaluation in PLF 3.0.x − Support fully cluster mode from PLF 3.5.1 − FQA test campaign for cluster − Cluster configuration changes from PLF 3.0.x to 3.5.x − Use shared file-system for security token store (EXOGTN-237) − Reconfigure the parameters for cluster mode (PLF-630) www.exoplatform.com - Copyright 2012 eXo Platform 24
  • 25. Bugs relating to configuration − Too many warnings on console − Related issue: PLF-2652 − Description: Too many warning on console repeatedly − Workaround: Hide log − Tomcat: Add to conf/logging.properties org.jgroups.level = ERROR org.jgroups.handlers= java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler - Jboss: Add to server/all/conf/jboss-log4j.xml <category name="org.jgroups"> <priority value="ERROR"/> </category> www.exoplatform.com - Copyright 2012 eXo Platform 25
  • 26. Bugs relating to configuration(2) − Replication time out − Related issue: PLF-2752 − Description: Replication Timeout console on running PLF in cluster mode with multi instances − Workaround: Increase Replication Timeout www.exoplatform.com - Copyright 2012 eXo Platform 26
  • 27. Bugs in implementation(1) − Lack of Synchronized function − Related issue: ECMS-2324 − Description: Job runs only on a server → Another job try to access the resource using by another job − Suggested Solution: Synchronize functions. At one time, only a thread access a resource www.exoplatform.com - Copyright 2012 eXo Platform 27
  • 28. Bugs in implementation(2) − Cache problem − Related issue: ECMS-3337, SOC-1368, EXOGTN-978 − Description: To increase performance, the local cache is implemented. Cache among another nodes isn't synchronized → Cannot see update in other nodes or some objects are unavailable. − Suggested: Solution: Only use cache for necessary cases. Evict cache immediately if the changes have to take effect on cluster nodes. www.exoplatform.com - Copyright 2012 eXo Platform 28
  • 29. Bugs in implementation(3) − Problem with login session − Related issue: EXOGTN-943, PLF-2730 − Description: The user login session isn't well shared among servers in cluster. → Problem 1: Cannot relogin after a login failure → Problem 2: When a instance fails, all clients using it have to relogin. − Suggested Solution: Broadcast user login session among servers in cluster www.exoplatform.com - Copyright 2012 eXo Platform 29
  • 30. Agenda Conclusion and Perspective Q&A www.exoplatform.com - Copyright 2012 eXo Platform 30
  • 31. Conclusion and Perspective − Conclusion − PLF supports quite well in cluster mode − There are some problems in cluster mode − Perspective − Use mod_cluster for cluster configuration − Organize server in many groups. Among in a group, all server shared the same session www.exoplatform.com - Copyright 2012 eXo Platform 31
  • 32. References Admin guide for PLF 3.5 Install cluster mode by Nghi TQA http://www.mulesoft.com/tomcat-cluster http://msdn.microsoft.com/en-us/library/ff649250.aspx http://tldp.org/HOWTO/openMosix-HOWTO/x135.html http://www.linuxvirtualserver.org/whatis.html http://www.sql-server-performance.com/2002/clustering-intro/ http://docs.oracle.com/cd/E14049_01/doc.9101/e14046/jboss_cluster.htm#BGBGDCHD http://oddthesis.org/posts/2008-12-jboss-and-mod_cluster/ http://vinaytechs.blogspot.com/2009/11/clustering-in-jboss-application-server.html http://www.webopedia.com/TERM/C/clustering.html www.exoplatform.com - Copyright 2012 eXo Platform 32
  • 33. Q&A www.exoplatform.com - Copyright 2012 eXo Platform 33