jboss-dockerfiles / business-central

MIT License
44 stars 65 forks source link

Does jbpm-server-full support High Availability ? #75

Closed hohuyphuong closed 2 years ago

hohuyphuong commented 2 years ago

Hello Michael,

I setup jbpm-server-full follow guide https://github.com/jboss-dockerfiles/business-central/blob/main/server/README.md To ensure high availability for jbpm-server-full, How to deploy jbpm-server-full to supports failover or load balancing features?

Thank you.

mbiarnes commented 2 years ago

Hi hohuyphuong,

I would say the load balancing in a docker environment is a docker issue. Look here: https://www.nginx.com/blog/docker-swarm-load-balancing-nginx-plus/ https://avinetworks.com/glossary/container-load-balancing/

Personally I don't have experience with this.

hohuyphuong commented 2 years ago

Hello Michael,

Thanks for your response, skipping the load balancing issue.

In your example, jbpm-server-full is a WildFly instance and run as a "standalone server". It is perfectly possible to launch multiple standalone server instances and have them form an HA cluster. Can you update Dockerfile for the case start multiple standalone server with full-ha profile. ? Example: $ ./standalone.sh -c standalone-full-ha.xml I read the information about WildFly HA from: http://www.mastertheboss.com/jbossas/jboss-cluster/managing-high-availability-with-wildfly/

WildFly-HA
mbiarnes commented 2 years ago

https://github.com/jboss-dockerfiles/business-central/pull/76

hohuyphuong commented 2 years ago

Hello @mbiarnes

I checkout latest code and start jbpm-server-full without any errors, but I cannot login with users and role default (wbadmin/wbadmin). Did I miss something? Please have a look:

log-start-jbpm login-failed
mbiarnes commented 2 years ago

krisv/krisv

hohuyphuong commented 2 years ago

Hello @mbiarnes Start jbpm-server-full container with standalone-full-ha.xml I tried list users: wbadmin, krisv, john,sales-rep,katy, jack but the result is FAILED login.

lis-users-example

I try custom Dockerfile, start without standalone-full-ha.xml, and login again with the list users, the results is SUCCESS.

exec ./standalone.sh -b $JBOSS_BIND_ADDRESS $EXTRA_OPTS -Dorg.kie.server.location=$KIE_SERVER_LOCATION -Dorg.kie.server.id=$KIE_SERVER_ID -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true

I guess the problem when switch mode from ./standalone.sh to ./standalone.sh -c standalone-full-ha.xml What do you think?

Thanks,

mbiarnes commented 2 years ago

could be. Please look at the doc of the docker images. I think you should add something to the standalone-full-ha.xml. Compare this one and the standalone-full.xml.