Page 1 of 1

Processmaker Load balancing Issue

Posted: Wed Aug 24, 2011 6:16 am
by deepusundar
I am trying to run processmaker in 2 nodes using a loadbalancer IP configuration
(A single IP which will redirect the traffic to 2 nodes in a round robin fashion)
I have completed installing processmaker on 2 nodes separately with itsown set of files. Both instance points to a single mysql database server (clustered).

Is this set up sufficient to load balance the 2 nodes in all aspects?
I've read the page http://wiki.processmaker.com/index.php/ ... er_Backend on Pm wiki, and got confused with the concept of
NFS shared drive set up for some processmaker folders.

Do I need to do the same for my set up also ?
Is there any other simpler alternatives than NFS?

Any suggestions are greatly appreciated.


regards
Ds

Re: Processmaker Load balancing Issue

Posted: Thu Sep 15, 2011 5:57 am
by deepusundar
Hi,

An update for this post.

We have managed to install processmaker instances on 2 nodes and which are pointing to the same Database instance.
The 2 nodes are load balanced using BIG IP configuration (single IP which redirects the traffic to 2 nodes on Round Robin algorithm). So far it works well and faced no issues.

regards
Ds

Re: Processmaker Load balancing Issue

Posted: Thu Sep 15, 2011 6:55 pm
by amosbatto
Great. If you have any advice for others about this issue, please post it to help others.

Re: Processmaker Load balancing Issue

Posted: Sun Sep 25, 2011 3:58 am
by deepusundar
As I understand our logic was a bit different from what has been documented on the processmaker wiki for load balacning. Instaed of master/slave set up we had two entirely different set up pointing to a clustered db up using a BIG ip url.

This brings in a slightly additional overhead of updating both instances seperately for any chnages of files like emails templates, as in our case. But not a serious thing.

Will keep this thread updated,
regards, Ds

Re: Processmaker Load balancing Issue

Posted: Thu Nov 22, 2018 3:40 am
by milanshah
Hello,
I also want to setup processmaker 3.0 on two servers.
Can you help me with configuration, as the load balancing link given in above reply is not available.

Re: Processmaker Load balancing Issue

Posted: Thu Nov 22, 2018 7:37 pm
by amosbatto
milanshah wrote: Thu Nov 22, 2018 3:40 am Hello,
I also want to setup processmaker 3.0 on two servers.
Can you help me with configuration, as the load balancing link given in above reply is not available.
That wiki page has been moved to https://wiki.processmaker.com/3.2/Proce ... ver_Sizing

However, I don't think that page will help you much beyond the general theory. One way to do the load balancing is to set up an Apache reverse proxy, like this: https://linuxtechlab.com/use-apache-rev ... -balancer/

Re: Processmaker Load balancing Issue

Posted: Sat Nov 24, 2018 12:50 am
by programerboy
Hi,

How to config "workflow\engine\config\paths_installed.php" for shared folder in share path with two servers?

Thanks

Re: Processmaker Load balancing Issue

Posted: Mon Nov 26, 2018 9:11 pm
by amosbatto
programerboy wrote: Sat Nov 24, 2018 12:50 am How to config "workflow\engine\config\paths_installed.php" for shared folder in share path with two servers?
You can't have two paths in the paths_installed.php file. You can have multiple application servers where the ProcessMaker code is installed, but you can only have one database server and one NAS which holds the /shared/ directory.

If you need to have multiple NAS and multiple database servers, then I recommend separating your processes into different workspaces which are installed on different databases and NAS.

PS: If you only need read-only access to cases, you could set up mirroring to automatically copy databases and NAS files to another server. Nothing that you do on the slave server would get be copied back to the master server, so it should only be used for read-only access.

Re: Processmaker Load balancing Issue

Posted: Tue Nov 27, 2018 12:59 am
by programerboy
Hi,

Can you send an instance of the paths_installed.php file with two application servers and using a shared folder path?

Thanks

Re: Processmaker Load balancing Issue

Posted: Tue Nov 27, 2018 11:42 pm
by amosbatto
programerboy wrote:Can you send an instance of the paths_installed.php file with two application servers and using a shared folder path?
You don't need to edit the paths_installed.php file.

You need a reverse proxy server in Apache or Nginx that will direct the traffic to two application servers. Those two application servers will connect to one MySQL server and to one NAS holding the shared directory.
When installing ProcessMaker on those two application servers, there are options in the Install Wizard to set the location of the shared directory to a NAS in Step 2 and set the ip/domain name of the MySQL server in Step 4.

Make sure to use the grant command in MySQL to accept connections from your application servers. For example:
Code: Select all
grant all on *.* to 'root'@'pmserver1.example.com' identified by 'p@sSw0rD' with grant option;
grant all on *.* to 'root'@'pmserver2.example.com' identified by 'p@sSw0rD' with grant option;
See: https://wiki.processmaker.com/3.0/Proce ... figuration

Re: Processmaker Load balancing Issue

Posted: Wed Nov 28, 2018 12:47 am
by programerboy
Thank you for your complete reply

Re: Processmaker Load balancing Issue

Posted: Tue Jan 01, 2019 6:18 pm
by Rezwan
Hi I successfully configured process maker in two nodes via F5 load balancer with sticky session enabled. Every things is working fine for Web application. But process-maker mobile app is not working.

In the android app it authenticating successfully. After that when "Setting up Processmaker ", one toast message come as Unauthorized.

Anyone ever face such type of problem . Or anyone have some idea about this. I urgently need help on this regard.

Re: Processmaker Load balancing Issue

Posted: Thu Jan 03, 2019 11:14 pm
by amosbatto
Rezwan wrote: Tue Jan 01, 2019 6:18 pm Hi I successfully configured process maker in two nodes via F5 load balancer with sticky session enabled. Every things is working fine for Web application. But process-maker mobile app is not working.

In the android app it authenticating successfully. After that when "Setting up Processmaker ", one toast message come as Unauthorized.

Anyone ever face such type of problem . Or anyone have some idea about this. I urgently need help on this regard.
Rezwan,
It sounds like the ProcessMaker mobile app isn't accessing the ProcessMaker server the same way as the web application. You might want to file a bug report about it at http://bugs.processmaker.com

For now, I recommend that you use the Mobile User Experience, instead of the ProcessMaker mobile app.