-
1. Re: building a cluster
wdfink Jun 24, 2011 9:05 AM (in response to gjerich)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 Jun 24, 2011 9:20 AM (in response to wdfink)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
-
server.log.zip 1.3 KB
-
boot.log.zip 5.8 KB
-
-
3. Re: building a cluster
wdfink Jun 24, 2011 9:44 AM (in response to gjerich)1 of 1 people found this helpfulMmmh 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.
-
4. Re: building a cluster
gjerich Jun 27, 2011 7:36 AM (in response to wdfink)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
wdfink Jun 27, 2011 9:56 AM (in response to gjerich)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 Jun 28, 2011 4:11 AM (in response to wdfink)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
wdfink Jun 28, 2011 8:34 AM (in response to gjerich)1 of 1 people found this helpfulRecommended 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.
-
8. Re: building a cluster
gjerich Jun 29, 2011 8:54 AM (in response to wdfink)ok,
i proceed in this way:
- remove jmx console - delete common/deploy/jmx-console.war
- remove http invoker service - delete node/httpha-invoker.sar
- 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
wdfink Jun 30, 2011 2:06 AM (in response to gjerich)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
wdfink Jun 30, 2011 8:18 AM (in response to gjerich)I start to document the tuning and sliming of JBoss 6.x here:
-
11. Re: building a cluster
gjerich Jun 30, 2011 8:52 AM (in response to wdfink)i see and thank u for helping me.