On 2/15/06, John C. Bland II <[EMAIL PROTECTED]> wrote:
> Good answer. So essentially Nagios will calmly stop the processing of your
> cf app? By stop I mean it will set a flag somwehere (app scope, etc) which
> tells your site to degrade?

You could if you want to, but I actually don't do that. Before you
gasp in horror, I want to reiterate that sometimes you just have
larger problems than anything ColdFusion can solve for you. In my
case, I'll get alerted every 15 seconds by 3 different geographic
locations that are pinging our site that something's up with the
database or with ColdFusion. I don't use the Probes feature built in
to ColdFusion (Enterprise, anyway...never used Standard) because it's
a purely CF solution. Well if CF is messed up somehow, then having
that probe does me no good. I would submit that you should have at
least one non-CF way of checking your site for a problem.

>
> Sounds interesting but not sure if I would nix my cftry/catches. Let's look
> at another scenario.

Definitely not advocating the abandonment of try/catches in the
slightest. I use them a lot around snippets of logic. I never use it
around checking for the existence of a variable though.

>
> You have a cfquery that executes a sproc (stored procedure) on your db. A
> change is made to the sproc that unknowingly affects this lonely cfquery
> tucked in a corner somewhere. How do you manage this potential error from
> happening? Sometimes things happen and people forget to make certain updates
> to necessary templates. It just happens. How does your app degrade here?

You might hate this answer, but that's precisely what a staging
environment and utilities like rsync and/or ANT are for. You're right,
there's a human element to issues that might arise. But no amount of
try/catch blocks or structKeyExists() checks can account for that. I
go back to a comment I made above. ColdFusion can't solve every single
issue that might arise with a web site. It would be convenient, and it
would make my life a lot easier sometimes, but it can't...and it
shouldn't. If you had to put in conditional checks to gracefully
handle every potential change in your application, then you're
fighting a losing battle, plain and simple. If you don't use utilities
like rsync or ANT, then definitely do some research into them. I can't
tell you how many times they've save my butt from this very problem
you outlined.

>
> BTW, I guess I meant Dave but said Brad in my other post.

No worries.

Regards,
Dave.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232375
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to