Re: Help! Too much tracffic and too little time!
On 7/05/2011 15:35, Maureen wrote: Perhaps you are right about 2K8 being faster and better, but changing from an OS you know to one you don't know with a launch commitment a week away doesn't seem like a very good idea to me. it isn't and I was recommending that, just commenting on a comment, I hope I didn't mislead :-) It is already the weekend here in Oz so I also assumed that the sites have to be up in 2 days, not 9, hence my suggetion for settings for a 32 bit 2K3 JVM. To the OP: Go with what you have got. -- Yours, Kym Kovan mbcomms.net.au ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344325 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Replace cfhttp with jquery.post()
That's a great idea, and I have everything working to do that now. I get the query back, serializeJSON the results and I can see them in an alert box. BUT. For the life of me I cannot figure out how to access those elements with jQuery. This should probably be in a new thread, and I do see alot of threads where people are frustrated with this. I have been pulling my hair out for hours. jsonvar = serializeJSON(qry) tostring(jsonvar, 'jsvar') I really just want to do jsvar.field1 or jsvar.field2. That doesn't work. I have tried variations of $.each and everything I can find out there. No luck. How can I get to those values with jquery? --- David Mineer Jr - The critical ingredient is getting off your butt and doing something. It's as simple as that. A lot of people have ideas, but there are few who decide to do something about them now. Not tomorrow. Not next week. But today. The true entrepreneur is a doer. On Fri, May 6, 2011 at 9:54 PM, andy matthews li...@commadelimited.comwrote: Simplest thing to do would be to put the cfhttp call into a cfc, then call that from jQuery. andy -Original Message- From: David Mineer Jr [mailto:min...@gmail.com] Sent: Friday, May 06, 2011 7:53 PM To: cf-talk Subject: Re: Replace cfhttp with jquery.post() K, hold up. This has something to do with the ip address of the calling function. This program can only be called from the local server i.e. localhost. cfhttp must call from localhost and so it works. jQuery.post() must call from the client ip address and therefore won't ever work. So I better look more into this and see how I am going to handle this. This is an internal app and that service only responds to internal requests. --- David Mineer Jr - The critical ingredient is getting off your butt and doing something. It's as simple as that. A lot of people have ideas, but there are few who decide to do something about them now. Not tomorrow. Not next week. But today. The true entrepreneur is a doer. On Fri, May 6, 2011 at 5:55 PM, David Mineer Jr min...@gmail.com wrote: Nice catch. I also had address2 instead of addressline2. I changed those and still nothing. I get the code pasted above for the post info when I click on the link, but the response info is blank. That's what has me flustered. I get nothing back. The link turns red and I can alert that there was an error, just don't know how to return the error that is sent back (assuming it is getting back to me. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344326 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Help! Too much tracffic and too little time!
Rob, I've written a few blog posts on the settings in the JVM and provide some very loose guidelines as to what to tune and set. Each server and application is unique and usually requires additional tuning beyond what the posts walk you through, but these will give you a good starting point and basic understanding. http://www.trunkful.com/index.cfm/JVM-Tuning Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On May 6, 2011, at 8:57 PM, Rob Rhodes wrote: Hello. I have been a lurker on this board for a while, and never thought I was qualified enough to offer opinions. Well, that has not changed. But now I could really use some advice on how to gear up quickly to handle a ton of traffic on a cf9 site. I can't really go into the details, but I have just inherited a cf9/SQL server site that gets well over a million page views per day. It was previously running on multiple servers using shared array. It's an impossible task, but I have to have this up and running this weekend. So, I don't have any time or money for complex solutions. I just need to this all to stay up long enough to figure out a proper plan. Until then, here is my working plan. Please tell me what you think. I have 4 cf9 standard licences, and four servers running win2k3 x86 (fairly fast processors and 4gb ram each). I have a fifth win2k3 server x64 running SQL Server 2005. These servetrs are recent installs and do not have any other sites on them. My plan is to load the site on all four servers, all pointing to the same database server (it appears much of the queries in the site are cached) I would then set up round-robin DNS to do the poor-mans load distribution. Most importantly I am hoping some of the gurus here might have some jvm tuning suggestions to help handle the load. Ok let me have it. Is there any hope, or am I just hopelessly screwed? Rob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344327 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Replace cfhttp with jquery.post()
Are you sending it back to the browser as Json? I would be more inclined to do that, and remove the serialise json from the JavaScript. Then you will be able to do what you are wanting to do. Regards, Andrew Scott http://www.andyscott.id.au/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344328 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Form Field Validation
If startVal, endVal, and lengthVal represent your values in JS [like var startVal = parseInt(myForm.start.value); ], then the following should work: if (startVal % 3 != 0) { alert(Start must be a multiple of 3.); return false; } else if (endVal % 3 != 0) { alert(End must be a multiple of 3.); return false; } else if (endVal startVal) { alert(End must be larger than Start.); return false; } else if (endVal lengthVal) { alert(End cannot be larger than Length.); return false; } return true; You could put that into a function and call the function on the form onsubmit(return myFunction()). On 5/6/2011 5:51 PM, Rick Colman wrote: I have the following: length: xxxstart [ ] end [ ] I would like to test for the following conditions: * must be an integer * start and end must be evenly divisible by 3 * end cannot exceed length CFINPUT works for type test, but not sure how to generate the javascript validation that would be required. Rick. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344329 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Help! Too much tracffic and too little time!
uh flak below should read folks. On Sat, May 7, 2011 at 9:43 AM, Robert Rhodes rrhode...@gmail.com wrote: Well you folks certainly have me thinking. I could set up one of the machine as a Win2K8 server and see how it does. If it's humming along just fine, then I can steer more traffic to it. With the speed increase you flak are talking about here, do you think a million page loads per day can be handled by one Win2K8 server? (with a backup in place of course) I understand the basics about how to set up a site in 2K8, but what about lockdown? Can anyone point me to a guide somewhere? The servers are behind a firewall with only port 443 and port 80 open. Nothing else. On Sat, May 7, 2011 at 1:24 AM, Andrew Scott andr...@andyscott.id.auwrote: Yeah it does take a little getting used to the new UI changes, but the functionality and operations are still the same. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Kym Kovan [mailto:dev-li...@mbcomms.net.au] Sent: Saturday, 7 May 2011 1:46 PM To: cf-talk Subject: Re: Help! Too much tracffic and too little time! We found 2K8 R2 so good that we are now trashing our oldest machines and moving to 2K8 wherever possible, the advantage is so great and it is not quirky, it is much easier than 2K3 once you get used to the new IIS, etc. I'd even stick my head out and say 2K8 R2 is a good operating system... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344330 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Help! Too much tracffic and too little time!
Well you folks certainly have me thinking. I could set up one of the machine as a Win2K8 server and see how it does. If it's humming along just fine, then I can steer more traffic to it. With the speed increase you flak are talking about here, do you think a million page loads per day can be handled by one Win2K8 server? (with a backup in place of course) I understand the basics about how to set up a site in 2K8, but what about lockdown? Can anyone point me to a guide somewhere? The servers are behind a firewall with only port 443 and port 80 open. Nothing else. On Sat, May 7, 2011 at 1:24 AM, Andrew Scott andr...@andyscott.id.auwrote: Yeah it does take a little getting used to the new UI changes, but the functionality and operations are still the same. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Kym Kovan [mailto:dev-li...@mbcomms.net.au] Sent: Saturday, 7 May 2011 1:46 PM To: cf-talk Subject: Re: Help! Too much tracffic and too little time! We found 2K8 R2 so good that we are now trashing our oldest machines and moving to 2K8 wherever possible, the advantage is so great and it is not quirky, it is much easier than 2K3 once you get used to the new IIS, etc. I'd even stick my head out and say 2K8 R2 is a good operating system... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344331 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Help! Too much tracffic and too little time!
Here you go http://lmgtfy.com/?q=windows+2008+lockdown If you get 1 million hits per day and you should really do some load testing as that is the only way will tell what it can handle, it is going to be more about what CF can handle rather than windows 2008. -Original Message- From: Robert Rhodes [mailto:rrhode...@gmail.com] Sent: 07 May 2011 14:44 To: cf-talk Subject: Re: Help! Too much tracffic and too little time! Well you folks certainly have me thinking. I could set up one of the machine as a Win2K8 server and see how it does. If it's humming along just fine, then I can steer more traffic to it. With the speed increase you flak are talking about here, do you think a million page loads per day can be handled by one Win2K8 server? (with a backup in place of course) I understand the basics about how to set up a site in 2K8, but what about lockdown? Can anyone point me to a guide somewhere? The servers are behind a firewall with only port 443 and port 80 open. Nothing else. On Sat, May 7, 2011 at 1:24 AM, Andrew Scott andr...@andyscott.id.auwrote: Yeah it does take a little getting used to the new UI changes, but the functionality and operations are still the same. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Kym Kovan [mailto:dev-li...@mbcomms.net.au] Sent: Saturday, 7 May 2011 1:46 PM To: cf-talk Subject: Re: Help! Too much tracffic and too little time! We found 2K8 R2 so good that we are now trashing our oldest machines and moving to 2K8 wherever possible, the advantage is so great and it is not quirky, it is much easier than 2K3 once you get used to the new IIS, etc. I'd even stick my head out and say 2K8 R2 is a good operating system... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344332 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
PayPal pay button variables
If anyone has experience programming one of these, would you contact me offline at la...@basketbasics.com ? Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344333 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Help! Too much tracffic and too little time!
In addition to other comments, it might be worth spending a minute reading up on Squid: http://www.squid-cache.org/ Caching some or all of the site could mean you can do the entire thing with just 2 CF machines. In my experience, the bottleneck for Squid is not the OS or Squid itself, but the capacity of the network cards in the machine. It can handle ALOT of traffic. The learning curve required to implement this may or may not be within your time window. -Cameron On Fri, May 6, 2011 at 9:57 PM, Rob Rhodes rrhode...@gmail.com wrote: Hello. I have been a lurker on this board for a while, and never thought I was qualified enough to offer opinions. Well, that has not changed. But now I could really use some advice on how to gear up quickly to handle a ton of traffic on a cf9 site. I can't really go into the details, but I have just inherited a cf9/SQL server site that gets well over a million page views per day. It was previously running on multiple servers using shared array. It's an impossible task, but I have to have this up and running this weekend. So, I don't have any time or money for complex solutions. I just need to this all to stay up long enough to figure out a proper plan. Until then, here is my working plan. Please tell me what you think. I have 4 cf9 standard licences, and four servers running win2k3 x86 (fairly fast processors and 4gb ram each). I have a fifth win2k3 server x64 running SQL Server 2005. These servetrs are recent installs and do not have any other sites on them. My plan is to load the site on all four servers, all pointing to the same database server (it appears much of the queries in the site are cached) I would then set up round-robin DNS to do the poor-mans load distribution. Most importantly I am hoping some of the gurus here might have some jvm tuning suggestions to help handle the load. Ok let me have it. Is there any hope, or am I just hopelessly screwed? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344334 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF form puzzler
I'm leaving out some code here (for other fields): cfform action=Register_Step_2_Response.cfm method=post cfinput type=text name=ProjTitleUrl size=20 maxlength=50 /cfform In the response file: cfparam name=FORM.ProjTitleUrl default= INSERT INTO Positions ( ProjTitleURL ) VALUES ( '#FORM.ProjTitleUrl#'); /cfquery The other fields (I omitted here) in the form and in the insert query all work fine but this one keeps doing screwy things. ProjTitleUrl is a memo field (why I set it up that way I don't recall, but I don't think that should make any difference over it being a text field; and why I put a maxlength in with a memo field I can't remember). I keep seeing html charcters in the field and the latest entry has 300-400 lines of MS Word html code and, at the very end, the true entry Pierce amp; Madison Co.s I imagine Co.s is just a typo by the user, but I'll bet money they used not amp; when they input this. This is running on a CF8 server and I haven't seen anything like this on any other page I have there. I just made a similar entry myself and it comes out fine. Anyone have a clue why all this extraneous stuff is getting inserted? Could it be caused by a particular browser? Larry Stephens steph...@indiana.edu ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344335 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Replace cfhttp with jquery.post()
It sounds like you're mixing up server side and client side (spank me if I'm wrong). Your server side will be taking some request and spitting out plain text json. It doesn't know, or need to know, of jquery. An example plain cfm: !--- some.cfm --- cfset myData = getMyData() /!--- some logic --- cfsetting enablecfoutputonly=true showdebugoutput=false / cfcontent reset=true type=application/json / cfoutput#serializeJson( myData )#/cfoutputcfabort / An ajax request from the client could call the 'some.cfm' page and when the response comes back the client can interpret that json response. So in jQuery: $(document).ready(function(){ var url = 'some.cfm', // relative mydata = {address1 : '68 N 4000 W', address2 : '' ,city : 'Cedar City', state : 'UT'}; $.post(url, mydata, function(resp){ console.dir( resp ); // if you're using firebug or the Chrome console, check the console tab for output. console.dir is like a js version of cfdump }, 'json'); // this tells jquery that it is expecting a json string back - your resp variable should now be a parsed object of your json response }); HTH Dominic On 7 May 2011 07:53, David Mineer Jr min...@gmail.com wrote: That's a great idea, and I have everything working to do that now. I get the query back, serializeJSON the results and I can see them in an alert box. BUT. For the life of me I cannot figure out how to access those elements with jQuery. This should probably be in a new thread, and I do see alot of threads where people are frustrated with this. I have been pulling my hair out for hours. jsonvar = serializeJSON(qry) tostring(jsonvar, 'jsvar') I really just want to do jsvar.field1 or jsvar.field2. That doesn't work. I have tried variations of $.each and everything I can find out there. No luck. How can I get to those values with jquery? --- David Mineer Jr - The critical ingredient is getting off your butt and doing something. It's as simple as that. A lot of people have ideas, but there are few who decide to do something about them now. Not tomorrow. Not next week. But today. The true entrepreneur is a doer. On Fri, May 6, 2011 at 9:54 PM, andy matthews li...@commadelimited.comwrote: Simplest thing to do would be to put the cfhttp call into a cfc, then call that from jQuery. andy -Original Message- From: David Mineer Jr [mailto:min...@gmail.com] Sent: Friday, May 06, 2011 7:53 PM To: cf-talk Subject: Re: Replace cfhttp with jquery.post() K, hold up. This has something to do with the ip address of the calling function. This program can only be called from the local server i.e. localhost. cfhttp must call from localhost and so it works. jQuery.post() must call from the client ip address and therefore won't ever work. So I better look more into this and see how I am going to handle this. This is an internal app and that service only responds to internal requests. --- David Mineer Jr - The critical ingredient is getting off your butt and doing something. It's as simple as that. A lot of people have ideas, but there are few who decide to do something about them now. Not tomorrow. Not next week. But today. The true entrepreneur is a doer. On Fri, May 6, 2011 at 5:55 PM, David Mineer Jr min...@gmail.com wrote: Nice catch. I also had address2 instead of addressline2. I changed those and still nothing. I get the code pasted above for the post info when I click on the link, but the response info is blank. That's what has me flustered. I get nothing back. The link turns red and I can alert that there was an error, just don't know how to return the error that is sent back (assuming it is getting back to me. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344336 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF form puzzler
how is the content getting entered, is it a WYSIWYG editor ? If so then your users are probably copying and pasting content from WORD and thus you get al the word markup. You need to do some auto cleanup of the content to avoid this, CKEDITOR has this built in. On Sat, May 7, 2011 at 8:42 PM, Stephens, Larry V steph...@indiana.eduwrote: I'm leaving out some code here (for other fields): cfform action=Register_Step_2_Response.cfm method=post cfinput type=text name=ProjTitleUrl size=20 maxlength=50 /cfform In the response file: cfparam name=FORM.ProjTitleUrl default= INSERT INTO Positions ( ProjTitleURL ) VALUES ( '#FORM.ProjTitleUrl#'); /cfquery The other fields (I omitted here) in the form and in the insert query all work fine but this one keeps doing screwy things. ProjTitleUrl is a memo field (why I set it up that way I don't recall, but I don't think that should make any difference over it being a text field; and why I put a maxlength in with a memo field I can't remember). I keep seeing html charcters in the field and the latest entry has 300-400 lines of MS Word html code and, at the very end, the true entry Pierce amp; Madison Co.s I imagine Co.s is just a typo by the user, but I'll bet money they used not amp; when they input this. This is running on a CF8 server and I haven't seen anything like this on any other page I have there. I just made a similar entry myself and it comes out fine. Anyone have a clue why all this extraneous stuff is getting inserted? Could it be caused by a particular browser? Larry Stephens steph...@indiana.edu ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344337 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Help! Too much tracffic and too little time!
Thanks. I'll look into that. Being a Windows guy, I am not sure how well Squid and I would get along. :) On Sat, May 7, 2011 at 3:23 PM, Cameron Childress camer...@gmail.comwrote: In addition to other comments, it might be worth spending a minute reading up on Squid: http://www.squid-cache.org/ Caching some or all of the site could mean you can do the entire thing with just 2 CF machines. In my experience, the bottleneck for Squid is not the OS or Squid itself, but the capacity of the network cards in the machine. It can handle ALOT of traffic. The learning curve required to implement this may or may not be within your time window. -Cameron On Fri, May 6, 2011 at 9:57 PM, Rob Rhodes rrhode...@gmail.com wrote: Hello. I have been a lurker on this board for a while, and never thought I was qualified enough to offer opinions. Well, that has not changed. But now I could really use some advice on how to gear up quickly to handle a ton of traffic on a cf9 site. I can't really go into the details, but I have just inherited a cf9/SQL server site that gets well over a million page views per day. It was previously running on multiple servers using shared array. It's an impossible task, but I have to have this up and running this weekend. So, I don't have any time or money for complex solutions. I just need to this all to stay up long enough to figure out a proper plan. Until then, here is my working plan. Please tell me what you think. I have 4 cf9 standard licences, and four servers running win2k3 x86 (fairly fast processors and 4gb ram each). I have a fifth win2k3 server x64 running SQL Server 2005. These servetrs are recent installs and do not have any other sites on them. My plan is to load the site on all four servers, all pointing to the same database server (it appears much of the queries in the site are cached) I would then set up round-robin DNS to do the poor-mans load distribution. Most importantly I am hoping some of the gurus here might have some jvm tuning suggestions to help handle the load. Ok let me have it. Is there any hope, or am I just hopelessly screwed? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344338 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Help! Too much tracffic and too little time!
Robert, 1 million hits a day on a single CF8 or CF9 box of sufficient hardware is fairly easy to handle. I would want some more redundancy. Having a hot fail over for the CF box and the SQL server would be a good idea. Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On May 7, 2011, at 4:44 PM, Robert Rhodes wrote: Thanks. I'll look into that. Being a Windows guy, I am not sure how well Squid and I would get along. :) On Sat, May 7, 2011 at 3:23 PM, Cameron Childress camer...@gmail.comwrote: In addition to other comments, it might be worth spending a minute reading up on Squid: http://www.squid-cache.org/ Caching some or all of the site could mean you can do the entire thing with just 2 CF machines. In my experience, the bottleneck for Squid is not the OS or Squid itself, but the capacity of the network cards in the machine. It can handle ALOT of traffic. The learning curve required to implement this may or may not be within your time window. -Cameron On Fri, May 6, 2011 at 9:57 PM, Rob Rhodes rrhode...@gmail.com wrote: Hello. I have been a lurker on this board for a while, and never thought I was qualified enough to offer opinions. Well, that has not changed. But now I could really use some advice on how to gear up quickly to handle a ton of traffic on a cf9 site. I can't really go into the details, but I have just inherited a cf9/SQL server site that gets well over a million page views per day. It was previously running on multiple servers using shared array. It's an impossible task, but I have to have this up and running this weekend. So, I don't have any time or money for complex solutions. I just need to this all to stay up long enough to figure out a proper plan. Until then, here is my working plan. Please tell me what you think. I have 4 cf9 standard licences, and four servers running win2k3 x86 (fairly fast processors and 4gb ram each). I have a fifth win2k3 server x64 running SQL Server 2005. These servetrs are recent installs and do not have any other sites on them. My plan is to load the site on all four servers, all pointing to the same database server (it appears much of the queries in the site are cached) I would then set up round-robin DNS to do the poor-mans load distribution. Most importantly I am hoping some of the gurus here might have some jvm tuning suggestions to help handle the load. Ok let me have it. Is there any hope, or am I just hopelessly screwed? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344339 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Help! Too much tracffic and too little time!
Well, I am thinking I will try one or two win2K8 servers. Unfortunately, I can't order any licenses until Monday. And by then it will be too late. Does anyone know if the evaluation version of Win2K* R2 in MS TechNet will work temporarily as web server in evaluation mode (no license applied)? That is: will a W2K* R2 server in evaluation mode allow all these connections? I know we are suopposed to use them in production, but I really would order the licenses before I installed them and would apply the licenses on those servers as soon as they came in. I am hoping it is a minor sin. :) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344340 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Help! Too much tracffic and too little time!
Robert, Get a fairly standard set of JVM args and duplicate them on all 4. Since you are running 32bit you will be limited to a 1.3 gig heap size (max 1280m would be a good starting space with a 256 meg perm size). Since you don't have time to do anything else I'd say go for it and see what happens. The only thing that worries me is sessions... are you confident that your round robin scheme will work and there's no problem with user information (sessions) crossing from one to the other... or not crossing as the case may be :) -mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Robert Rhodes [mailto:rrhode...@gmail.com] Sent: Saturday, May 07, 2011 4:45 PM To: cf-talk Subject: Re: Help! Too much tracffic and too little time! Thanks. I'll look into that. Being a Windows guy, I am not sure how well Squid and I would get along. :) On Sat, May 7, 2011 at 3:23 PM, Cameron Childress camer...@gmail.comwrote: In addition to other comments, it might be worth spending a minute reading up on Squid: http://www.squid-cache.org/ Caching some or all of the site could mean you can do the entire thing with just 2 CF machines. In my experience, the bottleneck for Squid is not the OS or Squid itself, but the capacity of the network cards in the machine. It can handle ALOT of traffic. The learning curve required to implement this may or may not be within your time window. -Cameron On Fri, May 6, 2011 at 9:57 PM, Rob Rhodes rrhode...@gmail.com wrote: Hello. I have been a lurker on this board for a while, and never thought I was qualified enough to offer opinions. Well, that has not changed. But now I could really use some advice on how to gear up quickly to handle a ton of traffic on a cf9 site. I can't really go into the details, but I have just inherited a cf9/SQL server site that gets well over a million page views per day. It was previously running on multiple servers using shared array. It's an impossible task, but I have to have this up and running this weekend. So, I don't have any time or money for complex solutions. I just need to this all to stay up long enough to figure out a proper plan. Until then, here is my working plan. Please tell me what you think. I have 4 cf9 standard licences, and four servers running win2k3 x86 (fairly fast processors and 4gb ram each). I have a fifth win2k3 server x64 running SQL Server 2005. These servetrs are recent installs and do not have any other sites on them. My plan is to load the site on all four servers, all pointing to the same database server (it appears much of the queries in the site are cached) I would then set up round-robin DNS to do the poor-mans load distribution. Most importantly I am hoping some of the gurus here might have some jvm tuning suggestions to help handle the load. Ok let me have it. Is there any hope, or am I just hopelessly screwed? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344341 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Help! Too much tracffic and too little time!
Another option (and I hope people don't flame me for this) is to set up a Railo server somewhere there, or at least a few instances on a box, then you can handle a lot of traffic with a smaller memory footprint. Just a thought. Regards Mark Drew On 7 May 2011, at 17:44, Robert Rhodes wrote: Thanks. I'll look into that. Being a Windows guy, I am not sure how well Squid and I would get along. :) On Sat, May 7, 2011 at 3:23 PM, Cameron Childress camer...@gmail.comwrote: In addition to other comments, it might be worth spending a minute reading up on Squid: http://www.squid-cache.org/ Caching some or all of the site could mean you can do the entire thing with just 2 CF machines. In my experience, the bottleneck for Squid is not the OS or Squid itself, but the capacity of the network cards in the machine. It can handle ALOT of traffic. The learning curve required to implement this may or may not be within your time window. -Cameron On Fri, May 6, 2011 at 9:57 PM, Rob Rhodes rrhode...@gmail.com wrote: Hello. I have been a lurker on this board for a while, and never thought I was qualified enough to offer opinions. Well, that has not changed. But now I could really use some advice on how to gear up quickly to handle a ton of traffic on a cf9 site. I can't really go into the details, but I have just inherited a cf9/SQL server site that gets well over a million page views per day. It was previously running on multiple servers using shared array. It's an impossible task, but I have to have this up and running this weekend. So, I don't have any time or money for complex solutions. I just need to this all to stay up long enough to figure out a proper plan. Until then, here is my working plan. Please tell me what you think. I have 4 cf9 standard licences, and four servers running win2k3 x86 (fairly fast processors and 4gb ram each). I have a fifth win2k3 server x64 running SQL Server 2005. These servetrs are recent installs and do not have any other sites on them. My plan is to load the site on all four servers, all pointing to the same database server (it appears much of the queries in the site are cached) I would then set up round-robin DNS to do the poor-mans load distribution. Most importantly I am hoping some of the gurus here might have some jvm tuning suggestions to help handle the load. Ok let me have it. Is there any hope, or am I just hopelessly screwed? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344342 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Help! Too much tracffic and too little time!
It looks like I will be x64 on Win2K8R2 for two of these boxes which will have only 4gb on memory, at least for now. With that in mind... can I up my jvm settings a bit? On Sat, May 7, 2011 at 5:51 PM, Mark A. Kruger mkru...@cfwebtools.comwrote: Robert, Get a fairly standard set of JVM args and duplicate them on all 4. Since you are running 32bit you will be limited to a 1.3 gig heap size (max 1280m would be a good starting space with a 256 meg perm size). Since you don't have time to do anything else I'd say go for it and see what happens. The only thing that worries me is sessions... are you confident that your round robin scheme will work and there's no problem with user information (sessions) crossing from one to the other... or not crossing as the case may be :) -mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Robert Rhodes [mailto:rrhode...@gmail.com] Sent: Saturday, May 07, 2011 4:45 PM To: cf-talk Subject: Re: Help! Too much tracffic and too little time! Thanks. I'll look into that. Being a Windows guy, I am not sure how well Squid and I would get along. :) On Sat, May 7, 2011 at 3:23 PM, Cameron Childress camer...@gmail.com wrote: In addition to other comments, it might be worth spending a minute reading up on Squid: http://www.squid-cache.org/ Caching some or all of the site could mean you can do the entire thing with just 2 CF machines. In my experience, the bottleneck for Squid is not the OS or Squid itself, but the capacity of the network cards in the machine. It can handle ALOT of traffic. The learning curve required to implement this may or may not be within your time window. -Cameron On Fri, May 6, 2011 at 9:57 PM, Rob Rhodes rrhode...@gmail.com wrote: Hello. I have been a lurker on this board for a while, and never thought I was qualified enough to offer opinions. Well, that has not changed. But now I could really use some advice on how to gear up quickly to handle a ton of traffic on a cf9 site. I can't really go into the details, but I have just inherited a cf9/SQL server site that gets well over a million page views per day. It was previously running on multiple servers using shared array. It's an impossible task, but I have to have this up and running this weekend. So, I don't have any time or money for complex solutions. I just need to this all to stay up long enough to figure out a proper plan. Until then, here is my working plan. Please tell me what you think. I have 4 cf9 standard licences, and four servers running win2k3 x86 (fairly fast processors and 4gb ram each). I have a fifth win2k3 server x64 running SQL Server 2005. These servetrs are recent installs and do not have any other sites on them. My plan is to load the site on all four servers, all pointing to the same database server (it appears much of the queries in the site are cached) I would then set up round-robin DNS to do the poor-mans load distribution. Most importantly I am hoping some of the gurus here might have some jvm tuning suggestions to help handle the load. Ok let me have it. Is there any hope, or am I just hopelessly screwed? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344343 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Help! Too much tracffic and too little time!
On 8/05/2011 9:29 AM, Robert Rhodes wrote: It looks like I will be x64 on Win2K8R2 for two of these boxes which will have only 4gb on memory, at least for now. With that in mind... can I up my jvm settings a bit? In a prod environment the OS will run about 1GB mem usage and 2K8 has this extra mem allocation caching trick which is really useful on hard working machines but you cannot allow much for that with only 4GB RAM. I'd say set the JVM for 2.5GB and 512 Perm and see how it flows (Look at mem usage in the Resource Monitor which you find in the Task Manager, if there is just a tad of Really Free Mem then you are fine.) -- Yours, Kym Kovan mbcomms.net.au ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344344 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm