On 19 December 2011 19:37, Aparajita Fishman <[email protected]> wrote: >> Do you know of any Active4D sites that are doing load balancing ? > > I know Alexander Heintz did at one point. > > One other option that might help is to give more processing priority to > Active4D. I'm looking at previous posts on this subject and you said that the > web server is given low priority. Currently Active4D yields control to 4D > after every line of code. I could change this to be configurable, so that it > would only yield after N lines of code, which would effectively give more CPU > to Active4D and less to the database engine. So you would probably want to do > this only on the Clients. > > Regards, > > Aparajita
I can certainly fill you in as to the load-balancing on that site as I wrote it. The simple version was a Head Apache server with mod_rewrite set to read from a map file that ultimately redirected the user to www1, www2 etc. ( I did have an experimental version that used a cookie but it never got used) with a second map file that mapped wwwx to internal ip and then proxied the request to the specific client machine. Now there was a set of scripts that I wrote that did auto registration on startup and removal of servers if an error was detected so the entire setup was entirely self managing and only live servers were proxied to. There may be more modern ways to implement this nowadays but if you want further details of how I implemented it then drop me a mail off list and I can fill you in. Also, at the time we were using ITK's web server and I spent a long time optimising the parameters but the biggest speed up of all came when I added HTTP 1.1 pipelining to the ITK based web server, I seem to remember it wasn't too difficult and we didn't noticed any adverse effects at all. Michael Bond _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://vasudev.aparajitaworld.com/archive/active4d-dev/
