How to control Wildfly Undertow load balancer
ievgenii24 Feb 15, 2019 1:21 PMHi,
does anybody know how can i control wildfly undertow loadbalancer?
Here is my load balancer configuration:
<subsystem xmlns="urn:jboss:domain:undertow:4.0" instance-id="balancerNode">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" secure="true" security-realm="ssl-security-realm" enabled-protocols="TLSv1.2" enable-http2="true"/>
<http-listener name="management" socket-binding="mcmp-management" enable-http2="true"/>
<host name="default-host" alias="localhost">
<filter-ref name="load-balancer"/>
</host>
</server>
<servlet-container name="default"/>
<filters>
<mod-cluster name="load-balancer" management-socket-binding="mcmp-management" advertise-socket-binding="modcluster" enable-http2="true" max-retries="3" security-key="lbtestapp"/>
</filters>
</subsystem>
I'm using domain cluster configuration, and it seems it works, as i can see from jboss domain.log that nodes registered and unregistered..
With CLI command i can get only to:
ls /profile=balancer-profile/subsystem=undertow/configuration=filter/mod-cluster=load-balancer/balancer - but it shows nothing
Commands like:
ls /profile=balancer-profile/subsystem=undertow/configuration=filter/mod-cluster=load-balancer/balancer=mycluster/node=masterOne - does not work (it can't find resource with "mycluster" name)
How can i give the name for my undertow load balancer?
And how can i remove/disable nodes from load balancer?
Also i did setup security-key="lbtestapp" on load balancer node and on slave node, but load balancer registers nodes which does not have security-key configured (i've tryed to change advertise-socket - no success, it still picking up not needed nodes..)
Is there any help which describe what i can do with "/profile=balancer-profile/subsystem=undertow/configuration=filter/mod-cluster=load-balancer/balancer" object?
Thanks.