创建由负载均衡器 ping 的 ASP.NET 诊断页面

发布于 2024-09-25 08:17:48 字数 145 浏览 1 评论 0原文

我们的服务器运营团队已要求 Web 开发团队 (ASP.NET) 在我们的应用程序中提供一个 URL,负载均衡器可以 ping 该 URL 来执行运行状况检查。

在此页面上应该执行什么操作?我认为我们应该尝试数据库连接以确保网络和数据库之间的连接。还要别的吗?

Our server operations team has asked the web development team (ASP.NET) to provide a URL in our application, which the load balancer can ping to perform health checks.

What should be executed on this page? I think we should attempt a database connection to ensure connectivity between the web and database. Anything else?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

呆橘 2024-10-02 08:17:48

您确实想要检查数据库配置、asp.net 配置、web.config 以及任何其他 Web 服务或依赖项。

这里是一个非常棒的代码项目,它可以让您以最少的编码开始。

Really you want to check the database configuration, asp.net configuration, web.config and any other web services or dependencies.

Here is a really great codeproject that will get you started with minimal coding.

娜些时光,永不杰束 2024-10-02 08:17:48

您的运行状况检查页面应该 ping 应用程序中的所有外部依赖项,并确保一切正常响应。其中包括:

  • 数据库

  • Web 服务

  • 动态加载的 DLL

  • COM+ 组件

如果所有测试通过,那么运行状况检查页面应该正确响应,以便负载均衡器可以使用该服务器。

Your health-check page should ping any external dependencies in your application and make sure everything is responding properly. That includes:

  • Databases

  • Web Services

  • Dynamically Loaded DLLs

  • COM+ Components

If all the tests pass, then the health-check page should respond properly so the load balancer can use that server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文