Skip to content

Commit 5c16f1f

Browse files
committed
Clustering Demo
1 parent cc77ac1 commit 5c16f1f

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

images/wildfly_cluster3.png

43.3 KB
Loading

readme.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,18 @@ To see if everything worked out the way we wanted it, open http://dockerhost/mod
491491
image::images/wildfly_cluster2.png[]
492492

493493

494+
Now we need the first WildFly instance:
495+
496+
[source, text]
497+
----
498+
docker run -d --name server1 --link db:db --link modcluster:modcluster <INSTRUCTOR_IP>:5000/ticketmonster-pgsql-wildfly
499+
----
500+
501+
You do already know the command syntax. Beside linking the db, we also link the modcluster container. This should be done very quickly and if you now revisit link:http://dockerhost/mod_cluster_manager/[the mod_cluster_manager] website in your browser, you can see, that the first server was registered to the loadbalancer:
502+
503+
.Loadbalancer registered first WildFly instance.
504+
image::images/wildfly_cluster3.png[]
505+
494506

495507

496508

0 commit comments

Comments
 (0)