在使用 DNX 环境时,如何使用 ASP.Net 5 (vNext) 设置负载平衡环境?
How do you setup a load balanced environment with ASP.Net 5 (vNext) while using the DNX environment?
描述
我很好奇 DNX 负载平衡设置的工作原理。我习惯于使用 IIS like this. Typically there is nothing done on the code side with the ARR/Server Farm setup. However, with the cross platform support that DNX provides, while getting rid of IIS, this sort of load balanced setup seems like it will now need to be handled in the code. Or at least in my case I would be responsible for code deploys as opposed to a Network Admin that would install updates. The closest that I could find is session management 的 ARR(应用程序请求路由)/服务器场设置。你能用这个做负载平衡吗,可能,我还没有看到它。
功能影响
决定下载第三方 ARR、使用 MS ARR 还是使用您自己的 ARR?
我需要的
我想尽可能避免 "I like this best" 回复,并查看 "Here is why you need this" 或 "Here is why I found this to work well" 的回复。我知道dnx是一个新环境,但是在OSX和Linux中搭建LB服务器的经验却不是。随着转向跨平台,我预计 MS ARR 将无法在 OSX 或 Linux 上运行。我对那些 OS 不是很熟悉,所以我不知道从哪里开始。
问题
1) https://github.com/aspnet/Session/ 项目(或其他项目)是否预期包含 ARR?
如果 1 没有
2) 是否有跨平台的 ARR (Windows, OSX, Linux)?
ASP.NET5 没有开箱即用的负载均衡器。
您的解决方案是正确的,在 DNX 前面添加一个负载均衡器。在 Windows 上你可以使用 IIS,在交叉平台上你可以使用 ngnix
没有变化,也不支持应用内。
ASP.NET 5
不是应该去的地方。 IIS 将仍然存在并且 ARR module 是 IIS 本身的一部分。不是应用程序。
页面上写着:
Works With: IIS 7, IIS 7.5, IIS 8, IIS 8.5, IIS 10
至于支持不同类型的服务器?我不明白为什么不,因为 ARR 模块基本上只是一个反向代理。
无需更改。您甚至可以编译为 CoreCLR 并将其托管在装有 Apache 的 Linux 机器上,但有一个 IIS 服务器,其 ARR 模块设置在反向代理中以转发负载平衡请求。
描述
我很好奇 DNX 负载平衡设置的工作原理。我习惯于使用 IIS like this. Typically there is nothing done on the code side with the ARR/Server Farm setup. However, with the cross platform support that DNX provides, while getting rid of IIS, this sort of load balanced setup seems like it will now need to be handled in the code. Or at least in my case I would be responsible for code deploys as opposed to a Network Admin that would install updates. The closest that I could find is session management 的 ARR(应用程序请求路由)/服务器场设置。你能用这个做负载平衡吗,可能,我还没有看到它。
功能影响
决定下载第三方 ARR、使用 MS ARR 还是使用您自己的 ARR?
我需要的
我想尽可能避免 "I like this best" 回复,并查看 "Here is why you need this" 或 "Here is why I found this to work well" 的回复。我知道dnx是一个新环境,但是在OSX和Linux中搭建LB服务器的经验却不是。随着转向跨平台,我预计 MS ARR 将无法在 OSX 或 Linux 上运行。我对那些 OS 不是很熟悉,所以我不知道从哪里开始。
问题
1) https://github.com/aspnet/Session/ 项目(或其他项目)是否预期包含 ARR?
如果 1 没有
2) 是否有跨平台的 ARR (Windows, OSX, Linux)?
ASP.NET5 没有开箱即用的负载均衡器。
您的解决方案是正确的,在 DNX 前面添加一个负载均衡器。在 Windows 上你可以使用 IIS,在交叉平台上你可以使用 ngnix
没有变化,也不支持应用内。
ASP.NET 5
不是应该去的地方。 IIS 将仍然存在并且 ARR module 是 IIS 本身的一部分。不是应用程序。
页面上写着:
Works With: IIS 7, IIS 7.5, IIS 8, IIS 8.5, IIS 10
至于支持不同类型的服务器?我不明白为什么不,因为 ARR 模块基本上只是一个反向代理。
无需更改。您甚至可以编译为 CoreCLR 并将其托管在装有 Apache 的 Linux 机器上,但有一个 IIS 服务器,其 ARR 模块设置在反向代理中以转发负载平衡请求。