





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






























See discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/
Article in ACM Computing Surveys · June 2015
DOI: 10.1145/
CITATIONS
READS
3 authors , including:
Some of the authors of this publication are also working on these related projects:
Cloud Performance Analytics View project
Securing Networks and Cyber-physical Systems View project
Olumuyiwa Ibidunmoye Umeå University 15 PUBLICATIONS 38 CITATIONS
SEE PROFILE
Erik Elmroth Umeå University 166 PUBLICATIONS 3,205 CITATIONS
SEE PROFILE
All content following this page was uploaded by Olumuyiwa Ibidunmoye on 18 July 2015.
The user has requested enhancement of the downloaded file.
Performance Anomaly Detection and
Bottleneck Identification
Abstract In order to meet stringent performance requirements, system administrators must e↵ectively detect undesirable performance behaviours, identify potential root causes and take adequate corrective measures. The problem of uncovering and understanding performance anomalies and their causes (bottlenecks) in di↵erent system and applica- tion domains is well studied. In order to assess progress, research trends and identify open challenges, we have reviewed major contributions in the area and present our findings in this survey. Our approach provides an overview of anomaly detection and bottleneck identification research as it relates to the performance of computing systems. By identifying fundamental elements of the problem, we are able to categorize existing solutions based on multiple factors such as the detection goals, nature of applications and systems, system observability, and detection methods. 1
⇤ (^) cACM, 2015. This is the author’s version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in ACM Computing Surveys, VOL. 48, ISS. 1, June 2015 http://dx.doi.org/10.1145/ (^1) ACM Reference Format: Olumuyiwa Ibidunmoye, Francisco Hernandez-Rodriguez, and Erik Elm- roth. 2015. Performance anomaly detection and bottleneck identification. ACM Comput. Surv. 48, 1, Article 4 (June 2015), 35 pages. DOI: http://dx.doi.org/10.1145/
2 Background
The performance of computer systems is typically characterized in terms of the duration taken to perform a given set of tasks or the rate at which these tasks are performed with respect to the amount of system resources consumed within a time interval [10]. Performance metrics are key performance indicators (KPI) derived from fundamental system measurements (such as count, duration, and size) to describe the state of operation of a computer system. The two most popular metrics are the response rime (or latency) and throughput. Latency is broadly used to describe the time for any operation to complete, such as an application request, a database query, a file system operation. The throughput of a system is the rate of work performed. For instance in web applications, Throughput is the number of users’ requests completed within a time interval (e.g. requests or transactions completed per second) [10]. System resources includes physical components such as the CPU, memory, disk, caches, network and virtual components such as the network connections (e.g. sockets), locks, file handles or descriptors [10]. Resource capacity describes the storage size or processing strength of a given resource such as the number of CPUs, and the size of physical memory or disk. Resource utilization of an application typically captures the amount of capacity used with respect to the available capacity. For example CPU usage is measured as the amount of time (in percentage), the CPU is busy executing instructions from an application while memory utilization measures (in percentage) amount of storage capacity consumed by a particular process or application. Utilization of network resources may capture the ratio of number of packet transmitted to the full transmission capacity of a network link in a given time interval [[11]; [12]]. In the following sections we present various aspects of the PADBI problem.
Generally, anomalies can be seen on a graph, as a point or group of data points lying outside an expected normal region [13]. In performance studies the data points are discrete measurements of a performance metric, throughput for example. Fig. 1(a) is a plot of latency against time for an hypothetical system. The two homogeneous clusters (N 1 and N 2 ) represent the normal operating region while the points (p 1 and p 2 ) or group of points (O) falling outside the normal regions are anomalies or outliers. Fig. 1(b) captures another example of throughput anomaly, the group of points P represent a short dip in system throughput.
(a) Latency anomaly. (b) Throughput anomaly.
Figure 1: Illustration of anomalies.
2.2.1 Types of Anomalies
Chandola et al [9] identifies three basic types of anomalies; point, collective and contextual anomalies. These types only capture anomaly in terms of individual or contiguous data points, however, performance metrics are also known to commonly exhibit characteristic shapes when a resource is saturated [14]. Therefore we present one more type of anomalies, the pattern anomaly, which characterizes performance behaviours in terms of the structure or shapes of their curves rather than finite data points [15].
deviation from the mean (i.e. >= μ ± 3 ) may be considered a point anomaly if the expected behaviour is 1 standard deviation from the mean (i.e. <= μ ± 1 ). In Fig. 1(a), points labeled p 1 and p 2 are point anomalies. Point anomalies are the dom- inant type of anomalies in majority of literature that we reviewed. They commonly manifest as spikes in application latency or system resource utilization measurements. Fig. 2(b) shows a plot of application latency with respect to time. The solid dots indicates detected point anomalies.
(a) Anomalous latency growth pattern. (b) Latency spikes.
Figure 2: Latency anomalies.
A bottleneck is a resource or an application component that limits the performance of a system [10]. Malkowski et al [16] describes a bottleneck component as a potential root- cause of undesirable performance behaviour caused by a limitation (e.g. saturation) of some major system resources associated with the component [17]. Such components often exhibit frequent congestion of load [18]. Also, application or system metrics correlating with an observed performance limitation are referred to as bottleneck metrics [19].
2.3.1 Types of Bottlenecks
2.3.1.1 Resource Saturation Bottlenecks A resource is saturated when its capacity is fully utilized or past a set threshold [10]. For example, Fig. 3 depicts a saturated CPU past the threshold usage level of 70%. According to Gregg [10] saturation may also estimated in terms of the length of a resource queue of jobs or request to be served by that resource. Saturation causes di↵erent system resources to be bottlenecked di↵erently with varying performance impact. CPU— near 100% utilization resulting in congested queue and growing latency. Memory— constrained capacity due to limited physical memory or deprivation
the primary causes. Secondary causes that further explain primary causes and e↵ects are represented with red slanted arrows. The thick horizontal arrow, the spline, depicts how primary and secondary causes can be used to explain main e↵ects from left to right.
Figure 4: Cause-E↵ect Relationships of Performance Anomalies & Bottlenecks
2.4.1 Application Issues
Application level issues such as incorrect tunning, buggy codes, and software updates are examples of bottleneck sources [21]. Incorrect application configuration and updates may introduce unexpected resource bottlenecks [2].
2.4.2 Workload
Bursty application loads are characterized by periods of continuous peak arrival rates that significantly deviate from the average or expected workload intensity. Internet phenomena such as flash-crowds 6 culminate into workload burstiness [18]. The undesirable e↵ects of such load behaviour include congested queues, oversubscribed threading resources, present of short and uneven peaks in resource and performance measurements [22].
2.4.3 Architectures & Platforms
Transient events such as those introduced by underlying system architecture or operating systems (e.g. memory hardware errors), occur over short timespan. Multiple occurrence of such transient errors and events results in bottlenecks that are hard to detect. Wang et al [23] and Mi et al [18] have shown how JVM garbage collection and Intel SpeedStep technology can induce bottlenecks. In modern systems with multi-core NUMA architecture, the location of memory relative to a processor may a↵ect application performance especially those with memory-bound workloads [24].
2.4.4 System Faults
Faults in system resources and components may considerably a↵ect application performance [25] with significant cost. System failures may be intermittent, transient or even permanent. Reasons for such failures can be attributed to software bugs, operator error, hardware faults, environmental issues, and security violations. In recent times, many popular web application services have been hit by failures that temporarily disrupt their application services for some time [1].
2.5.1 Nature of the problem
The complexity of today’s systems makes the process of detecting performance issues and identifying root-causes non-trivial. We identify the following as the major challenges;
2.5.2 System Goals
The general research questions behind PADBI systems are;
We refer to the goal of systems addressing the first question as performance anomaly detection (PAD). Systems addressing the second and third question are classified as per- formance bottleneck identification (PBI). In many cases we observed a blurred line between papers addressing anomaly detection and those addressing bottleneck detection. We catego- rize such systems (i.e. addressing all the three questions) as performance anomaly detection and bottleneck identification (PADBI). Table 1 classifies recent literature according to their goals, with PAD, PBI and PADBI systems accounting for 53%, 29% and 18% respectively of all literature reviewed as presented in Table 9 and 10 of Appendix A.
Table 1: Recent literature by goals
PAD PBI PADBI [28] [29] [30] [31] [27] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41]
Generally, the output of PADBI systems may include a set of anomalous performance indices, a time-stamp (time of incident), a set of anomalous metrics, a label (in case of learning based systems) — an assigned class to which a sample belongs e.g. normal or anomaly, and an anomaly score— the degree to which a case is considered anomalous. The performance of PADBI systems themselves and their sensitivity are evaluated based on the following metrics;
2.5.4 Data
Performance data are a time series of the values of a set of performance metrics, systemat- ically sampled over a regular interval. In this section we briefly outline important aspects of such data. Characteristics of Performance Data. Performance data are quantitative in nature. A performance metric is an attribute of a system or its component parts defining a state of the system. In general terms, metrics may also be referred to as features in some literature. A case or instance is a closely related set of features— a vector capturing a particular state of system at a point in time.
Sources of Performance Data. The bulk of performance data come from extensive mea- surements of metrics at two levels. Application metrics— these are foreground or in-band metrics that captures the current state or health of an application. Examples include appli- cation response time and throughput, number of application users and database connections. System metrics— these are background or out-of-band metrics that capture the current state of the underlying system. Background metrics encompass not only resource utilization metrics but also hardware counters and error events. Examples are CPU utilization, number of IO read/write requests, IO wait time, CPU queue length etc.
2.5.5 Data Collection
Monitoring is used to observe the runtime performance of a system by collecting both application and system level metrics using automated third-party tools or via built-in Kernel counters. The e ciency of the detection process is influenced by three major aspects of data collection that are discussed next. System Observability: White, gray or black box? The observability property of an appli- cation is greatly dependent on the type of infrastructure. In dedicated cluster environment, administrators have access to both application source codes and underlying infrastructure (white-box ), such that both profiling and deep source tracing are possible possible. Whereas in cloud environments, cloud providers see applications as black-boxes while service providers (application owners) lack a global view of the infrastructure outside of their VMs. In gen- eral, white-box and gray-box systems allows for full and partial source code instrumentation respectively. Such modifications are generally intrusive with significant runtime overhead. Black-box applications expose detail visibility into the application thus limiting the amount of insights achievable but they be profiled in a non-intrusive manner [60]. Profiling vs Tracing. Profiling extends beyond logging the state of system to studying the resource consumption behaviour and dependencies in order to assess the overall performance of the system. It also involves establishing analytical models that may be used to describe the dynamics of the system and predict performance [69]. Examples of popular profiling tools include ps, sysstat, htop, top, collectd, Nagios, Ganglia, apachetop, dstat, and iftop. Tracing is used to track fine-grained network or source-level events and mis-behaviour via source code instrumentation. In addition to tracking the occurrence of certain events, tracing may reveal the execution flow, actions performed, caller-thread, and time spent in specific code blocks [70]. Runtime code instrumentation is a common tracing method. Tracing platforms such as Aspect Oriented Programming [71] and Java Byte Code instrumentation [[72];[73]] have been used to observe applications. Examples of third-party tracing tools are KProbe, AspectJ, JimysProbe, Dtrace, Magpie, and Strace. Influence of sampling interval. The volume of data generated by monitoring depends not only on metric space but also the rate at which we collect them. Shorter sampling inter- vals give finer resolutions than longer ones with additional compute and storage overheads. Longer sampling intervals produce lighter data but may miss out on transient performance events. An adaptive and selective monitoring is proposed in [53]. The technique begins with a baseline sampling interval and continuously adjust the interval on-the-fly to adapt to the changing application behaviour. Also, metrics may be sampled selectively on demand.
3 Solution Strategies and Methods
Conventionally, the approach to detecting performance problems involves continuous estima- tion of models of normal system behaviours at specific points of interest. New performance observations that fail to match (within some acceptable confidence levels) existing models are flagged anomalous and system administrators alerted accordingly [39]. However, many solutions employ more complicated techniques (such as statistical and learning methods) while following one or more strategies to achieve some detection goals. Di↵erent detection strategies and techniques are presented in sections 3.1 and 3.2 respectively.
Existing PADBI systems often follow one or more strategies for robustness. A strategy defines the set of policies to achieve a detection goal. The choice of strategy is greatly influenced by system observability as well as whether the detection is to take place in either o✏ine or online mode. O✏ine detection is a ”post-mortem” identification and analysis of performance issues. Online detection is performed at run-time. All strategies use thresholding to prune and complement detection decisions in one way or the other. A threshold is a limit value or range of values for parameters or metrics of interest beyond which an event is raised. Example thresholds include the p-value and R 2 (coe cient of determination) in statistical detection, distance from centroid (clustering), and entropy bounds (information theoretic) in machine learning detection. Setting thresholds becomes cumbersome when many parameters and metrics are involved. Modern system exhibit dynamic behaviours that consistently violates the ideal set thresholds. It is therefore expedient that the right thresholds are estimated. Threshold values are also expected to evolve with respect to change in underlying execution environment. In addition, it is crucial to understand the sensitivity of varying thresholds on detection accuracy. Based on existing literature, we have identified four important strategies presented in sections 3.1.1, 3.1.2, 3.1.3 and 3.1.4. References of research contributions in each category can be found in tables 9 and 10 of Appendix A.
3.1.1 Signature-based Detection
Applications exhibit specific behaviours at runtime that characterizes their performance such as their resources utilization, their performance and load saturation rates. Such run- time characteristics are called signatures, fingerprints or profiles. PADBI systems generate signatures as compact run-time representations of important performance behaviours of an application. A signature may capture a normal system state or a deviation from that— anomaly signature. Signature-based detection is a data-driven approach that consume out- put of application profiling or tracing. Baseline signatures of prevailing system behaviour are generated in real-time and are then used to filter new observations for unwanted be- haviours. An important attribute of signature-based detection is that signatures are dis- covered at runtime and may not require that a signature history is maintained. Generally, signature-based strategies require domain knowledge of and global snapshot of system state to achieve high accuracy. They usually record low false-positive detection and are suitable for known anomalies [[74]; [75]; [76]; [77]; [2]].
3.1.2 Observational Detection
Applications can be observed through direct experimentation, staging (usually in a con- trolled environment) followed by in-depth analysis of observed anomalies and root-cause identification. To collect data, applications are either profiled in a black-box manner or source code instrumented for tracing. This approach covers both real-time analysis and ”post-mortem” analysis of log files to discover sources of problems. Observational detec- tion may also involve the staging of applications and systems where faults, anomalies and bottlenecks are deliberately injected in order to understand system behaviour under such conditions. This approach is beneficial in various ways. First, it helps to prevent the limitation of hasty assumptions found in systems based only on analytical and simulation models. Secondly, it enables the understanding and identification of intrinsic behaviours of a system. Because this approach depends mostly on experiential and cognitive knowledge, it yields high accuracy in detecting known and unknown anomalies. This however, makes it di cult to implement in real-time real time systems because the experiential knowledge of right thresholds, transient anomaly behaviours have to be encoded into an automatic mechanism [[78]; [53]; [79]].
3.1.3 Knowledge-driven Detection
In specific enterprise systems, performance issues are often periodic with known root- causes and potential remedies. Many research and industrial systems leverage on such known anomalies and bottleneck definitions to identify and address performance prob- lems. Knowledge-based detection approach identifies performance issues and their causes based on historical records of previously observed anomalies. It maintains a dynamic store (knowledge-base) where definitions of known anomalies, their possible root-causes are main- tained. The detection of new issues often trigger an update of the knowledge-base. These definitions are converted into a set of formal rules that can be manipulated by an inference engine to detect performance issues and identify the root-causes. Although there exists some similarity between knowledge-based and signature-based detections, generation of rules and
Table 3: Literature on regression-based approaches.
Author Methodology
Presents a Regression-based TM model for identifying per- formance anomalies in geographically distributed applications. Tested with commercial applications such as ACME, FT, and VDR.
Proposes an approach using Non-negative Least Square(NLS) re- gressive TM models for estimating resource demands by di↵erent client transactions and applicability in resource provisioning.
[31] Presents Signature-based anomaly detection built on [96]
Demonstrates how stepwise linear regression addresses model ”overfitting” problem in [96] and further present a segmentation- based method (as an extension of [31]) for detecting performance changes in enterprise web applications.
Present a Regression-based diagnostic framework for analyzing performance anomalies and potential causes of SLA violations in virtualized systems. Their approach is based on Lassio, a vari- ant of the Least Angle Regression(LAR) algorithm to identify suspicious system metrics accounting for observed performance anomaly.
[30] Models the relationship between application metrics and system metrics for metric selection, reduction and anomaly detection.
Maximization (EM) algorithm [88]. Given a data set X composed of n normally distributed features {x (1)^ , x (2)^ , ..., x (n)^ } with cor- responding parameters {μ 1 , μ 2 , ..., μ (^) n } and { 12 , 22 , ..., (^2) n }, the Gaussian probability density
function (PDF) for each feature x (i)^ is defined as P (x (i)^ ; μ (^) i , (^2) i ) = (^) (^) i^ p^12 ⇡ exp( 12 ( x^
(i) (^) μ (^) i (^) i )^
The detection procedure proceeds first by estimating parameters μ (^) i and (^) i for each fea- ture x (^) i. A new observation of the form X = {x (1)^ , x (2)^ , ..., x (n)^ } is classified anomalous if P (X) < ✏ where P (X) is the sample’s probability of being normal. The combined PDF of the dataset P (X), is estimated as the product of the PDFs of each feature i.e. P (X) =
Q (^) n i=1 P^ (x^
(i) (^) ; μ (^) i , i (^2) ). The value of ✏ can be varied depending on application re-
quirements [[89]; [90]]. Other density-based methods include the Parzen Windows Estimation [91], the Grubb’s test [92] and the Student’s t-test [85].
3.2.1.2 Regression Analysis Regression analysis is a methodology for investigating relationships between performance metrics and to quantify the statistical significance of such relationships. For instance, regression analysis may explain how variation in load influences a given KPI with the assumption that the relationship (linear or non-linear) between them is known a-priori. The goal of regression is to estimate the set of model parameters that minimizes the absolute or the squared error. Commonly used algorithms for estimating model parameters include Ordinary Least Squares(OLS), Least Angle(LA) and Recursive Least Square(RLS) [93]. For example, given a linear model of the form T = ↵(U (^) cpu ) describing the relation- ship between throughput and CPU utilization, a regression-based PADBI system first fits this model on a training data to estimate parameter ↵, the standardized p value, and the coe cient of determination (R 2 ). And for each test instance the model computes the residuals—the variability in the test instance not explained by the model. The magnitude of the residuals are used to determine an anomaly score [9]. New observations falling outside the confidence interval produced by the model may be classified as anomalous [[94]; [95]]. An interesting use of regression models in modeling enterprise web applications is in generating Transaction Mix (TM) models. These models are used to describe application performance as a function of the mix of transactions (or requests) processed per unit time and their cor- responding resource utilization. They are generally used for capacity planning and detecting transaction performance problems. Table 3 outlines literatures based on regression models.
3.2.1.3 Correlation Analysis Correlation quantifies the degree of association between performance metrics. The interdependency of variables are estimated as a coe cient R
Table 4: Literature on Correlation-based approaches.
Author Methodology
Presents a performance management system where correlation analysis is used to identify important performance metrics and estimate the influence of specific application services and system resources on such them.
Proposes an approach to identify potential root-causes of observed performance variation as either due to workload change or appli- cation update by computing the Pearson coe cient of correlation between aggregated workload, latency and system metrics over some time window.
Presents a method using correlation analysis to selecting model parameters. By filtering metrics showing collinearity relationships above a set threshold, they are able to reduce the dimension of models for detecting performance anomalies in virtualized infras- tructures.
Uses correlation analysis to identify variations in performance metrics in a cluster of Virtual Machines (VM). They also show a technique to characterize anomalies by defining anomaly sig- natures in terms of changes to correlation between VMs in the cluster.
[59] [67]
Presents a Kernel-based Canonical correlation method to discover the correlation between workloads and performance in Internet- ware and how this is used for anomaly detection.
Presents a novel Kriging-based model of system performance as a function of dynamic resource allocation and workloads to predict and detect performance problems.
Proposes a correlation-based method for automatic identification of associations among performance counters in a distributed sys- tem and how the association is used for detecting anomalies.
in the range 1 to +1. Positive R values indicates a trend of increase in one variable as the other increases. Negative R values is a trend of decrease in one variable as the other increases. Variables sharing no association have R values of 0.0. Commonly used algorithms to estimate R are; the Pearson, the Kendal rank and the Spearman correlation [3]. Lets look at a simple example of how correlation may be used for detecting anomaly behaviour. Assume the correlation coe cient between two performance metrics A and B have been estimated in the confidence interval [R (^) min , Rmax ] based on some training datasets. New observations of A and B over a time window [t 1 , tn ] in the form W (^) a = {a 1 , a 2 , .., a (^) n } and W (^) b = {b 1 , b 2 , .., b (^) n } are anomalous if the R value between W (^) a and W (^) b falls outside the expected range [R (^) min , Rmax ]. Canonical correlation is an advanced method that has been demonstrated for finding the linear association between one or more performance metrics. Given a vector of metrics X = {x 1 , x 2 , x 3 , ...x (^) n } and Y = {y 1 , y 2 , y 3 , ...yn }, the method computes the canonical variates (u, and v), the orthogonal linear combination of X and Y , that best capture the variability within and between X and Y. Kernel canonical correlation [97] is a popular variant of this method. See Table 4 for references relating to correlation-based systems.
3.2.1.4 Statistical Process Control Statistical process control (SPC) [99], is a quality control method widely used to monitor production processes for early detection of undesir- able variation in process output. SPC provides a set of control charts, such as CUSUM, Shewart (ImR or XmR) charts, for monitoring process stability and variation. According to Bereznay and Permanente [100], SPC is not suitable for interval based sampling data such as system performance traces. This motivates the development of the Multivariate Adaptive Statistical Filtering (MASF) method. MASF, [101] is a SPC framework for de- tecting changes in a Gaussian distribution. MASF uses parameters mean (μ), standard deviation ( ) and variance ( 2 ) of data collected during normal system operations as the basis for filtering subsequent system measurements for anomalous behaviours. For example, a MASF-based detection policy may set a control limit (CL) at the mean μ, a upper control limit (UCL) at (μ + 3 ) and a lower control limit (LCL) at (μ 3 ). These control limits
and change in underlying execution environments. Supervised learning techniques do not easily lend themselves to frequent updates of training the dataset.
Unsupervised learning Unsupervised learning algorithms require no training data nor labeled data. The objective is to discover hidden patterns or regularities in the data, similar to density estimation in statistical. Unsupervised learning techniques cluster input data into classes based solely on their statistical properties. No assumption however, is made of the distribution of the underlying data. For improved accuracy it expected that normal data instances are more frequent in the dataset than abnor- mal instances. Techniques in this category are amenable to changes in the underlying system environment since no training is involved. And are particularly suitable for detecting unknown anomalies in cloud datacenters where precise definition of anomaly characteristics may not always exist.
Semi-supervised learning An emerging approach is to maximize the best of supervised and unsupervised learning. Semi-supervised algorithms assume a small chunk of the dataset is labeled usually the normal class and the remaining unlabeled instances are anomalous. They often out-perform their supervised and unsupervised counterparts as they leverage the presence of labeled data to identify inherent structure in the data. A similar approach is called the weakly-supervised or bootstrapping method. This method begins by training the classifier with a few training examples. When the classifiers finds positive test instances, it augments the original training data with the new instance and retrains the classifier. The performance of bootstrapping improves as the size of training data grows given False Positive detection is minimal. Bootstrapping is well suited for large-scale infrastructure where definitions of normality and abnormality evolve according to changing execution context.
The operation of a learning based PADBI system is often enhanced by two pre-processing tasks described below.
Dimensionality Reduction To handle problems with many performance metrics, the metric space may be reduced by projecting the metrics to a new space where only the most relevant is preserved. Principal Component Analysis (PCA) is common method for doing this. PCA takes k correlated metrics as input and reduces them to m k non-dependent metrics. These m metrics can be interpreted as linear combina- tions of the original set [[110]; [32]]. Other methods for dimension reduction include Factor analysis, Independent component analysis, and Non-linear PCA [111].
Similarity Identification Metrics with high similarity a↵ects the e ciency of learning algorithms such as clustering. A common method of evaluating similarities between features is based on the Mutual Information algorithm from the domain of Information Theory [[112]; [113]].
Unlike statistical detection, learning techniques do not make assumptions about the under- lying distribution of data. We identify a few references of each type of learning in tables 6, 7, and 8. We further describe commonly used learning techniques in literature in sections 3.2.2. through 3.2.2.4.
3.2.2.1 Classification-based Techniques Classification-based learning algorithms are special cases of Supervised learning. The objective is to determine if data instances in a given feature space belongs to one class or multiple classes. During a training phase, the algorithm identify classes and learn a model that associate each class label with the characteristics of features present in the data. The testing phase use these models to classify new data samples. Ruled-based detection systems are specific example of how classification learning can be used in detecting anomalous behaviours. Common classification techniques include Decision Trees, Support Vector Machines, Artificial Neural Networks, and Bayesian Networks [118].
Rule-based techniques The goal is to learn as many rules that captures normal be- haviours of a system as possible. First they discover rules from the training data using Decision Trees, Association Rules, C4.5 classification. During the testing phase, for each test instance, the best rule that captures the instance is used to compute an anomaly score for designating the test instances as anomalous or normal. A rule has an associated confidence score proportional to the ratio between the number of correct classification by the rule and total number of cases covered by the rule. The anomaly
Table 6: Supervised PADBI Systems.
Reference Technique Methodology
Bayesian classifier and Tree augmented networks (TAN).
Presents a method for predicting and classifying anomalies.
[32] Decision trees and TAN.
Presents a technique for reducing metric dimensions based on Mutual Information and PCA and identi- fying performance anomalies Tree-based classifier.
[49] Decision Tree Presents a decision-tree based automated approach for detecting performance bottlenecks.
Tree augmented bayesian networks (TAN).
Proposes a method exploring TANs as a basis for detecting SLO violations and identifying sets of sys- tem metrics that caused the violation in multi-tier web applications.
[68] Bayesian classification
A stream-based anomaly detection method is used to detect anomaly symptoms and infer their root- causes.
Tree augmented network, Bayesian networks, LogicBoost, C4.5 decision tree.
Explores the performance of various machine learn- ing classifiers with regards to bottleneck detection in an enterprise applications.
Bayesian classifiers, Auto-regressive models, Multivariate regression
Presents a comparative study of the performance of three machine learning and statistical methods to predict the number of performance SLA violations.
Table 7: Unsupervised PADBI Systems
Reference Technique Methodology
Local Outlier Factor (LOF)
Proposes an online anomaly detection approach for web applications present an incremental clustering algorithm for training workload patterns online, and employ LOF in the recognized workload pattern to detect anomalies.
Self-Organizing Maps (SOM)
Presents an anomaly detection mechanism in IaaS Cloud using SOMs to learn emergent system be- haviour and predict unknown anomalies.
[110] Bayesian ensemble models
Proposes an hybrid learning approach by character- izing normal execution states of the system as an ensemble of unsupervised Bayesian models and uses decision tree to predict and detect system failures in a Cloud environment.
Local Outlier Factor (LOF)
Presents an adaptive method extending the Local Outlier Factor algorithm for detecting both contex- tual and unknown anomalies in a Cloud system.
Non-parametric Cluster- ing
Proposes a decentralized approach for detecting anomalies in Hadoop clusters based on Hierarchical Grouping and majority voting.
3.2.2.4 Information Theoretic Techniques Information theory provides many mea- sures for estimating the degree of dispersal or concentration of the information content of a data set [122]. The primary assumption of these methods is that anomalies induce ir- regularities in the information content of a given data set [9]. Also they are very generic in nature with no need for parameterization [123]. The Entropy information measure or Shannon-Wiener Index [124] estimates the degree of uncertainty in a given data set. Given a random variable X, its entropy is computed as H(X) =
P (^) n i=1 P^ (x^ i^ ) log(P^ (x^ i^ )), where P (x) is the probability distribution of X. The entropy H(X) lies in the range [0, log(n)]. Higher entropy values indicate more randomness in the data and may be more anomalous than data with lower H(X) values [125]. The degree of randomness between two random variables with probability distributions P (x) and Q(x) can be estimated by their Relative Entropy, H(Q|P ) =
Q(x) log Q P ((xx)). An application of this is to compare the entropy val- ues of two di↵erent windows of observation of a metric for detecting changes. The smaller the relative entropy the better. A H(Q||P ) value of 0 indicates that the probability dis- tributions P (X) and Q(X) exhibit the same randomness [126]. Entropy-based methods have been applied to study malicious behaviours in network tra c in [123] and [126]. Wang et al [127, 122] presents entropy-based methodologies for detecting anomalies in a cloud computing environment by analyzing metric distributions. Entropy generally provide more fine-grained insights of the data than traditional classification methods [128] and suitable for online unsupervised detection of unknown anomalies [122] since no assumptions of un- derlying distribution is made.
4 Research Trends
Before the 2000’s, contributions focused primarily on the detection of coarse-grained per- formance issues such as identifying hardware, software bottlenecks in the operating systems [[129]; [130]], networks [131] and client-server applications [132]. Due to the emergence of the Internet, the early 2000’s witnessed a slow trend towards web and distributed applications hosted in dedicated environments. Chen et al [42], Aguilera et al [82], Barham et al [133] proposed techniques for uncovering performance failures and anomalies with regards to web and distributed systems. By mid to late 2000’s e↵orts concentrated on building improved detection mechanisms targeting enterprise applications running in shared-hosting environment, grid and large scale infrastructures. This period witnessed the development of analytical approaches and tools such as; transaction mix models [134]; queuing-theoretic models [21]; signature models [[76]; [31]] and statistical techniques [[43]; [2]]. While e↵orts such as in [[49]; [16]] propose an experimental approach, [[44]; [50]] demonstrate the potential of analyzing the flow of messages across distributed components as a suitable method for detecting performance abnormalities. From the late 2000’s until now, the research contributions have been largely consolidated on achieving dependability [[37]; [17]], predictable performance [79], root-cause identification[[53]; [116]; [38]] and meeting performance guarantees [[54]; [27]] in cloud computing applications and systems. Similarly there are systems tailored to detecting and resolving workload re- lated anomalies [[36]; [41]]. Perhaps due to scale and the special requirements imposed by the cloud, advanced machine learning techniques have found extensive use in bottleneck and anomaly detection research [[62]; [55]; [40]; [39]]. Even though existing research contribu- tion is dominated by reactive solutions, there is increasing shift towards proactive approach. Predictive anomaly and bottleneck detection o↵ers better system reliability by raising in advance, just-in-time alerts and detecting potential bottlenecks before a performance issue occur. Examples of such approach can be found in [[8]; [61]]. Following the trends, we observe that cloud computing systems and applications will continue to attract the attention of performance anomaly detection and bottleneck identi- fication research. Characteristics of the cloud systems such as heterogeneity of resources and application services, variable load and performance variation complicate the problem of detecting performance issue [57]. We describe these challenges in detail in Section 5.
5 PADBI Systems in the Cloud: Specific Requirements
Cloud computing enables computing resources to be provisioned on demand as an utility over the Internet and dynamically scale in response to unpredictable demands and application workloads. A cloud infrastructure is typically characterized by a pool of heterogeneous hardware and software resources that are shared by many application services with disparate performance objectives [[135]; [136]]. The resulting resource contention and performance interference caused by resource sharing have significant impact on the performance of cloud services and systems [[39]; [122]].
Inherent characteristics of the cloud such as the heterogeneity of resource types and their interdependencies; the variability and unpredictability of load; and the complex architecture of cloud services; make the task of detecting and resolving performance problems more di cult. To meet stringent performance objectives and to achieve predictable performance, PADBI systems must take into consideration specific cloud requirements as described below.
6 Discussions & Future directions
The motivation for detecting unexpected performance behaviours and their root-causes is due to the significant impact they have on smooth operation of systems, the criticality of information they bear and the costly penalties due to loss of dissatisfied users. The choice of detection is influenced not only by the characteristics of the anomalies and bottlenecks of interest but also by the nature of data and system under test. PADBI systems based on statistical methods are only as correct as the correctness of the data, the assumption of its distribution and the fitness of the analysis. It is very important to collect the right data and quantity. Care must be taken to balance the proportion of normal samples to anomaly samples in the dataset to avoid the ”needle in a haystack” (^7) problem. Though parametric techniques assume known data distribution and best at
identifying well known anomalies, non-parametric methods are resistant to high variation in the data without knowledge of data distribution. Machine learning solutions can quickly sift through a massive metric space to identify patterns of interests or indistinct relationships. Learning techniques expect that normal data
(^7) A situation where it is nearly impossible to detect anomalous instances in the dataset because only a few anomalous instances exist in the training data.