-
1. Re: How to unregister slave node from the cluster using "JBoss Application Server management API" ?
rhusar Feb 1, 2013 6:54 AM (in response to hitesysony87)1 of 1 people found this helpfulUsing Jboss as7.0.2.Final we have created cluster of four Node N1,N2,N3,N4.
You might consider updating to 7.1.3.Final.
Here N1 is master Node.
How is it master node?
Due to some restriction we are not able to use "Web Managment Interface".
That is a valid requirement, you just want to do this programatically so not via web.
If using "Command Line Interface" we can unregister slave Node N2 from cluster then it is also acceptable.
All the CLI does is invoke the management API, so the result is the same. You just choose which way is more convenient for you (but feeding something to a script seems much easier to me).
What will happen to "HttpSession" and "Infinisan" cache which are hold on slave Node N2 ?
Will they replicated to another node or just destroy ?
What will happen is that with distributed cache, all the copies of the data is replicated on all nodes, so it will pretty much just shutdown. In distributed cache, some of the data will be passed around before shuttind down. In either case, no data is lost of course.
Is there any way to Unregister Node N2 from cluster using "JBoss Application Server management API"?
I dont remember precisely, but i dont think there is a management operation for that in your version. What i suggest though, is that the running webapplication uses that cache. Removing the cache and keeping the appliation running does not seem to be a valid state. Can you just undeploy the running app? This will in return remove the node in the cluster if there is no other service running on that node.
-
2. Re: How to unregister slave node from the cluster using "JBoss Application Server management API" ?
hitesysony87 Feb 5, 2013 12:05 AM (in response to rhusar)"You might consider updating to 7.1.3.Final"
Due to the Resource limitation(RAM and Processor) , it is not accpetable to use Jboss as7's "Full Profile" version.
So we have decide to use only Jboss As7's "Web Profile Only" ( Jboss As7.0.2 Web Profile).
In our application there is no need for EJB container , we just looking for replacement of Tomcat container which have basic functionality which help us to create cluster of 3 to 4 Node.
On http://www.jboss.org/jbossas/downloads/ there is last version 7.1.1.Final.
"How is it master node?"
In cluster of (N1 +N2 +N3 +N4 ) Nodes N1 is master Node means it work as Domain Controller.
For maintenance or any othere miscellaneous task it is required to unregister the slave Node from cluster.
To undeploy running app is not acceptable.
Using "Web managment Interface", by making slave node's server-three(other-server-group) availability "stop" we can get somthing like "Unregister" slave node from cluster.
Same result we want to get using "Jboss Application Server Managment API".
-
3. Re: How to unregister slave node from the cluster using "JBoss Application Server management API" ?
pferraro Feb 4, 2013 11:14 AM (in response to hitesysony87)hitesh yadav wrote:
"You might consider updating to 7.1.3.Final"
On http://www.jboss.org/jbossas/downloads/ there is last version 7.1.1.Final.
https://github.com/jbossas/jboss-as/archive/7.1.3.Final.zip
Unzip the archive, then run "mvn install" from within the root directory of the distribution.
"How is it master node?"
In cluster of (N1 +N2 +N3 +N4 ) Nodes N1 is master Node means it work as Domain Controller.
We don't use the term "master" in this way - we use the term "domain controller". This has nothing to do with clustering - but how your servers are managed.
I think what you're really asking is "How to shutdown a server within a server group via the command line", correct?
This is described here:
Stopping a server will remove it from any clusters to which it is associated.
-
4. Re: How to unregister slave node from the cluster using "JBoss Application Server management API" ?
hitesysony87 Feb 5, 2013 4:41 AM (in response to pferraro)In last reply i had made mistake
Due to the Resource limitation(RAM and Processor) , it is "not" accpetable to use Jboss as7's "Full Profile" version.
The link provided in last reply is very help full for me.
We are trying to make same command using "Jboss Application Managment API".
Is it possible to achive same thing using Jconsole+JMX+MBeanServer or "JMXServiceURL"?
Is there any Mbean in Jboss as7.0.2Final "Web Profile" which represent "Server-Three" of slave Node ?
If there is Mbean which represent "ServerThree" of Slave node then we can easily manage it by using "JMXServiceURL", simple java application......
I have try to connect using Jconsole+JMX but i do't find any Mbean which are related with Domain Controll......
-
5. Re: How to unregister slave node from the cluster using "JBoss Application Server management API" ?
pferraro Feb 5, 2013 9:27 AM (in response to hitesysony87)The short answer is - no, you can't do this via JMX. Why would you want to use JMX instead of the AS7 management API?