How to configure Wildfly 9 to failover HTTP sessions

Matt Fellows

I'm really struggling to configure Wildfly 9 to cluster/failover its sessions...

I keep reading that wildfly in standalone-ha mode will automatically discover peers and automatically share sessions, but it's clearly not working for me.

I have setup 3 AWS EC2 servers which all have the same configuration. They all run the same versions of everything and have the same webapp .war file deployed to each of them. This webapp works fine, I can log in to the app which maintains a simple session variable to verify that I am logged in. I've launched each server with standalone-ha.xml configuration files but logging into one doesn't allow be to access the session in any of the others.

I've tried all the things I can think of, but don't know how to diagnose the issue as I don't know how the servers identify each other.

I've manually deployed the war file on each server but placing the file into .../standalone/deployments/

Each has a fully open firewall...

Oh - I set the muticast address on the command line to 230.0.0.4 (That number came from a guide, and I have literally no understanding of it) and each is bound (-b) to the internal IP of the server...

Any help appreciated...

Federico Sierra

First you must consider that in AWS EC2 multicast traffic is not allowed and thus MPING will not work.

See http://developer.jboss.org/wiki/JGroupsS3PING

An example how to implement S3Ping http://aws.typepad.com/awsaktuell/2013/10/elastic-jboss-as-7-clustering-in-aws-using-ec2-s3-elb-and-chef.html

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Configure Http Proxy for Wildfly 8.1.0

From Dev

How to configure Jackson in Wildfly?

From Dev

Configure STOMP over websocket in Wildfly 9

From Dev

How to configure wildfly to use EclipseLink?

From Dev

How to configure datasource in wildfly 10?

From Dev

How to configure express and passport with multiple sessions

From Dev

How to configure wildfly to use https with ClientBuilder in resteasy?

From Dev

how to configure ssl in wildfly 8.2.0 server?

From Dev

How to configure EJB WebServices in WildFly (in ear)

From Dev

Wildfly 9 - How do I exclude Jackson

From Dev

Wildfly 9 - How do I exclude Jackson

From Dev

Weblogic http session failover

From Dev

HTTP2/SPDY configuration in wildfly9

From Dev

HTTP2/SPDY configuration in wildfly9

From Dev

How to configure Jersey (javax.ws.rs.*) to reuse ssl sessions

From Dev

How should one configure Slick to persist tables between sessions?

From Dev

How to configure kubernetes to allow for long running interactive sessions?

From Dev

Apatche HTTP server - how to setup proxy to WildFly

From Dev

How to configure WildFly 8.2.0 logging to show JUST the application on debug level

From Dev

How to configure Wildfly to serve static content (like images)?

From Dev

How to configure Oracle AQ library as a Wildfly 8 module?

From Dev

Wildfly: How to configure worker threads in IO subsystem dynamically

From Dev

How to configure WildFly 10 logging subsystem from management console for an application?

From Dev

How to configure wildfly 9.0.2 to use EclipseLink under netbeans 8.1

From Dev

afnetworking with iOS 9 sessions

From Dev

how to failover Redis with Django

From Dev

how to configure webstorm 9 to highlight current file?

From Dev

How to load resource files in jboss war - wildfly9.xV

From Dev

How do I enable on-the-fly compilation of JSPs in Wildfly 9?

Related Related

  1. 1

    Configure Http Proxy for Wildfly 8.1.0

  2. 2

    How to configure Jackson in Wildfly?

  3. 3

    Configure STOMP over websocket in Wildfly 9

  4. 4

    How to configure wildfly to use EclipseLink?

  5. 5

    How to configure datasource in wildfly 10?

  6. 6

    How to configure express and passport with multiple sessions

  7. 7

    How to configure wildfly to use https with ClientBuilder in resteasy?

  8. 8

    how to configure ssl in wildfly 8.2.0 server?

  9. 9

    How to configure EJB WebServices in WildFly (in ear)

  10. 10

    Wildfly 9 - How do I exclude Jackson

  11. 11

    Wildfly 9 - How do I exclude Jackson

  12. 12

    Weblogic http session failover

  13. 13

    HTTP2/SPDY configuration in wildfly9

  14. 14

    HTTP2/SPDY configuration in wildfly9

  15. 15

    How to configure Jersey (javax.ws.rs.*) to reuse ssl sessions

  16. 16

    How should one configure Slick to persist tables between sessions?

  17. 17

    How to configure kubernetes to allow for long running interactive sessions?

  18. 18

    Apatche HTTP server - how to setup proxy to WildFly

  19. 19

    How to configure WildFly 8.2.0 logging to show JUST the application on debug level

  20. 20

    How to configure Wildfly to serve static content (like images)?

  21. 21

    How to configure Oracle AQ library as a Wildfly 8 module?

  22. 22

    Wildfly: How to configure worker threads in IO subsystem dynamically

  23. 23

    How to configure WildFly 10 logging subsystem from management console for an application?

  24. 24

    How to configure wildfly 9.0.2 to use EclipseLink under netbeans 8.1

  25. 25

    afnetworking with iOS 9 sessions

  26. 26

    how to failover Redis with Django

  27. 27

    how to configure webstorm 9 to highlight current file?

  28. 28

    How to load resource files in jboss war - wildfly9.xV

  29. 29

    How do I enable on-the-fly compilation of JSPs in Wildfly 9?

HotTag

Archive