moses
11-16-2000, 12:23 PM
This will be a mini rant, feel free to ignore me, flame me, whatever. I speak for myself, not FCI.
In the past week, I've had to spend probably upwards of 20 hours fighting with CJ scripts on shared servers. These were all scripts I'd never heard of. It seems that people think if they know a little perl/php/mysql, they can write a CJ script and it will scale to as many hits as they want.
As an admin, the compiled scripts can frustrate me because I am very limited in terms of what I can do to help users when there's problems. However, I've *never* had a problem with UCJ/BlindIO/Scorpion slowing down a server.
There are a few exceptions -- I know of one php/mysql site that we host that got a ton of traffic, and never slowed the server down at all. Others, however, do things like 15 SQL queries for *each hit*, which is obviously going to be a nightmare when they start getting lots of hits.
Are there programming resource boards where CJ (and general cgi) authors can get hints from the pros? I see the same mistakes made all the time, and when a site starts getting hammered, it affects everyone on the server and we often have no choice but to shut down the site, which no one wants to do.
I'm not saying that people shouldn't be free to write their own code and experiment, but if you don't test the site with 1000s of hits/hour, and in the middle of the night your site starts overloading the server, there's really not much any admin can do.
Tim/Dan/Krister: Thanks. You guys have put a lot of work and testing into your scripts, and it shows.
There are lots of other smaller CJ scripts, and many of them work perfectly for TGPs and such, but don't just expect them to be as fast when your hits go up by 10X. If you've got a script and you're not sure how it's going to handle lots of hits, talk to an admin, they may be able to set up some sort of test environment. You may need to pay to get it done, but that'll be cheaper than your site going down in the middle of the night.
I'm not flaming other CJ script authors, I'm saying that just because it works great on small sites doesn't mean it will work on big sites.
I know other admins read AWI. How do you guys deal with script sites run amok? RLimits in apache are fairly ugly, and don't work correctly sometimes.
Whew, sorry for the long post. Suggestions/comments/flames?
Moses
In the past week, I've had to spend probably upwards of 20 hours fighting with CJ scripts on shared servers. These were all scripts I'd never heard of. It seems that people think if they know a little perl/php/mysql, they can write a CJ script and it will scale to as many hits as they want.
As an admin, the compiled scripts can frustrate me because I am very limited in terms of what I can do to help users when there's problems. However, I've *never* had a problem with UCJ/BlindIO/Scorpion slowing down a server.
There are a few exceptions -- I know of one php/mysql site that we host that got a ton of traffic, and never slowed the server down at all. Others, however, do things like 15 SQL queries for *each hit*, which is obviously going to be a nightmare when they start getting lots of hits.
Are there programming resource boards where CJ (and general cgi) authors can get hints from the pros? I see the same mistakes made all the time, and when a site starts getting hammered, it affects everyone on the server and we often have no choice but to shut down the site, which no one wants to do.
I'm not saying that people shouldn't be free to write their own code and experiment, but if you don't test the site with 1000s of hits/hour, and in the middle of the night your site starts overloading the server, there's really not much any admin can do.
Tim/Dan/Krister: Thanks. You guys have put a lot of work and testing into your scripts, and it shows.
There are lots of other smaller CJ scripts, and many of them work perfectly for TGPs and such, but don't just expect them to be as fast when your hits go up by 10X. If you've got a script and you're not sure how it's going to handle lots of hits, talk to an admin, they may be able to set up some sort of test environment. You may need to pay to get it done, but that'll be cheaper than your site going down in the middle of the night.
I'm not flaming other CJ script authors, I'm saying that just because it works great on small sites doesn't mean it will work on big sites.
I know other admins read AWI. How do you guys deal with script sites run amok? RLimits in apache are fairly ugly, and don't work correctly sometimes.
Whew, sorry for the long post. Suggestions/comments/flames?
Moses