Coldfusion in distributed mode with multiple subnets on host
I am running coldfusion 9 in distributed mode(web server and CF on different servers). I have three web servers and three coldfusion servers running in a clustered environment. The problem is that I can never get the cluster setup or the web servers to see the cluster unless I disable the database NIC on the coldfusion boxes. Our environment is divided into three tiers. Web tier, Application tier and Database tier with the web servers not being able to see the database tier... so the web servers do not have a database NIC and it seems coldfusion is always listening on the .111 subnet (database). This also causes a problem when coldfusion is restarted on one of the app servers because it always rejoins the cluster using it's .111 address and then the web servers do not pass traffic to those coldfusion servers until I shut down the database NIC and then restart the coldfusion services.. It then registers on the App tier subnet which the web servers can see. Any ideas on how to make coldfusion only listen on the App tier ip address and not the database tier ip address? 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:356371 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion in distributed mode with multiple subnets on host
Brad- I've run into problems similar to this before. A few things... JRun (under the covers in CF9) uses the JINI service to autodiscover it's cluster peers. Essentiually you're going to want to try to find a way to bind the JINI service to a particular subnet. First, you can specify a Unicast address in the JRun config. This will point JRun at a specific IP address (or addresses). Check out the docs on JRun here and and also the comments on turning on/off multicasting in the comments at the bottom of the page (which could also be a problem for you): http://livedocs.adobe.com/jrun/4/JRun_Administrators_Guide/jrundotxml2.htm Second, you may also be able to play with the BindAddress setting to tell JRun/JINI to only listen on one subnet (also listed on that page). I haven't done that before but it may be worth looking into a bit more. At the end of the day, in CF9 all the cluster stuff is under the covers in JRun so when you google for an answer to this, start looking for answers using the term jrun instead of ColdFusion and you will find a treasure trove of new information that was probably invisible to you before. -Cameron On Mon, Aug 5, 2013 at 8:45 AM, brad f b...@ciswired.com wrote: I am running coldfusion 9 in distributed mode(web server and CF on different servers). I have three web servers and three coldfusion servers running in a clustered environment. The problem is that I can never get the cluster setup or the web servers to see the cluster unless I disable the database NIC on the coldfusion boxes. Our environment is divided into three tiers. Web tier, Application tier and Database tier with the web servers not being able to see the database tier... so the web servers do not have a database NIC and it seems coldfusion is always listening on the .111 subnet (database). This also causes a problem when coldfusion is restarted on one of the app servers because it always rejoins the cluster using it's .111 address and then the web servers do not pass traffic to those coldfusion servers until I shut down the database NIC and then restart the coldfusion services.. It then registers on the App tier subnet which the web servers can see. Any ideas on how to make coldfusion only listen on the App tier ip address and not the database tier ip address? 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:356372 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion in distributed mode with multiple subnets on host
on your network interfaces page you can change the order in which the interfaces are used, which may solve your issue. open network and sharing centre press ALT choose advanced - advanced settings move the connection to the top that you wish to take precedence Also how are you referencing the database servers from CF using IP or machine name ? On Mon, Aug 5, 2013 at 1:45 PM, brad f b...@ciswired.com wrote: I am running coldfusion 9 in distributed mode(web server and CF on different servers). I have three web servers and three coldfusion servers running in a clustered environment. The problem is that I can never get the cluster setup or the web servers to see the cluster unless I disable the database NIC on the coldfusion boxes. Our environment is divided into three tiers. Web tier, Application tier and Database tier with the web servers not being able to see the database tier... so the web servers do not have a database NIC and it seems coldfusion is always listening on the .111 subnet (database). This also causes a problem when coldfusion is restarted on one of the app servers because it always rejoins the cluster using it's .111 address and then the web servers do not pass traffic to those coldfusion servers until I shut down the database NIC and then restart the coldfusion services.. It then registers on the App tier subnet which the web servers can see. Any ideas on how to make coldfusion only listen on the App tier ip address and not the database tier ip address? 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:356373 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Coldfusion in distributed mode with multiple subnets on host
This was my suggestion too - although I sometimes add static routes to the route table as well to dictate where traffic goes. It sounds like you are multi-homing which might NOT be strictly necessary. Consider teaming so you don't have to fiddle with precedence order etc. -mark -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Monday, August 05, 2013 8:23 AM To: cf-talk Subject: Re: Coldfusion in distributed mode with multiple subnets on host on your network interfaces page you can change the order in which the interfaces are used, which may solve your issue. open network and sharing centre press ALT choose advanced - advanced settings move the connection to the top that you wish to take precedence Also how are you referencing the database servers from CF using IP or machine name ? On Mon, Aug 5, 2013 at 1:45 PM, brad f b...@ciswired.com wrote: I am running coldfusion 9 in distributed mode(web server and CF on different servers). I have three web servers and three coldfusion servers running in a clustered environment. The problem is that I can never get the cluster setup or the web servers to see the cluster unless I disable the database NIC on the coldfusion boxes. Our environment is divided into three tiers. Web tier, Application tier and Database tier with the web servers not being able to see the database tier... so the web servers do not have a database NIC and it seems coldfusion is always listening on the .111 subnet (database). This also causes a problem when coldfusion is restarted on one of the app servers because it always rejoins the cluster using it's .111 address and then the web servers do not pass traffic to those coldfusion servers until I shut down the database NIC and then restart the coldfusion services.. It then registers on the App tier subnet which the web servers can see. Any ideas on how to make coldfusion only listen on the App tier ip address and not the database tier ip address? 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:356374 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion in distributed mode with multiple subnets on host
Brad- Russ and Mark's suggestions are actually probably easier than mine, but if they don't work out, read up on the JRun stuff. -Cameron On Mon, Aug 5, 2013 at 9:55 AM, Mark A Kruger mkru...@cfwebtools.comwrote: This was my suggestion too - although I sometimes add static routes to the route table as well to dictate where traffic goes. It sounds like you are multi-homing which might NOT be strictly necessary. Consider teaming so you don't have to fiddle with precedence order etc. -mark -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Monday, August 05, 2013 8:23 AM To: cf-talk Subject: Re: Coldfusion in distributed mode with multiple subnets on host on your network interfaces page you can change the order in which the interfaces are used, which may solve your issue. open network and sharing centre press ALT choose advanced - advanced settings move the connection to the top that you wish to take precedence Also how are you referencing the database servers from CF using IP or machine name ? On Mon, Aug 5, 2013 at 1:45 PM, brad f b...@ciswired.com wrote: I am running coldfusion 9 in distributed mode(web server and CF on different servers). I have three web servers and three coldfusion servers running in a clustered environment. The problem is that I can never get the cluster setup or the web servers to see the cluster unless I disable the database NIC on the coldfusion boxes. Our environment is divided into three tiers. Web tier, Application tier and Database tier with the web servers not being able to see the database tier... so the web servers do not have a database NIC and it seems coldfusion is always listening on the .111 subnet (database). This also causes a problem when coldfusion is restarted on one of the app servers because it always rejoins the cluster using it's .111 address and then the web servers do not pass traffic to those coldfusion servers until I shut down the database NIC and then restart the coldfusion services.. It then registers on the App tier subnet which the web servers can see. Any ideas on how to make coldfusion only listen on the App tier ip address and not the database tier ip address? 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:356375 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion in distributed mode with multiple subnets on host
Russ and Mark's suggestions are actually probably easier than mine, but if they don't work out, read up on the JRun stuff. Cameron is right that you need to read the JRun docs if you want to use distributed mode. I'll suggest instead that you should drop distributed mode and set up a reverse proxy config on your external web server. It'll accomplish the same goal (preventing the execution of server-side scripts on your public-facing web server) and it'll be easier to configure and manage, and ultimately when you go to CF 10 or whatever you won't have to figure out a replacement mechanism. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:356376 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF 9 does not connect IIS 7 smtp server on windows 7
I have been brain storming and spending so many hours to figure out how to use IIS 7 smtp mail server with CF9 on development environment. CF8 and windows XP with IIS 6 was perfectly working. I tried telnet to localhost port 25 and it is not connecting either. Disabled the windows firewall and still no escape, I have System Center Endpoint Protection anti-virus software installed, but I don't think that blocks port 25. Does anybody have any idea of what could be blocking element. Thanks Joy ~| 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:356377 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF 9 does not connect IIS 7 smtp server on windows 7
I have been brain storming and spending so many hours to figure out how to use IIS 7 smtp mail server with CF9 on development environment. CF8 and windows XP with IIS 6 was perfectly working. I tried telnet to localhost port 25 and it is not connecting either. Disabled the windows firewall and still no escape, I have System Center Endpoint Protection anti-virus software installed, but I don't think that blocks port 25. Does anybody have any idea of what could be blocking element. IIS 7 does not include an SMTP server by default. You have to specifically install it. http://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/configure-smtp-e-mail-in-iis-7-and-above Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:356378 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF 9 does not connect IIS 7 smtp server on windows 7
Is smtp actually enabled? I don't believe it is by default with IIS 7. Cmdnetstat -an And look for your ip listening on port 25. Check by going through the control panel, programs and features, then turn windows features on and off. Believe smtp is under the iis 6 section. Alternately you could install a different smtp server on your server/workstation. Byron Mann Lead Engineer Architect HostMySite.com On Aug 5, 2013 12:39 PM, Joy Paulose kalappura...@hotmail.com wrote: I have been brain storming and spending so many hours to figure out how to use IIS 7 smtp mail server with CF9 on development environment. CF8 and windows XP with IIS 6 was perfectly working. I tried telnet to localhost port 25 and it is not connecting either. Disabled the windows firewall and still no escape, I have System Center Endpoint Protection anti-virus software installed, but I don't think that blocks port 25. Does anybody have any idea of what could be blocking element. Thanks Joy ~| 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:356379 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF 9 does not connect IIS 7 smtp server on windows 7
it will be listed under services if it is running and also you must install the IIS6 compatibility tools in order to manage it. I would suggest you don't bother and install HMAILSERVER instead which is free and better. On Mon, Aug 5, 2013 at 5:47 PM, Byron Mann byronos...@gmail.com wrote: Is smtp actually enabled? I don't believe it is by default with IIS 7. Cmdnetstat -an And look for your ip listening on port 25. Check by going through the control panel, programs and features, then turn windows features on and off. Believe smtp is under the iis 6 section. Alternately you could install a different smtp server on your server/workstation. Byron Mann Lead Engineer Architect HostMySite.com On Aug 5, 2013 12:39 PM, Joy Paulose kalappura...@hotmail.com wrote: I have been brain storming and spending so many hours to figure out how to use IIS 7 smtp mail server with CF9 on development environment. CF8 and windows XP with IIS 6 was perfectly working. I tried telnet to localhost port 25 and it is not connecting either. Disabled the windows firewall and still no escape, I have System Center Endpoint Protection anti-virus software installed, but I don't think that blocks port 25. Does anybody have any idea of what could be blocking element. Thanks Joy ~| 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:356380 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: test
This one showed up =] On Sat, Aug 3, 2013 at 5:12 PM, Torrent Girl moniqueb...@gmail.com wrote: my last post didn't show ~| 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:356381 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
JSON Encoding bug (again...)
I have had to do so many hacks to get serializeJSON() to play nice. I add a ~ to all yes/no strings so I don't get back true/false values, I have a series of regular expressions that quote values in the resulting JSON that don't get quoted and break on the client side. And now I have this issue: cfset x = {testval='.0006'} cfdump var=#serializeJSON(x)# Which outputs: {TESTVAL:6.0E-4} WTF? I am using CF 9,0,1,274733 Update Level /C:/ColdFusion9/lib/updates/hf901-4.jar Anybody know of a workaround for this? The source data is in a query which gets serialized after being converted to an array of structs. It would be too slow to check each field for values like this and modify them to return to the client. I need another Idea. Anyone? Brook ~| 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:356382 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: JSON Encoding bug (again...)
Not that it helps, but the same happens in CF10 as well. On Mon, Aug 5, 2013 at 6:46 PM, Brook Davies cft...@logiforms.com wrote: I have had to do so many hacks to get serializeJSON() to play nice. I add a ~ to all yes/no strings so I don't get back true/false values, I have a series of regular expressions that quote values in the resulting JSON that don't get quoted and break on the client side. And now I have this issue: cfset x = {testval='.0006'} cfdump var=#serializeJSON(x)# Which outputs: {TESTVAL:6.0E-4} WTF? I am using CF 9,0,1,274733 Update Level /C:/ColdFusion9/lib/updates/hf901-4.jar Anybody know of a workaround for this? The source data is in a query which gets serialized after being converted to an array of structs. It would be too slow to check each field for values like this and modify them to return to the client. I need another Idea. Anyone? Brook ~| 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:356383 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: JSON Encoding bug (again...)
I have had to do so many hacks to get serializeJSON() to play nice. I add a ~ to all yes/no strings so I don't get back true/false values, I have a series of regular expressions that quote values in the resulting JSON that don't get quoted and break on the client side. And now I have this issue: cfset x = {testval='.0006'} cfdump var=#serializeJSON(x)# Which outputs: {TESTVAL:6.0E-4} WTF? I am using CF 9,0,1,274733 Update Level /C:/ColdFusion9/lib/updates/hf901-4.jar Anybody know of a workaround for this? The source data is in a query which gets serialized after being converted to an array of structs. It would be too slow to check each field for values like this and modify them to return to the client. I need another Idea. Anyone? This isn't really a problem with JSON serialization, but with CF being typeless, and CF's tendency to autoconvert numbers into scientific notation. You can work around this by using precisionEvaluate(), the BigDecimal version of the Evaluate function: cfset x = {testval=precisionEvaluate(.0006)} cfdump var=#serializeJSON(x)# Note that this will add a leading zero. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:356384 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion in distributed mode with multiple subnets on host
Thanks for all the replies.. Changing the order of the nics was all I had to do. ~| 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:356385 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm