code sharing in IIS
I have not experimented yet, but can you use a virtual directory in IIS to share code to other website on the server? Like I have a folder of code for user login on one website. Rather than copying the code and maintaining two sets of code can I just make a IIS virtual directory on the second website? Thanks! Chad ~| 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:346068 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: code sharing in IIS
I have not experimented yet, but can you use a virtual directory in IIS to share code to other website on the server? Like I have a folder of code for user login on one website. Rather than copying the code and maintaining two sets of code can I just make a IIS virtual directory on the second website? Yes. You will have to create the virtual directory individually for each site in which you want to use this code. 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:346069 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Postal radus searches
Hey All, It has been a long time since I did a postal code readius search. All of the ones I did in the past involved purchasing and maintaining a postal code database and I was hoping there were some pretty solid services out there for it by now so I didn't have to do that anymore. Do any of you know of any services out there that you would qualify as solid that you can just pass a zip and a distance to and have it send back the zips that it finds in the radius? I've heard that Google has one and wondered if anyone uses that one in a live app as well. Thanks. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com ~| 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:346070 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Postal radus searches
I know that Solr was working on this for its next release (I was looking over 6 months ago). This would allow free text geographical searching which may be overkill for what you need but may be able to just do what you're looking for too. It may also be worth looking at your db engine, some have spatial data types that support distance calculations and such. HTH Dominic On 5 July 2011 14:38, Bobby Hartsfield bo...@acoderslife.com wrote: Hey All, It has been a long time since I did a postal code readius search. All of the ones I did in the past involved purchasing and maintaining a postal code database and I was hoping there were some pretty solid services out there for it by now so I didn't have to do that anymore. Do any of you know of any services out there that you would qualify as solid that you can just pass a zip and a distance to and have it send back the zips that it finds in the radius? I've heard that Google has one and wondered if anyone uses that one in a live app as well. Thanks. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com ~| 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:346071 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfcatch DB connection failure - for failover
Hi a bit stuck at the moment, I am trying to implement a DB fail over to a slave database through CF 9. I am using MYSQL as a DB. I have setup datasource in the application.cfc to point to the main db. When i trigger a stop service on the main db - which causes a failed db connection, i'm trying to get CF to change the datasource to the failover database. All that happens is the site keeps trying to connect to the main db without updating the db datasource in the cfcatch. Note: this code below works if i have a syntax error in the query, but not for a DB connection failure. See my code below, which i am putting in the onRequestStart and i have unchecked Maintain Connections in the datasource settings. cftry !--- Test whether the DB this application uses is accessible by getting some data. --- cfquery name=testDB dataSource=#application.primary_datasource# maxrows=2 SELECT id FROM user /cfquery cfcatch type=database cfset application.primary_datasource = failoverdb /cfcatch /cftry I welcome any thoughts and assistance thanks in advance. Bas. ~| 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:346072 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Postal radus searches
Thanks Dominic. I'm not sure I follow your last comment though. Wouldn't that still require a maintained zipcode database with longs and lats? .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Tuesday, July 05, 2011 11:07 AM To: cf-talk Subject: Re: Postal radus searches I know that Solr was working on this for its next release (I was looking over 6 months ago). This would allow free text geographical searching which may be overkill for what you need but may be able to just do what you're looking for too. It may also be worth looking at your db engine, some have spatial data types that support distance calculations and such. HTH Dominic On 5 July 2011 14:38, Bobby Hartsfield bo...@acoderslife.com wrote: Hey All, It has been a long time since I did a postal code readius search. All of the ones I did in the past involved purchasing and maintaining a postal code database and I was hoping there were some pretty solid services out there for it by now so I didn't have to do that anymore. Do any of you know of any services out there that you would qualify as solid that you can just pass a zip and a distance to and have it send back the zips that it finds in the radius? I've heard that Google has one and wondered if anyone uses that one in a live app as well. Thanks. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com ~| 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:346073 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Postal radus searches
FYI, it is SQL Server 2k5 .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Bobby Hartsfield [mailto:bo...@acoderslife.com] Sent: Tuesday, July 05, 2011 11:49 AM To: cf-talk Subject: RE: Postal radus searches Thanks Dominic. I'm not sure I follow your last comment though. Wouldn't that still require a maintained zipcode database with longs and lats? .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Tuesday, July 05, 2011 11:07 AM To: cf-talk Subject: Re: Postal radus searches I know that Solr was working on this for its next release (I was looking over 6 months ago). This would allow free text geographical searching which may be overkill for what you need but may be able to just do what you're looking for too. It may also be worth looking at your db engine, some have spatial data types that support distance calculations and such. HTH Dominic On 5 July 2011 14:38, Bobby Hartsfield bo...@acoderslife.com wrote: Hey All, It has been a long time since I did a postal code readius search. All of the ones I did in the past involved purchasing and maintaining a postal code database and I was hoping there were some pretty solid services out there for it by now so I didn't have to do that anymore. Do any of you know of any services out there that you would qualify as solid that you can just pass a zip and a distance to and have it send back the zips that it finds in the radius? I've heard that Google has one and wondered if anyone uses that one in a live app as well. Thanks. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com ~| 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:346074 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Automated File Deployment/Replication
Hey everyone. I have been tasked recently with coming up with an automated deployment/file replication system for our newly built infrastructure. We have a hardware load balancer that spreads the traffic over 5 real servers. We are looking for a way to place the production web files and assets on a single server and let that server then replicate the files over to the other 4 servers instantly. Can anyone recommend software to accomplish this or just some best practices for this type of scenario? Thanks! Brian ~| 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:346075 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Automated File Deployment/Replication
I work in a similar environment and use three general techniques. 1) an ftp tag that replicates files that need to immediately replicate that are uploaded through the admin, it basically figures out which server its running from and copies to the other two synchronously using cfftp 2) install cygwin and run WGET in a mirror mode ftp configuration 3) bestsync isn't so bad, but I found for some reason it would just ignore some files On Tue, Jul 5, 2011 at 10:33 AM, Brian Polackoff bpolack...@gmx.com wrote: Hey everyone. I have been tasked recently with coming up with an automated deployment/file replication system for our newly built infrastructure. We have a hardware load balancer that spreads the traffic over 5 real servers. We are looking for a way to place the production web files and assets on a single server and let that server then replicate the files over to the other 4 servers instantly. Can anyone recommend software to accomplish this or just some best practices for this type of scenario? Thanks! Brian ~| 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:346076 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Automated File Deployment/Replication
We hav a similar setup. At first we used DFS replication (on win2003/2008) replicating in a mesh structure among all servers but since we're now on win2008 only we're using folder junctions towards a common fileshare. DFS was ok but with many files/changes we experienced delays - and the folder junctions is working better for us. Mvh Helge Hetland WebSite as Den 5. juli 2011 kl. 18:33 skrev Brian Polackoff bpolack...@gmx.com: Hey everyone. I have been tasked recently with coming up with an automated deployment/file replication system for our newly built infrastructure. We have a hardware load balancer that spreads the traffic over 5 real servers. We are looking for a way to place the production web files and assets on a single server and let that server then replicate the files over to the other 4 servers instantly. Can anyone recommend software to accomplish this or just some best practices for this type of scenario? Thanks! Brian ~| 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:346077 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Automated File Deployment/Replication
What OS? Windows 2003 and up support Distributed File System (DFS). Wherever possible, it only moves partial files, etc, etc. You can set it to propagate from a main server, or from each server in the cluster. Matthew Williams Geodesic GraFX www.geodesicgrafx.com/blog ~| 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:346078 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Automated File Deployment/Replication
Repliweb.com has some great software. Very reliable and professional. Can be pricey, but if you want great software this is one to look at. We dont use it for web site code, but for large image repository's we have to keep in sync at multiple locations. HTH -Original Message- From: Brian Polackoff [mailto:bpolack...@gmx.com] Sent: Tuesday, July 05, 2011 12:34 PM To: cf-talk Subject: Automated File Deployment/Replication Hey everyone. I have been tasked recently with coming up with an automated deployment/file replication system for our newly built infrastructure. We have a hardware load balancer that spreads the traffic over 5 real servers. We are looking for a way to place the production web files and assets on a single server and let that server then replicate the files over to the other 4 servers instantly. Can anyone recommend software to accomplish this or just some best practices for this type of scenario? Thanks! Brian ~~~ ~~| 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:346075 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf- talk/unsubscribe.cfm ~| 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:346079 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Searching a Solr colllection using the key value to get a specific file
I'm trying to get migrate to solr, but have a question about using the record key in the search critera. With Verity my code looks like this: cfsearch name=getPreDeleteInfo collection=#sttCFG.strCollectionName# type=simple status=info language=english criteria= CF_KEY CONTAINS '#variables.criteria#' The record in the collection looks like: [Record # 1] AUTHOR: casjlr CATEGORY: smm_doclibsecure CATEGORYTREE: Web/ CONTEXT: [empty string] CUSTOM1: office 2003 doc test CUSTOM2: office 2003 doc test CUSTOM3: [empty string] CUSTOM4: Everyone_Intranet KEY: D:\...\Web\Create_View_Delete_Calendar_Groups.doc RANK: 1 RECORDSSEARCHED: 1 SCORE: 0. SIZE: 76288 SUMMARY: Pick members from an Address Bookor Contacts list Create a calendar group based on the calendars that you are viewing Pick members from an Address Book or Contacts list In Calendar, on the Home tab, in the Manage Calendars group, click Calendar Groups, and then click Create New Calendar Group. Create a calendar group based on the calendars that you are viewing In Calendar, on the Home tab, in the Manage Calendars group, click Calendar Groups, and then click Save as New Calendar Group. Add ... TITLE: office 2003 doc test TYPE: application/msword URL: body_emp.cfm?id=xxaction=RetrieveFileref=33fp=/Create_View_Delete_ Calendar_Groups.doc An example of something that doens't work: cfsearch name=test collection=test_solr status=info criteria='key:D*\...\Web\Create_View_Delete_Calendar_Groups.doc' Note: ... is not the actual info (Didn't want to put my server actual path info in a public site) I've tried a number of differnet combinations, but to no avail. Has anyone else successfully written a query like this? Getting at the custom fields works fine. cfsearch name=test collection=prodsite_smm_doclibsecure_solr status=info criteria='custom1:office 2003' brings back the expected results. Any help is appreciated. ~| 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:346080 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Searching a Solr colllection using the key value to get a specific file
I'm trying to get migrate to solr, but have a question about using the record key in the search critera with Verity my code looks like this: cfsearch name=getPreDeleteInfo collection=#sttCFG.strCollectionName# type=simple status=info language=english criteria= CF_KEY CONTAINS '#variables.criteria#' The record in the collection looks like: [Record # 1] AUTHOR: casjlr CATEGORY: smm_doclibsecure CATEGORYTREE: Web/ CONTEXT: [empty string] CUSTOM1: office 2003 doc test CUSTOM2: office 2003 doc test CUSTOM3: [empty string] CUSTOM4: Everyone_Intranet KEY: D:\...\Web\Create_View_Delete_Calendar_Groups.doc RANK: 1 RECORDSSEARCHED: 1 SCORE: 0. SIZE: 76288 SUMMARY: Pick members from an Address Bookor Contacts list Create a calendar group based on the calendars that you are viewing Pick members from an Address Book or Contacts list In Calendar, on the Home tab, in the Manage Calendars group, click Calendar Groups, and then click Create New Calendar Group. Create a calendar group based on the calendars that you are viewing In Calendar, on the Home tab, in the Manage Calendars group, click Calendar Groups, and then click Save as New Calendar Group. Add ... TITLE: office 2003 doc test TYPE: application/msword URL: body_emp.cfm?id=xxaction=RetrieveFileref=33fp=/Create_View_Delete_ Calendar_Groups.doc An example of something that doens't work: cfsearch name=test collection=test_solr status=info criteria='key:D*\...\Web\Create_View_Delete_Calendar_Groups.doc' Note: ... is not the actual info (Didn't want to put my server actual path info in a public site) I've tried a number of differnet combinations, but to no avail. Has anyone else successfully written a query like this? Getting at the custom fields works fine. cfsearch name=test collection=prodsite_smm_doclibsecure_solr status=info criteria='custom1:office 2003' brings back the expected results. Any help is appreciated. ~| 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:346081 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Automated File Deployment/Replication
create a single code repository and create virtual directories that point at it... On Tue, Jul 5, 2011 at 12:33 PM, Brian Polackoff bpolack...@gmx.com wrote: Hey everyone. I have been tasked recently with coming up with an automated deployment/file replication system for our newly built infrastructure. We have a hardware load balancer that spreads the traffic over 5 real servers. We are looking for a way to place the production web files and assets on a single server and let that server then replicate the files over to the other 4 servers instantly. Can anyone recommend software to accomplish this or just some best practices for this type of scenario? Thanks! Brian ~| 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:346082 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Automated File Deployment/Replication
Can anyone recommend software to accomplish this or just some best practices for this type of scenario? If the servers are Windows you might look into the Distributed File System feature which will replicate file system changes across multiple servers. -Justin ~| 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:346083 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Postal radus searches
I didn't read your op properly, apologies. My answers were completely wide of the mark! ;) On 5 July 2011 16:49, Bobby Hartsfield bo...@acoderslife.com wrote: Thanks Dominic. I'm not sure I follow your last comment though. Wouldn't that still require a maintained zipcode database with longs and lats? .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Tuesday, July 05, 2011 11:07 AM To: cf-talk Subject: Re: Postal radus searches I know that Solr was working on this for its next release (I was looking over 6 months ago). This would allow free text geographical searching which may be overkill for what you need but may be able to just do what you're looking for too. It may also be worth looking at your db engine, some have spatial data types that support distance calculations and such. HTH Dominic On 5 July 2011 14:38, Bobby Hartsfield bo...@acoderslife.com wrote: Hey All, It has been a long time since I did a postal code readius search. All of the ones I did in the past involved purchasing and maintaining a postal code database and I was hoping there were some pretty solid services out there for it by now so I didn't have to do that anymore. Do any of you know of any services out there that you would qualify as solid that you can just pass a zip and a distance to and have it send back the zips that it finds in the radius? I've heard that Google has one and wondered if anyone uses that one in a live app as well. Thanks. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com ~| 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:346084 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Searching a Solr colllection using the key value to get a specific file
Just curious - why would you do a search when you know exactly what you want? On Tue, Jul 5, 2011 at 1:19 PM, eric.da...@vmmc.org eric.da...@vmmc.org eric.da...@vmmc.org wrote: I'm trying to get migrate to solr, but have a question about using the record key in the search critera. With Verity my code looks like this: cfsearch name=getPreDeleteInfo collection=#sttCFG.strCollectionName# type=simple status=info language=english criteria= CF_KEY CONTAINS '#variables.criteria#' The record in the collection looks like: [Record # 1] ~| 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:346085 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Automated File Deployment/Replication
Several customers using peersych - all with excellent results. Commercial license though. Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Brian Polackoff [mailto:bpolack...@gmx.com] Sent: Tuesday, July 05, 2011 11:34 AM To: cf-talk Subject: Automated File Deployment/Replication Hey everyone. I have been tasked recently with coming up with an automated deployment/file replication system for our newly built infrastructure. We have a hardware load balancer that spreads the traffic over 5 real servers. We are looking for a way to place the production web files and assets on a single server and let that server then replicate the files over to the other 4 servers instantly. Can anyone recommend software to accomplish this or just some best practices for this type of scenario? Thanks! Brian ~| 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:346086 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Automated File Deployment/Replication
Hey Brian, I'm doing something... similar How often do you need it to sync up? Constantly? Only when an update occurs (a manual process)? Scheduled intervals? If you need the boxes to stay in perfect sync at all times and automated process or end users (people using the site/app) add or change content on a constant basis, there are two obvious choices. 1. All of the prod servers should share some disk space on a network appliance, like a NAS or shared storage server 1. In this model, no copy is need as each server shares the same space. 2. The risk is that if that shared resource goes down, all your servers are down 2. Using some sort of syncing software 1. I don't have any recommendations, I've never found anything that works really well... If the content only changes when you deploy new builds to the server, then I'd recommend using ANT (http://ant.apache.org/) to handle your deployments. It's crazy easy to use and learn and it's super reliable. Setup a single build process and it'll deliver your content to each server. If you are interested in this route, let me know and i'll send you some sample code off list. It would also be helpful to know what platform you are running on so people can make platform specific recommendations for syncing software. =] On Tue, Jul 5, 2011 at 9:33 AM, Brian Polackoff bpolack...@gmx.com wrote: Hey everyone. I have been tasked recently with coming up with an automated deployment/file replication system for our newly built infrastructure. We have a hardware load balancer that spreads the traffic over 5 real servers. We are looking for a way to place the production web files and assets on a single server and let that server then replicate the files over to the other 4 servers instantly. Can anyone recommend software to accomplish this or just some best practices for this type of scenario? Thanks! Brian ~| 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:346087 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Automated File Deployment/Replication
The replicating is the easy part; Robocopy or even Xcopy can handle that part. You would just need some kind of directory watcher to kick it off. I am assuming you are looking to control this with ColdFusion (since this is a ColdFusion mailing list). That said, Ray Camden posted an example of a directory watcher a while back and I'm sure it is still in the archives of this list and his blog. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Brian Polackoff [mailto:bpolack...@gmx.com] Sent: Tuesday, July 05, 2011 12:34 PM To: cf-talk Subject: Automated File Deployment/Replication Hey everyone. I have been tasked recently with coming up with an automated deployment/file replication system for our newly built infrastructure. We have a hardware load balancer that spreads the traffic over 5 real servers. We are looking for a way to place the production web files and assets on a single server and let that server then replicate the files over to the other 4 servers instantly. Can anyone recommend software to accomplish this or just some best practices for this type of scenario? Thanks! Brian ~| 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:346088 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Automated File Deployment/Replication
Also, if you have a strong enough SAN (I/O and network speeds), you might consider a single root shared by multiple servers. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Brian Polackoff [mailto:bpolack...@gmx.com] Sent: Tuesday, July 05, 2011 12:34 PM To: cf-talk Subject: Automated File Deployment/Replication Hey everyone. I have been tasked recently with coming up with an automated deployment/file replication system for our newly built infrastructure. We have a hardware load balancer that spreads the traffic over 5 real servers. We are looking for a way to place the production web files and assets on a single server and let that server then replicate the files over to the other 4 servers instantly. Can anyone recommend software to accomplish this or just some best practices for this type of scenario? Thanks! Brian ~| 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:346089 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Searching a Solr colllection
I'm trying to get migrate to solr, but have a question about using the record key in the search critera With Verity my code looks like this: cfsearch name=getPreDeleteInfo collection=#sttCFG.strCollectionName# type=simple status=info language=english criteria= CF_KEY CONTAINS '#variables.criteria#' The record in the collection looks like: [Record # 1] AUTHOR: casjlr CATEGORY: smm_doclibsecure CATEGORYTREE: Web/ CONTEXT: [empty string] CUSTOM1: office 2003 doc test CUSTOM2: office 2003 doc test CUSTOM3: [empty string] CUSTOM4: Everyone_Intranet KEY: D:\...\Web\Create_View_Delete_Calendar_Groups.doc RANK: 1 RECORDSSEARCHED: 1 SCORE: 0. SIZE: 76288 SUMMARY: Pick members from an Address Bookor Contacts list Create a calendar group based on the calendars that you are viewing Pick members from an Address Book or Contacts list In Calendar, on the Home tab, in the Manage Calendars group, click Calendar Groups, and then click Create New Calendar Group. Create a calendar group based on the calendars that you are viewing In Calendar, on the Home tab, in the Manage Calendars group, click Calendar Groups, and then click Save as New Calendar Group. Add ... TITLE: office 2003 doc test TYPE: application/msword URL: body_emp.cfm?id=xxaction=RetrieveFileref=33fp=/Create_View_Delete_ Calendar_Groups.doc An example of something that doens't work: cfsearch name=test collection=test_solr status=info criteria='key:D*\...\Web\Create_View_Delete_Calendar_Groups.doc' Note: ... is not the actual info (Didn't want to put my server actual path info in a public site) I've tried a number of differnet combinations, but to no avail. Has anyone else successfully written a query like this? Getting at the custom fields works fine. cfsearch name=test collection=prodsite_smm_doclibsecure_solr status=info criteria='custom1:office 2003' brings back the expected results. In the Scheme.xml file I changed the key and URL fields to be indexed=true field name=key type=string indexed=true stored=true required=true / field name=urltype=string indexed=true stored=true required=true / I can do a search on the URL field as long as like put the wildcard * at the end of the search criteria, but I still do not get any results using the key field. Any ideas how now to escape colons : in the path name? cfsearch name=test =#sttCFG.strCollectionName# status=info criteria='url:b*=32356*' Any help is appreciated. ~| 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:346090 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Searching a Solr colllection using the key value to get a specific file
Just curious - why would you do a search when you know exactly what you want? On Tue, Jul 5, 2011 at 1:19 PM, eric.da...@vmmc.org eric.da...@vmmc.org eric.da...@vmmc.org wrote: [Record # 1] In this case, I'm trying to get what was indexed so I can present it back to the user who just uploaded a file. ~| 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:346091 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Searching a Solr colllection
I apologize for the for the multiple posting. Because of the delay, I thought my posts were being accepted. ~| 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:346092 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Searching a Solr colllection using the key value to get a specific file
In the Scheme.xml file I changed the key and URL fields to be indexed=true field name=key type=string indexed=true stored=true required=true / field name=url type=string indexed=true stored=true required=true / I can now do a search on the URL field as long as like put the wildcard * at the end of the search criteria, but I still do not get any results using the key field. Any ideas how now to escape colons : in the path name? cfsearch name=test =#sttCFG.strCollectionName# status=info criteria='url:b*=32356*' ~| 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:346093 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Searching a Solr colllection using the key value to get a specific file
Another reason I need to be able to search against the key field, is that I allow the user to filter the search results by the directory the document is placed into. The only field in the collection that contains this information is the key field. ~| 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:346094 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF8 Enterprise Instance Size
I'd appreciate any guidance about sizing instances that are load balanced in CF8 Enterprise. Right now we have instances that are allocated 1.5 GB of RAM for each. I want to add memory to our server and am not sure if I should add 2 more instances for a domain and/or give more memory to each instance. Thanks in advance. ~| 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:346095 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Automated File Deployment/Replication
Thanks everyone for the info! We are running CF8 Enterprise on 5 servers with windows server 2k8 standard 64 bit if there are any OS specific solutions out there besides DFS which I will now look into. Thanks! Brian -Original Message- From: Matthew Williams [mailto:mai...@geodesicgrafx.com] Sent: Tuesday, July 05, 2011 12:59 PM To: cf-talk Subject: Re: Automated File Deployment/Replication What OS? Windows 2003 and up support Distributed File System (DFS). Wherever possible, it only moves partial files, etc, etc. You can set it to propagate from a main server, or from each server in the cluster. Matthew Williams Geodesic GraFX www.geodesicgrafx.com/blog ~| 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:346096 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Enterprise Instance Size
if you are running 32bit windows then you will be limited to probably what your using now. if your using 64bit then go mental. if you have the physical servers load balanced already then additional instances probably wont provide any benefit to you. If you are load balancing just between instances, then more instances would be better if you are having any issues with instances becoming unresponsive or falling over. However remember you are also limited by number of CPU's/cores, additional instances will reduce the number of requests that your other instances can handle. The default setitng is 10 requests per cpu/core. Russ On Tue, Jul 5, 2011 at 8:54 PM, Richard Steele r...@photoeye.com wrote: I'd appreciate any guidance about sizing instances that are load balanced in CF8 Enterprise. Right now we have instances that are allocated 1.5 GB of RAM for each. I want to add memory to our server and am not sure if I should add 2 more instances for a domain and/or give more memory to each instance. Thanks in advance. ~| 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:346097 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Enterprise Instance Size
Hi Russ, It's 64 bit windows. Load balancing is between instances (only one physical server). It's a Xeon L5410 Process which I believe is 4 cores. Each instance has CF8 Admin set for a max of 10 requests. We definitely want to add another pair of instances for a new website we are finishing up. Currently we have one pair of instances reporting low memory availability (used memory reports around 460mb used (allocated 500mb) in Fusion Reactor Enterprise dashboard). So to recap, there is currently 8 gb of memory on the server. We have two pairs of instances for two different websites each with around 500mb of memory allocated. We want to add a third pair for a new website under development. One of the two pairs almost always reports memory close to being exhausted. On the other pair we occasionally have a hosted website go viral and the instances hang as they can't handle all of the requests. Right now, we can only afford to add memory (not clustered servers). What would be your recommendation 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:346098 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Enterprise Instance Size
Hi Russ, It's 64 bit windows. Load balancing is between instances (only one physical server). It's a Xeon L5410 Process which I believe is 4 cores. Each instance has CF8 Admin set for a max of 10 requests. We definitely want to add another pair of instances for a new website we are finishing up. Currently we have one pair of instances reporting low memory availability (used memory reports around 460mb used (allocated 500mb) in Fusion Reactor Enterprise dashboard). So to recap, there is currently 8 gb of memory on the server. We have two pairs of instances for two different websites each with around 500mb of memory allocated. We want to add a third pair for a new website under development. One of the two pairs almost always reports memory close to being exhausted. On the other pair we occasionally have a hosted website go viral and the instances hang as they can't handle all of the requests. Right now, we can only afford to add memory (not clustered servers). What would be your recommendation 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:346099 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Enterprise Instance Size
You have a practical limit of around 2 gb per instance any more and you can overload the jvm.. What more memory will do is allow you to max out each instance and let the os use the rest.. but that's not the whole story..you'll still need to investigate the jvm garbage collection..plus tweaking settings in the cf admin itself for each instance On Jul 5, 2011 5:32 PM, Richard Steele r...@photoeye.com wrote: Hi Russ, It's 64 bit windows. Load balancing is between instances (only one physical server). It's a Xeon L5410 Process which I believe is 4 cores. Each instance has CF8 Admin set for a max of 10 requests. We definitely want to add another pair of instances for a new website we are finishing up. Currently we have one pair of instances reporting low memory availability (used memory reports around 460mb used (allocated 500mb) in Fusion Reactor Enterprise dashboard). So to recap, there is currently 8 gb of memory on the server. We have two pairs of instances for two different websites each with around 500mb of memory allocated. We want to add a third pair for a new website under development. One of the two pairs almost always reports memory close to being exhausted. On the other pair we occasionally have a hosted website go viral and the instances hang as they can't handle all of the requests. Right now, we can only afford to add memory (not clustered servers). What would be your recommendation 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:346100 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Postal radus searches
No worries ;-) .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Tuesday, July 05, 2011 12:39 PM To: cf-talk Subject: Re: Postal radus searches I didn't read your op properly, apologies. My answers were completely wide of the mark! ;) On 5 July 2011 16:49, Bobby Hartsfield bo...@acoderslife.com wrote: Thanks Dominic. I'm not sure I follow your last comment though. Wouldn't that still require a maintained zipcode database with longs and lats? .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Tuesday, July 05, 2011 11:07 AM To: cf-talk Subject: Re: Postal radus searches I know that Solr was working on this for its next release (I was looking over 6 months ago). This would allow free text geographical searching which may be overkill for what you need but may be able to just do what you're looking for too. It may also be worth looking at your db engine, some have spatial data types that support distance calculations and such. HTH Dominic On 5 July 2011 14:38, Bobby Hartsfield bo...@acoderslife.com wrote: Hey All, It has been a long time since I did a postal code readius search. All of the ones I did in the past involved purchasing and maintaining a postal code database and I was hoping there were some pretty solid services out there for it by now so I didn't have to do that anymore. Do any of you know of any services out there that you would qualify as solid that you can just pass a zip and a distance to and have it send back the zips that it finds in the radius? I've heard that Google has one and wondered if anyone uses that one in a live app as well. Thanks. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com ~| 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:346101 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm