开发者

Creating an ASP.NET diagnostics page to be pinged by Load Balancer

开发者 https://www.devze.com 2023-01-18 08:01 出处:网络
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开发者_如何学Python health checks.

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开发者_如何学Python 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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号