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.
精彩评论