I have recently found out that mod_cluster offers more capabilities than mod_proxy or similiar modules. Hence there are dynamic deployment and new metrics available for the load balancing I have a question if there is a possibility to write own load balancing algorithm instead of using predefined ones. If so where to implement it?
Yes its possible. You need following steps:
AbstractLoadMetric
module.xml
to include the custom load metric JARSee sample example here: https://github.com/Karm/mod_cluster-custom-load-metric
NOTE: WildFly 9 will bring improvement in this mechanism to avoid editing of module.xml
. See https://issues.jboss.org/browse/WFLY-372