list in the EP DB for fault-tolerance and rapid recov-
ery reasons and then subscribes to such metrics, when
they are new, in the Metric Publisher. The latter com-
ponent publishes the values of the metrics monitored
to potential subscribers. Thus, it could well match a
Monitoring Engine of an SBA management system.
Once registration of both the new EP and its met-
rics finishes, the EP addition is deemed successful.
Thus, the EP Parser can then store the new EP in
the EP DB for recovery reasons but also for gathering
statistics about EPs, when being detected by the Esper
Server. The EP DB takes the form of a model reposi-
tory able to store, query and manipulate CAMEL EP
models along with their statistics.
EP Deletion. For this action, the EP is first ob-
tained from EP DB. Then, EP Parser informs in par-
allel both CEP Server and Metric Subscriber about
the EP deletion such that: (a) the CEP Server can
deregister the EP’s EPL specification; (b) the Metric
Subscriber, after checking that the EP metrics to be
removed are not exploited in other EPs, can unsub-
scribe to these metrics to reduce system load.
EP Update. Here, the previous EPL statement is
updated with the new one generated by EP Processor.
Metric Subscriber also adds / removes metrics which
are / not needed any more by any EP, respectively.
The EP management actions can be initiated via
either the interaction of the proposed system with an
external agent/user or the use of a publish-subscribe
mechanism. This has the advantage that we can easily
switch from one to another interaction mechanism or
have both available at the same time.
The above analysis covered the interactions in the
context of EP management actions. Apart from this,
some system components continuously run to support
the delivery of the SLO evaluation functionality ex-
pected from the proposed system. The functionality
of these components in explicated in detail below.
While Metric Subscriber subscribes to metrics, it
can also asynchronously receive measurements for
such metrics from Metric Publisher. These mea-
surements are transformed by Metric Subscriber into
events that are fed into the CEP Server. Once the lat-
ter receives all suitable events, it can detect EPs and
subsequently inform the Event Publisher.
The EP Publisher will then publish these events to
interested EP Subscribers, which could take the form
of adaptation engines able to execute the respective
adaptation rule(s) triggered. In parallel to this publi-
cation, the EP Publisher also updates EP DB to mod-
ify the statistics of the EP(s) concerned.
The adoption of publish-subscribe mechanisms
for measurement retrieval and SLO event publishing
not only decouples the proposed framework from any
SBA Management system but also enables such sys-
tem to take any distributed or centralised form, es-
pecially concerning its adaptation part, to balance its
workload. This is achieved by enabling all distributed
system parts to subscribe to the EP Publisher to, e.g.,
manage their own adaptation space part, i.e., specific
EPs. As next sub-section will show, the presented log-
ical framework architecture has different physical im-
plementation options that could well fit the distributed
form of a SBA management system.
5.2 Physical Framework Architecture
The presented logical architecture can have various
implementation options at the physical level. To
choose the most optimal one, we need first to consider
what can be distributed in that architecture and how
the whole management system can be distributed.
For the whole management system, (3) levels can
be involved: (1) the global responsible to manage the
application as a whole; (2) the cloud one where man-
agement is restrained to a single cloud and all appli-
cation components are deployed there; (3) the user
VM level where management applies only on appli-
cation components hosted on that VM. In each level,
we also imagine that there are monitoring and adap-
tation components. Monitoring at the global level en-
ables to assess application and cross-cloud metrics as
well as application reconfiguration. Cloud-level mon-
itoring enables to assess cloud-specific metrics plus
perform adaptation actions, usually concerning appli-
cation component scaling. Finally, VM-level moni-
toring enables to assess instance-based metrics plus
adapt the application components hosted.
Our framework has the next distribution options:
(a) it can be distributed as a whole such that different
instances could be installed in different clouds; (b)
only parts incurring the most load can be distributed,
mapping to agglomerating the CEP Server and Event
Publisher. In the latter case, the distribution does not
need to follow any cloud-specific pattern. We just
scale that agglomeration based on the workload into
a suitable number of instances. The part mapping to
the Metric Subscriber could also be distributed, not
only due to the monitoring load to be faced but also
to reduce latency by following the pattern of distri-
bution of the SBA management system monitoring
part. The two parts that can be distributed are named
as event processing part (EPP) and monitoring part
(MP). The rest of framework components are also par-
titioned into a service part (SP), comprising the REST
service and EP Parser, and the DB part (DP) includ-
ing the EP DB. These parts could also be scaled; such
a scaling would remain at the same level and will be
CLOSER 2018 - 8th International Conference on Cloud Computing and Services Science
412