Difficulties Configuring Cluster with JBoss AS 7.1.1 Final
dfcastro1 Jan 16, 2019 3:41 PMI made the configuration of my JBoss AS 7.1.1Final until de LoadBalance notificatiin part.
I created a config named lb.conf inside /opt/apache/conf/sites and I include it on httpd.conf
After I start apache I can access the mod cluster manager at http://MYIP:8888/mod_cluster_manage
This is my lb.conf file
LoadModule proxy_module modules/mod_proxy.so
LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so
<IfModule manager_module>
Listen myip:8888
ManagerBalancerName npnws-balancer
<VirtualHost myip:8888>
KeepAliveTimeout 300
MaxKeepAliveRequests 0
ServerAdvertise on http://myip:8888
AdvertiseFrequency 5
#AdvertiseSecurityKey secret
AdvertiseGroup 224.0.1.105:23364
EnableMCPMReceive
<Location />
Order deny,allow
Deny from all
Allow from all
</Location>
<Location /mod_cluster_manager>
SetHandler mod_cluster-manager
Order deny,allow
Deny from all
Allow from all
AllowDisplay On
</Location>
</VirtualHost>
</IfModule>
This is the excerpt of modcluster at domain.xml associated with my full-ha profile
<subsystem xmlns="urn:jboss:domain:modcluster:1.0">
<mod-cluster-config advertise-socket="modcluster" proxy-list="MYIP:8888" balancer="npn-webservice">
<dynamic-load-provider history="10" decay="2">
<load-metric type="cpu" weight="2" capacity="1"/>
<load-metric type="mem" weight="1" capacity="512"/>
<load-metric type="heap" weight="1" capacity="512"/>
<load-metric type="sessions" weight="1" capacity="512"/>
<load-metric type="requests" weight="1" capacity="512"/>
<load-metric type="send-traffic" weight="1" capacity="512"/>
<load-metric type="receive-traffic" weight="1" capacity="512"/>
<load-metric type="busyness" weight="1" capacity="512"/>
<load-metric type="connection-pool" weight="1" capacity="512"/>
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>
I tried with this link https://developer.jboss.org/thread/234842 but the problem is that the "urn:jboss:domain:modcluster:1.0" does not support the attribute connector in mod-cluster-config tag.
If I connect using CLI and check the configuration I get
[domain@localhost:9999 /] cd /profile=full-ha/subsystem=modcluster/mod-cluster-config
[domain@localhost:9999 mod-cluster-config] ls
configuration
[domain@localhost:9999 mod-cluster-config] cd
--help configuration
[domain@localhost:9999 mod-cluster-config] cd configuration
[domain@localhost:9999 mod-cluster-config=configuration] ls
ssl
advertise=true
advertise-socket=modcluster
auto-enable-contexts=true
balancer=npn-webservice
dynamic-load-provider={"history" => "10","decay" => "2","load-metric" => [{"type" => "cpu","weight" => "2","capacity" => "1"},{"type" => "mem","weight" => "1","capacity" => "512"},{"type" => "heap","weight" => "1","capacity" => "512"},{"type" => "sessions","weight" => "1","capacity" => "512"},{"type" => "requests","weight" => "1","capacity" => "512"},{"type" => "send-traffic","weight" => "1","capacity" => "512"},{"type" => "receive-traffic","weight" => "1","capacity" => "512"},{"type" => "busyness","weight" => "1","capacity" => "512"},{"type" => "connection-pool","weight" => "1","capacity" => "512"}]}
excluded-contexts=ROOT,invoker,jbossws,juddi,console
flush-packets=false
flush-wait=-1
max-attempts=1
node-timeout=-1
ping=10
proxy-list=MYIP:8888
proxy-url=/
smax=-1
socket-timeout=20
sticky-session=true
sticky-session-force=false
sticky-session-remove=false
stop-context-timeout=10
ttl=-1
worker-timeout=-1
I also tried this article here but got nothing.
My Two node clusters are at MYIP:8180 AND MYIP:8280
Why I am unable to see the announces of the running nodes?
I keep receiving messages like that
[Server:npnws-01] 18:02:05,140 ERROR [org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Error [null: null: {4}] sending command INFO to proxy MYIP/MYIP:8888, configuration will be reset