jboss - Custom load balancing algorithm with mod_cluster -
i have found out mod_cluster offers more capabilities mod_proxy or similiar modules. hence there dynamic deployment , new metrics available load balancing have question if there possibility write own load balancing algorithm instead of using predefined ones. if implement it?
yes possible. need following steps:
- create custom load metric extending
abstractloadmetric
- package custom load metric jar
- copy jar modcluster module
- update
module.xml
include custom load metric jar - update standalone/domain config xml use custom load metric
see sample example here: https://github.com/karm/mod_cluster-custom-load-metric
note: wildfly 9 bring improvement in mechanism avoid editing of module.xml
. see https://issues.jboss.org/browse/wfly-372
Comments
Post a Comment