News for hackers. Stuff that matters.
Re:Build a Web 2.0-like application in haskell, with HAppS. by delano on Sunday December 14, 2008 @01:26PM (#397511)
A detailed error message is not a good introduction for an application framework: "Server error: templates: changeWorkingDirectory: does not exist (No such file or directory)"
Re:Build a Web 2.0-like application in haskell, with HAppS. by joe_the_user on Sunday December 14, 2008 @03:26PM (#397612)
Yeah, I'll add load-testing to my to do in releasing web frameworks.

But how ever solid one might think one's app is, there's no reason not to make one's front page static or at least have apache cache it.

Re:Build a Web 2.0-like application in haskell, with HAppS. by delano on Sunday December 14, 2008 @03:46PM (#397637)
This story is going from bad to worse. The site was up again and I made it to page 5 looking for code examples (I was pretty interested to see some Haskell). The closest I found was a shell call for find. Page 6, "Server Error". The site is down again.

So yeah, load test and do whatever it takes to ensure you're ready for traffic.

Re:Build a Web 2.0-like application in haskell, with HAppS. by tphyahoo on Sunday December 14, 2008 @04:01PM (#397648)
This will be the first time I'm doing load testing so gimme some time to get it right :)
Re:Build a Web 2.0-like application in haskell, with HAppS. by delano on Sunday December 14, 2008 @05:19PM (#397706)
Ah okay. Try Tsung, the Grinder, or JMeter if you have extra machines. For less heavy-duty testing try httperf. Siege and Apache bench are okay for basic testing. And always use a separate machine to generate load.
Re:Build a Web 2.0-like application in haskell, with HAppS. by tphyahoo on Monday December 15, 2008 @10:09AM (#398382)
I think I finally fixed this problem.

http://groups.google.com/group/HAppS/browse_thread/thread/cf...

Basically it was a lazy io issue in haskell, fix was using a strict version of readFile for templates.

Hope it stays up now!

Re:Build a Web 2.0-like application in haskell, with HAppS. by tphyahoo on Sunday December 14, 2008 @03:47PM (#397638)
I have to agree, and I am going to do my best to resolve this issue.

Meanwhile I restarted the server and it's running again.