-
15. Re: clustering, first approach
bertoz84 May 30, 2011 2:31 AM (in response to wdfink)here files from node1 and node2.
-
server.log.zip 74.2 KB
-
boot.log.zip 35.1 KB
-
server.log.zip 61.0 KB
-
boot.log.zip 35.1 KB
-
-
16. Re: clustering, first approach
wdfink May 30, 2011 3:12 AM (in response to bertoz84)The first error for both server.log files is that the 8083 port is in use.
It looks like that you can not start just one of the instances.
Let rethink a bit.
What if you start a fresh unzipped JBoss?
-
17. Re: clustering, first approach
bertoz84 May 30, 2011 3:18 AM (in response to wdfink)that IS a new fresh JBOSS 5.1; the only thing is that i copied the /all server and renamed it as node1 and node2 ( as the guide says ). I tryed to launch nodes as a cluster in the 3 different modes ( always the guide, cap.1 quickstart )
-
18. Re: clustering, first approach
wdfink May 30, 2011 3:30 AM (in response to bertoz84)But it looks like that the first can not connect to port 8083 ?!
What if you start only one instance could you check it and provid your start command?
-
19. Re: clustering, first approach
bertoz84 May 30, 2011 3:47 AM (in response to wdfink)run -c all
here the log
-
server.log.zip 4.5 KB
-
boot.log.zip 35.0 KB
-
-
20. Re: clustering, first approach
bertoz84 May 30, 2011 4:09 AM (in response to wdfink)this is the output from:
run -c all -b 127.0.0.1 -Djboss.messaging.ServerPeerID=1
run -c node1 -b 127.0.0.2 -Djboss.messaging.ServerPeerID=2
it starts good, the cluter is created but suddenly an error jumps out in the second node
-
server.log.zip 8.9 KB
-
boot.log.zip 35.1 KB
-
server.log.zip 6.7 KB
-
boot.log.zip 35.1 KB
-
-
21. Re: clustering, first approach
wdfink May 30, 2011 7:02 AM (in response to bertoz84)Looks that 127.0.0.2 is not a good IP to start a cluster.
The 0.1 address starts, but the 0.2 have problems.
You should set 'virtual' IP addresses for your network interface (see advanced properties of the IP interface dialog) and use this.
-
22. Re: clustering, first approach
bertoz84 May 30, 2011 9:55 AM (in response to wdfink)thank you!
i'll try this in few days
p.s. can you explain better how to do this? I have read that 127.0.0.0/8 is a pool of IPs used for the localhost. It seems that my Win7 grants only 127.0.0.1. Moreover the guide ( and all the world... ) uses IPs like 192.168.1.xxx as IPs for JBOSS nodes in a cluster. I can't set a single IP that differs from 127.0.0.1. In the end it seems that the problem is not JBOSS butmy VM o pc and all those network stuff!
-
23. Re: clustering, first approach
wdfink May 30, 2011 11:09 AM (in response to bertoz84)Yes indeed, the network is the problem
One example ...
If you run the JBoss instance direct on your Windows.
The PC is in a local network (e.g. behind a router or in a company environment) Windows will have a IP address like 192.168.x.y (reserved for internal use).
The IP is automatic provided by a DNS (Router or dedicated server), you will see it in the network properties of your machine
You should set a virtual IP address for each JBoss, can be done by the advanced dialog of your network interface (from the last step).
After that you are able to start JBoss with -b for each virtual IP address (do not use the physical), the ports might unchanged.
-
24. Re: clustering, first approach
bertoz84 May 30, 2011 1:32 PM (in response to wdfink)is this the procedure http://www.itsyourip.com/networking/how-to-add-multiple-ip-address-in-windows-2000xp2003/ ?
i'm using win7 and:
- what network do i need to choose ( see the attached picture )? LAN?
- what protocol ( IPv4 or IPv6 )?
- doing this could i have connection problems?
thank you very much!!!
-
Cattura.PNG 38.3 KB
-
-
25. Re: clustering, first approach
wdfink May 30, 2011 1:54 PM (in response to bertoz84)The how-to is the way.
If you start the JBoss instances direct on your windows the LAN interface is the correct one.
If you remember the current setting you can set the correct gateway (if automatic) in your manuell configuration. IF you have problems you can switch back to the working configuration.
-
26. Re: clustering, first approach
ronsen Jun 6, 2011 9:34 AM (in response to wdfink)Usually if you satrt 2 instances of JBoss on the same machine and you want to start them in a cluster, just use different ports or create a loopback adapter with another ip adress under windows. JBoss automatically takes localhost/127.0.0.1 if you dont bind it to a different one (-b).
The first approach would be to just start the server instances with:
-run.bat -c yourconfig -Djboss.service.binding.set=ports-01 -Djboss.messaging.ServerPeerID=1
for the 2nd instance just use ...ports-02 and ...ServerPeerID=2. These sets are defined for JBoss AS 6 in /server/all/conf/bindingservice.beans/META-IND/bindings-jboss-beans.xml
_____________________________________________________
If you still plan to use different ip addresses with -b, add a loopback adapter to windows by:
-> System properties -> Hardware -> Select Add new Hardware -> Manual installation -> Networkadapter -> Microsoft + Microsoft Loopback-adapter
and then add an ip address of your choice under tcp/ip properties for the corresponding just created network adapter.
_____________________________________________________
But actually the above mentioned configuration should do it and should also solve the broadcast issue.
One remark: if you start different clustered JBoss instances under windows on a single machine, duplicate the all config and rename it to a unique configname (no spaces) and use it for the -c yourConfig start-up option to avoid problems.
I hope that helps.
-
27. Re: clustering, first approach
fivalo Feb 27, 2012 5:55 PM (in response to bertoz84)Hi
I have read all the posts and I couldn´t find the answer for the question:
for Jboss6.X Do I need to configure the DefaultDS in a RDBMS like SQL Server, MySql, Oracle and not to use the Hipersonyc? the reason arte the TimerService for the EJB´s?
Thanks whether anyone can answer
bye
-
28. Re: clustering, first approach
wdfink Feb 28, 2012 1:47 AM (in response to fivalo)Yes, the EJB_TIMER tables are persistent in Hypersonic by default.
-
29. Re: clustering, first approach
fivalo Mar 2, 2012 5:18 PM (in response to wdfink)Hi Thanks for your answer
But, what does the EJB_TIMER save?
Bye