Hey, Op 19 april 2012 19:42 heeft Mohammed Rashad <[email protected]> het volgende geschreven:
> My doubts. > 1. > How haproxy does load balancing for wt apps > > because in wt wiki i found this > > $ app.wt --session-id-prefix=wt1 --http-port 9090 ... > $ app.wt --session-id-prefix=wt2 --http-port 9091 ... > > here what i understood is we are running two instances of app.wt. How the > load balancing works here. There may be something with --session-id-prefix > but I dont know > also the two instances are on two ports but a user will access from browser > as mydomain.com:9090/app.wt or mydomain.com:9091/app.wt This is only part of the configuration. Haproxy is the server (running on port 80) which will be accessed by the user, e.g. http://mydomain.com/ Behind that you may deploy multiple wthttpd servers, each running on potentially a different server and/or different port number. > 2. Can we use apache hadoop with Wt because we are moving our application to > a cloud. so I also need to know can we use hadoop and haproxy in > conjunction with Wt Yes you can use apache hadoop -- as far as I understand there are no particular issues there ? > 3. How to use proxypass in haproxy for wt. so that i dont need to depend on > apache The basic configuration in http://redmine.webtoolkit.eu/projects/1/wiki/Using_HAProxy_as_a_reverse_proxy really shows exactly that. > 4. I am using monit for wthttpd applications. sometimes in firefox the > browser will keep on flashing/refershing and sometimes not > > here is my monitrc > > check process myapp.wt with pidfile /home/projects/myapp.wt.pid > start program = "/home/projects/wthttpd.sh start /home/projects/myapp.wt / > 8080" with timeout 3 seconds > stop program = "/home/projects/wthttpd.sh stop /home/projects/myapp.wt" > if failed host 10.2.32.19 port 8080 protocol http request /monittoken then > restart > > Is there any problem with my monitrc I'm not sure, does monit.log suggest that it is restarting your process ? Sometimes monit goes a bit wonky, for example because it misses the actual pid. Regards, koen ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
