<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright The WildFly Authors
  ~ SPDX-License-Identifier: Apache-2.0
  -->

<feature-group-spec name="undertow-load-balancer" xmlns="urn:jboss:galleon:feature-group:1.0">
    <feature-group name="undertow-base"/>
    <feature spec="subsystem.undertow">
        <feature spec="subsystem.undertow.server">
            <param name="server" value="default-server" />
            <feature spec="subsystem.undertow.server.http-listener">
                <param name="http-listener" value="management"/>
                <param name="socket-binding" value="mcmp-management"/>
                <param name="enable-http2" value="true"/>
                <unset param="worker"/>
                <unset param="buffer-pool"/>
            </feature>
            <feature spec="subsystem.undertow.server.host">
                <param name="host" value="default-host" />
                <param name="alias" value="[localhost]"/>
                <feature spec="subsystem.undertow.server.host.filter-ref">
                    <param name="filter-ref" value="load-balancer"/>
                </feature>
            </feature>
        </feature>
        <feature spec="subsystem.undertow.configuration.filter">
            <feature spec="subsystem.undertow.configuration.filter.mod-cluster">
                <param name="mod-cluster" value="load-balancer"/>
                <param name="management-socket-binding" value="mcmp-management"/>
                <param name="advertise-socket-binding" value="modcluster"/>
                <param name="enable-http2" value="true"/>
                <param name="max-retries" value="3"/>
                <unset param="worker"/>
            </feature>
        </feature>
    </feature>
</feature-group-spec>
