ColdFusion 中用于多实例多服务器配置的单个 CFIDE 文件夹
最近正在使用 ColdFusion 企业版多服务器安装。
我创建了三个实例 1. cfusion(默认) 2. cfserver1 和 3. cfserver2。基本上我想控制两个不同实例上的一个站点并在它们之间共享负载。我创建了集群并将 cfserver1 和 cfserver2 实例添加到其中,然后在 IIS 7 上配置网站并通过“Web 服务器配置”工具附加集群。一切工作正常,但唯一的问题是它没有坚持会话,因为我忘记启用“用户 J2ee 会话变量”。这是我的问题...我需要为两个实例打开单独的 CFIDE 并分别启用它。我还需要在两个地方创建数据库源。
我们可以与另一个实例共享一个实例的 CFIDE 吗?
更新 [7/4/2011]
我可以在两个实例之间共享 CFIDE,但仍然存在重复设置的问题。由于大多数设置都位于 WEB-INF 文件夹下,我必须为每个实例创建单独的设置吗? 有谁知道共享 WEB-INF 或所有实例如何共享相同的设置(数据源和其他)?
要共享 CFIDE,请按照以下步骤操作... 在两个实例之间共享 CFIDE。 1. 将CFIDE文件夹复制到另一个地方。 2. 在 WEB-INF 文件夹下可用的 jrun-web.xml 文件中创建虚拟路径,指向 CFIDE 的新物理位置。
/CFIDE/*
C:/projects/CFIDE
Recently working with ColdFusion enterprise version multiserver installation.
I have created three instances 1. cfusion (default) 2. cfserver1 and 3. cfserver2. Basically I want to control one site on two different instances and load sharing between them. I created cluster and add both cfserver1 and cfserver2 instances into it and later configure website on IIS 7 and attach with cluster through "Web server configuration" tool. Everything is working fine but only issue was it wasn't stick with session as I forgot to enable "User J2ee session variables". Here is my issue... I need to open separate CFIDE for both instances and enable it separately. Also I need to create database source on both places.
Can we share CFIDE of one instance with another one?
Update [7/4/2011]
Well I am able to share CFIDE between two instances but still issue with duplicate setting. As most of setting reside under WEB-INF folders I have to create separate settings for each instance?
Do anyone have idea about sharing WEB-INF or any how same settings (datasources and others) share by all instances?
To share CFIDE follow below steps...
Sharing CFIDE between two instance.
1. Copy CFIDE folder to another place.
2. Create virtual path in jrun-web.xml file available under WEB-INF folder pointing to new physical location of CFIDE.
/CFIDE/*
C:/projects/CFIDE
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,您无法从一个控制台管理多台服务器的 CF 管理设置。集群仅处理会话管理。
正如您所发现的,您可以使用一份 CFIDE 副本来管理多个 CF 服务器实例,但这些更改仅适用于处理您的请求的服务器。
从 CF8 开始,您可以通过管理 API 管理 Web 管理员中的几乎所有内容。如果您需要对数据源等进行定期或脚本化更改,我会使用 API 和某种脚本在每台服务器上调用它,或者在应用程序启动时处理文件并设置 DSN 和其他设置。
或者,只需接受更新两个实例的需要,这很令人恼火,但可能是可接受的风险
As far as I'm aware, you can't manage the CF admin settings for multiple servers from the one console. The clustering only handles session management.
As you've found out, you can use one copy of CFIDE to manage more than one CF server instance, but the changes only apply to the server handling your request.
As of CF8, you can manage almost everything in the web administrator through the administrative API. If you need to make regular or scripted changes to datasources and the like, I'd use the API and some kind of script to invoke it on each server, or process the file on application start and set up the DSN and other settings.
Alternatively, just accept the need to update both instances, which is irritating, but may be an acceptable risk