11 Replies Latest reply on Jun 30, 2011 8:52 AM by gjerich

    building a cluster

    gjerich Newbie

      hi to all,

      Im attend to build a smoll cluster server from scratch. so now Im stocked, cause i dont want to run in all mode, but build it from default version. so my question is how to enable clustering which use only tcp protocol and use minimal source(?)

       

      all reguards;

       

      gasper

        • 1. Re: building a cluster
          Wolf-Dieter Fink Master

          I suppose you can copy the 'cluster' directory of the all configuration.

          It depends to what you want whether you should use minimal and extend or use all and remove unneeded.

           

          This wiki will help : http://http://community.jboss.org/wiki/JBoss5xTuningSlimming

           

          If you use JBoss6 most of it will be the same.

          • 2. Re: building a cluster
            gjerich Newbie

            hello wolf-dieter,

            i try, but than get some start errors aha mj jboss version is 6.0.0-final.

            copy "cluster" directory from all to default..

             

            thx;

             

             

            gasper

            • 3. Re: building a cluster
              Wolf-Dieter Fink Master

              Mmmh I did not work a lot with JBoss6.

              I recommend to start with a copy of 'all' configuration and remove the unneeded services step by step (without deploying your app).

              So you are able to see what is necessary.

              1 of 1 people found this helpful
              • 4. Re: building a cluster
                gjerich Newbie

                hello Wolf-Dieter;

                now i setup cluster in all mode... every looks fine. for information i used for cluster definition ServerPeerID, service.binding.set ports; booth running on localhost cause it is only test setup aka. preproduction. so next step was that i turned off HDscanners in selected way (works fine for me:)):

                 

                <property name="attachmentStoreRoot">${jboss.server.data.dir}/attachments</property>

                <property name="scanPeriod"><inject bean="ScanPeriod" /></property>

                </bean>

                <!-- hdscanner off-->

                <bean name="ScanPeriod" class="org.jboss.profileservice.profile.metadata.plugin.ScanPeriod">

                <property name="disabled">true</property>

                </bean>.

                 

                and remove Farm... here i have some problems, cause i found one link: http://community.jboss.org/wiki/RemoveFarmService;

                which is slightly  diferent from my default/basic server setup (file hierarchy). hmm for example i cant find

                all/deploy/deploy.last/farm-service.xml file... but i did find and remove: node/deploy/cluster/farm-deployment-jboss-beans.xml file(?) and node/farm directory. so far everything seem to work fine. So if i understand correctly i need follow protocols for clustering: HornetQ, JGroups and HAPartition... (main protocols) can u please give me some clue, what can i safely remove to achieve a final goal and get better performance. i would keep cluster benefits like faulttolerance etc.

                 

                am i on right way to reduce configuration or just waste my/your time?.

                 

                thx for help

                &

                have a nice day

                 

                gasper

                • 5. Re: building a cluster
                  Wolf-Dieter Fink Master

                  hdcanner can be dropped if you remove hdscanner-jboss-beans.xml

                  For farming you should remove deploy/cluster/farm-deployment-jboss-beans.xml

                   

                  If you remove services there are two reasons

                  - saving resources (memory and ports)

                  - security

                  So it depends whether you say 'waste time'

                   

                  Most benefit is to remove

                  - JMS (hornetQ)

                  - WebServices

                  - EJB3 support (!! used by other parties)

                  - EJB2 support

                  - BeanShell (security)

                  Other things like different invoker Quarz timer-service require less resources. (see wiki link above, JB5 should fit in most cases)

                   

                  One thing will require a bit is the JDBC Close-check.

                  To remove see http://community.jboss.org/wiki/WhatDoesTheMessageDoYourOwnHousekeepingMean http://community.jboss.org/wiki/CanJBossTellMeWhenIDontCloseAConnection

                  the checks might be expensive.

                   

                  BTW do not use the HSQLDB in production remove hsqldb-ds.xml and the libraries, you must change the dependend services to a different database if you not remove such also.

                  • 6. Re: building a cluster
                    gjerich Newbie

                    thx

                     

                    for those services you recomeded i must dig a litle diper. i will look in that direction. meaning i dont know (am not shure) yet what sort services my application and cluster need to be solid and stable. work as it should

                    so the raw scenario is: aplication use 3 diferent oracle db and hsqldb is reserved only for jboss (for now). so i was thinking to do this at last if will be needed! to get some better perfomance. i am look in a way to open local postgresql db. u know step by step

                     

                    Most benefit is to remove

                    - JMS (hornetQ)

                    - WebServices

                    - EJB3 support (!! used by other parties)

                    - EJB2 support

                    - BeanShell (security)

                    Other things like different invoker Quarz timer-service require less resources.

                     

                    ps: in case if i turn off hornetq, than i lose comunicatin betwen nodes (messaging)? hmm that can be problem in future administration - fine tuning. setup correctly load balancer, cache etc. so my next step is to turn off web services.

                     

                     

                     

                    gasper

                    • 7. Re: building a cluster
                      Wolf-Dieter Fink Master

                      Recommended services for the JBoss instances will have dependencies and fail if you remove a 'wrong' service.

                      Frontends like EJB?, WebServices and BeanShell depend on you application requirements.

                      Only if you let e.g. AdminConsole active you need such services.

                       

                      If you turn of hornetQ you loose JMS not the internal 'messaging' this is implemented with JGroups.

                      1 of 1 people found this helpful
                      • 8. Re: building a cluster
                        gjerich Newbie

                        ok,

                        i proceed in this way:

                        1. remove jmx console - delete common/deploy/jmx-console.war
                        2. remove http invoker service - delete node/httpha-invoker.sar
                        3. for mail service - delete node/deploy/mail-service.xml & deploy/mail-ra.rar

                        http://community.jboss.org/wiki/JBoss5xTuningSlimming

                        so far so good

                        no obvious diference running server in this stage

                        +

                        hmm i couldnt figure out, how to turn off hornetQ. i try to remove whole dir. but errors  appearanced...

                         

                        g

                        • 9. Re: building a cluster
                          Wolf-Dieter Fink Master

                          If you try to remove hornetQ delete the deploy/hornetq directory and the deployers/hornetq-deployers-jboss-beans.xml file.

                          • 10. Re: building a cluster
                            Wolf-Dieter Fink Master

                            I start to document the tuning and sliming of JBoss 6.x here:

                            http://community.jboss.org/wiki/JBoss6xTuningSlimming

                            • 11. Re: building a cluster
                              gjerich Newbie

                                i see and thank u for helping me.