Developer Interview (#DI 11) - Stuart Douglas (@stuartwdouglas) about WildFly9 and Undertow

Markus Eisele · 7K views · 2015 · 21:41

Open on YouTube

Cloud, DevOps & reliabilityWeb developmentinterviewdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering or asking about load-balancing WildFly with Undertow, since the Undertow developer shows the setup live without Apache httpd or mod_cluster.

Recommended by 1 people across 1 different months, 2015 to 2017.

What it is

A 2015 developer interview by Markus Eisele with Stuart Douglas, the lead developer of Undertow, about the new features in WildFly 9 and the Undertow web server. It includes a live demo of using Undertow as a built-in load balancer for WildFly.

What people said

Recommends kwart · 2015-07 · Stack Overflow · on “Wildfly 9 Load-Balancing”

I suggest to use Undertow as a loadbalancer for WildFly 9 . Undertow is a new web server in WildFly. The advantage is, you don't need to play with native components (Apache httpd for instance) and their (usually not so simple) configuration. Read about the loadbalancer configuration in WildFly documentation [LINK] . Or just watch following video [this video] , where Stuart Douglas (Undertow developer) explains how it works and makes live demo.

Cites Humberto Ferreira Da Luz · 2016-03 · Stack Overflow · on “Wildfly 10 not load balancing to other host”

I followed these instructions [LINK] from Stuart Douglas video [this video] to enable Wildfly to balance request without the need of apache + mod_cluster, feature that is available since Wildfly 9. It worked like in the video. But then, instead of adding the 3rd backend server to the same host, I created another host and added the backend3 server to it, which was also added to the backend-servers group. So I had the following layout: Server one (host controller and load balancer): Backend1 Backend2 Server two (slave): Backend3 I started the 2nd host as a slave and I could access the clustering-demo using its ip and the backend3 port. Besides, the host controller was able to register the slave: [H

Cites yntelectual · 2017-05 · Stack Overflow · on “If I am not using some modules,Is it mandatory to have all modules in wildfly10.1.0 standalone.xml?”

Wildfly uses modular architecture, using submodules and services as feature blocks. Some are started eagerly i.e. even if your app does not need them, some are lazy i.e. they will no be initialized unless some deployment requests them(You can observe it in the server log after your server boots up). The startup process is asynchronous and hence should be relatively fast on any reasonable hardware. That being said, nothing stops you from creating your own profile or distribution with just the submodules you need(you can for example remove everything but servlet subsystem if that is the only api you need, or remove all javaee subsystems and just use undertow as loadbalancer [this video] ). However

Cites matleg · 2017-09 · Stack Overflow · on “Wildfly load-balancing across multiple machines”

I am trying to configure a wildfly server with a load balancer for learning purposes. Here's what I got: Three VMs, only accessible by their IPs. One is 152.238.224.58 - my load balancer An other one is 152.238.224.59 - my first backend server The last one is 152.238.224.60 - my second backend server I find the wildfly documentation to be rather poor, but after watching Stuart Douglas's explanation [this video] on how the load balancer works, I currently have my first VM running a cluster of servers. Load balancing works, but everything is on the same VM (the first one). What I'd rather have is the load balancer acting as a proxy for the two backend servers. I've tried the method described on the