Web服务数据库/网站状态 [英] Web Service For Database/Website Status

查看:77
本文介绍了Web服务数据库/网站状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在试图建立(的简化版本)类似状态的网站亚马逊的服务运行状况仪表板

基本上,我需要在大约3数据中心和至少一个Up / Down消息了几个网站的连接。

我主要是熟悉C#和一些网络编程。我稍微熟悉的Web服务,它看起来像这将是实现这个的好办法。我可以Google我的方式,通过教程各个部分,但我不能确定的是这样的概述是如何工作的。

我理解的方式是将它分解为以下几个部分:


  • 状态网站 - ASP.NET

  • Web服务 - C#/ ASP.NET

  • 某种程序发送状态到Web服务 - ?C#

有关网站身份,地位,网站将会直接运行一个脚本来检查URL返回一个错误。

我在实现数据中心状态最简单的方法困惑。据我了解,我可以写一个Web服务,它会从数据中心的响应。就是做这个位于每个数据中心检查状态的C#程序(可能登录到SQL数据库),然后发送状态,以Web服务的最简单的方法?我也搞不清楚在得到这个信息的状态网站的最简单方法。我想最简单的方法是将Web服务写入其状态网站将读取的文件。另外,我想这需要时间Web服务调用和报告停电,如果它不以一定的时间收到的状态消息。

任何高层次概述帮助将不胜AP preciated。谢谢你。


解决方案

最简单的方法是从你的健康的定义开始。

决定什么标准,为数据中心的每个部件,确定健康。确定如何从数据中心可靠的服务器pferably衡量这些标准,$ P $。请注意,我建议你学会如何衡量他们的Web服务之外,因为你不熟悉的Web服务。

创建一个Web服务到可靠的服务器上运行来衡量这些标准。然后附加措施,Web服务,决定你应该怎么present结果返回到网站之后。

该网站可以再使用的结果从调用这些服务来更新状态仪表板。它可以使用AJAX调用的服务,所有的数据中心,是异步的。

这得到,如果你需要把稍微复杂一些的动作的基于数据中心的地位。例如,你可能需要一个按钮,如果数据库被发现倒启动数据库。


编辑:我也想确保你都知道这样的产品的系统中心产品来自微软。他们可能是矫枉过正,你在做什么,但他们提供了一个标准,用于监测数据中心的地位灵活的机制,并采取行动来纠正问题。此外,请参阅 HTTP://www.$c$cplex.com/dfo

I'm currently trying to build (a simpler version of) a status website similar to Amazon's Service Health Dashboard

Basically, I need to connect in about 3 Data Centers and a couple of websites with at least an Up/Down message.

I'm mostly familiar with C# and some web programming. I'm slightly familiar with web services, and it looks like that would be a good way to implement this. I can Google my way through tutorials for individual parts, but I'm unsure how the overview of something like this works.

The way I understand it is it would be broken down into these parts:

  • Status Website - ASP.NET
  • Web Service - C#/ASP.NET
  • Some kind of program to send status to the web service - C#?

For the website status, the status site will simply run a script to check if a URL returns an error.

I'm confused on the easiest way to implement the Data Center status. From what I understand, I can write a web service that will get responses from the Data Center. Is the easiest way to do this a C# program located in each Data Center that checks the status (probably logging into a SQL database) and then sending the status to the web service? I'm also confused on the easiest way to get this information to the status website. I guess the easiest way would be for the web service to write to a file which the status website would read. Also, I guess it would need to time the web service calls and report an outage if it doesn't receive a status message in a certain amount of time.

Any high-level overview help would be greatly appreciated. Thanks.

解决方案

The easiest way would be to start from your definition of health.

Decide what criteria, for each component of the data center, define health. Determine how to measure those criteria, preferably from a reliable server in the data centers. Note that I suggest you learn how to measure them outside of your web service, since you're not familiar with web services.

Create a web service to run on that reliable server to measure those criteria. Then attach the measures to your web service, after deciding how you should present the results back to the web site.

The web site could then use the results from calling these services to update a status dashboard. It could use AJAX to call the services, on all the data centers, asynchronously.

This gets slightly more complicated if you need to incorporate actions based on the status of the data center. For instance, you might need a button to start a database if the database is found to be down.


EDIT: I also want to make sure that you are aware of products like the System Center products from Microsoft. They may be overkill for what you're doing, but they do provide a standard, flexible mechanism for monitoring data center status, and for taking action to correct problems. Also, see http://www.codeplex.com/dfo.

这篇关于Web服务数据库/网站状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆