|
The SLA
Monitor is a component of the service provider. It receives
information about resource status from the Resource Monitor. The
information about the resource status is converted into the
respective SLO-terms and sent to the SLA Evaluator.
The functionality is as follows:
·
Collecting monitoring data from the
Resource Monitor
·
Sending current resource status to
the SLA Evaluator
Prerequisites
Software Installation
SLA Translator API
Prerequisites
The SLA Monitor relies
on the Microsoft .NET Framework 3.5. Necessary components for a
successful operation of the SLA Monitor are the SLA Repository, a
resource monitor (which is external to the SLA Management Framework)
and the SLA Evaluator service.
Note:
The SLA Monitor receives monitoring data from the Semantic Resource
Lifecycle Manager (SRLM). The URL of the SLRM has to be adjusted
(RMServerService below) to the actual hosting environment. For
information regarding the SLRM see the component in the
“Semantically Enhanced Resource Allocator Installation Manual.
Installation
The SLA Monitor must be
deployed on Microsoft Internet Information Services (IIS) on Windows
XP Professional, Windows Vista, Windows Server 2003 and Windows
Server 2008.
The SLA Monitor service
has configuration values which must be specified through the
Web.config file as shown below:
<appSettings>
<add
key="DaemonExe" value="PATH_TO_SLAMonitoringDaemon.exe" />
<add
key="GangliaLib" Value="PATH_TO_GangliaLib.dll" />
<add
key="SLARepository.SLARepositoryService"
value="http://localhost/SLARepository/SLARepositoryService.as
mx" />
<add
key="SLAEvaluator.SLAEvaluatorService"
value="http://localhost/SLAEvaluator/SLAEvaluatorService.asmx
" />
<add
key="RMServer.RMServerService"
value="http://autonomic.ac.upc.edu:8088/RM/RM" />
</appSettings>
Standard deployment
leads to the service being available on the local host under the
following address:
http://localhost/SLAMonitor/SLAMonitorService.asmx
SLA
Monitor API
|
Method |
string status CheckStatus( string SLA_ID ) |
|
Arguments |
string SLA_ID
–
The ID of the SLA that should be checked. |
|
Return Value[s] |
string status
–
null if the call fails. |
|
Description |
This method is called periodically by the SLA Monitoring
Daemon, a helper component of the SLA Monitor, who’s only
purpose is to call to the SLA Monitor periodically. The SLA
Monitor asks the Resource Monitor for up-to-date monitoring
information. That information is passed on to the SLA
Evaluator in the form of an SLA with measured values for each
SLO. |
|
Method |
void StartMonitoring( string SLA_ID, int
seconds, int times) |
|
Arguments |
string SLA_ID
–
The ID of a newly negotiated and agreed SLA.
string Sec
–
The time interval in a series of SLA monitoring
string Times
–
the frequency of a monitoring process. |
|
Return Value[s] |
None |
|
Description |
This method starts a monitoring process. |
|
Method |
void StopMonitoring( string SLA_ID ) |
|
Arguments |
string SLA_ID
–
A valid SLA ID for which monitoring is ongoing. |
|
Return Value[s] |
None |
|
Description |
Stops the monitoring. |
|