scieee AI-readable full text Open interactive document viewer

ALOJA: A benchmarking and predictive platform for big data performance analysis

Poggi, Nicolas,Berral García, Josep Lluís,Carrera Pérez, David

Abstract

The main goals of the ALOJA research project from BSC-MSR, are to explore and automate the characterization of cost-effectivenessof Big Data deployments. The development of the project over its first year, has resulted in a open source benchmarking platform, an online public repository of results with over 42,000 Hadoop job runs, and web-based analytic tools to gather insights about system's cost-performance1. This article describes the evolution of the project's focus and research lines from over a year of continuously benchmarking Hadoop under dif- ferent configuration and deployments options, presents results, and dis cusses the motivation both technical and market-based of such changes. During this time, ALOJA's target has evolved from a previous low-level profiling of Hadoop runtime, passing through extensive benchmarking and evaluation of a large body of results via aggregation, to currently leveraging Predictive Analytics (PA) techniques. Modeling benchmark executions allow us to estimate the results of new or untested configu- rations or hardware set-ups automatically, by learning techniques from past observations saving in benchmarking time and costs.

Full text

ALOJA: a Benchmarking and Predictive Platform for Big Data Performance Analysis Nicolas Poggi, Josep Ll. Berral, and David Carrera Barcelona Supercomputing Center (BSC) Universitat Politcnica de Catalunya (UPC-BarcelonaTech) Barcelona, Spain {nicolas.poggi,josep.berral,david.carrera}@bsc.es http://aloja.bsc.es Abstract. The main goals of the ALOJA research project from BSCMSR, are to explore and automate the characterization of cost-effectiveness of Big Data deployments. The development of the project over its first year, has resulted in a open source benchmarking platform, an online public repository of results with over 42,000 Hadoop job runs, and webbased analytic tools to gather insights about system’s cost-performance1. This article describes the evolution of the project’s focus and research lines from over a year of continuously benchmarking Hadoop under different configuration and deployments options, presents results, and discusses the motivation both technical and market-based of such changes. During this time, ALOJA’s target has evolved from a previous low-level profiling of Hadoop runtime, passing through extensive benchmarking and evaluation of a large body of results via aggregation, to currently leveraging Predictive Analytics (PA) techniques. Modeling benchmark executions allow us to estimate the results of new or untested configurations or hardware set-ups automatically, by learning techniques from past observations saving in benchmarking time and costs. 1 Introduction Hadoop and its derived technologies have become the most popular deployment frameworks for Big-Data processing, and its adoption still on the rise [15]. But even with such broad acceptance in industry and society, it is still a very complex system due to its distributed run-time environment, and its flexible configuration [17, 18, 20]. This makes Hadoop to be poorly efficient, and improving its efficiency requires knowledge of this complex system behavior. Not to mention all the emerging hardware and new technologies enhancing Hadoop that increase complexity of Hadoop systems. The ALOJA project is a research initiative from the Barcelona Supercomputing Center (BSC) with support from Microsoft Research and product groups [11] to explore and produce a systematic study of Hadoop configuration and deployment options. The study includes the main software configurations that can 1ALOJA’s Web application, tools, and sources available at http://aloja.bsc.es The final publication is available at Springer via http://dx.doi.org/10.1007/978-3-319-49748-8_4 2 N.Poggi, J.Ll.Berral, and D.Carrera greatly impact Hadoop’s performance [7]; as well as different hardware choices to evaluating their effectiveness and use cases including: current commodity hardware on which Hadoop systems where originally designed for [1], low-power devices, high-end servers, to new storage and networking2; as well as new managed Cloud services (PaaS). The intent of such study is to better understand how data processing components interact during execution and automate the characterization of Big Data applications and deployments. With the final purpose of producing knowledge and tools for the Big Data community, that can improve efficiency of already deployed clusters and guide the design of new-cost effective data intensive infrastructures. This article presents the evolution of the project, initial results, and some lessons learned while benchmarking Hadoop for over a year continuously; iterating software configuration options and over a hundred different hardware cluster setups. At the same time, discusses the motivation both technical and marketbased of such changes i.e., large search space and the emergence of economic Cloud services. As well as it overviews the different techniques employed to extract performance knowledge and insights from Hadoop executions, and exposes our current lines of research and focus. Since project beginnings almost two years ago, ALOJA’s target and perspective has first evolved from a low-level profiling of Hadoop distributed environment, which allows to understand the networking bottlenecks and how components interact; to performing extensive benchmarking —which is still expanding, creating the largest public Hadoop performance repository so far with over 42,000 job executions. The repository is then used to evaluate via aggregation and summarization the performance and cost effectiveness of the different configurations available in the project’s Web site, reducing both the size of data to be processed and stored. This reduction in data sizes allow us to share the platform a development virtual image to other researchers and practitioners directly, as well as to apply different Machine Learning (ML) techniques directly to the data [2]. While the results from the data aggregation efforts allows to process data interactively for the analytic online tools [2], the increasing number of configuration choices as the project expands in architectures and services —in the millions for benchmarks that a single iteration can take hours to execute, had led us to leverage Predictive Analytics (PA) techniques to be able to prioritize benchmarks and reduce the number of executions. PA encompasses a variety of statistical and ML techniques to make predictions of unknown events based on historical data [5, 13] —in this case the aggregated metadata of our benchmarking repository. We use the Intel HiBench benchmark suite [19] as representative workloads, and we use the ALOJA-ML toolkit, the machine learning extension of the ALOJA framework [21] for such learning. The purpose of ALOJA-ML is to discover knowledge from Hadoop environments, first predicting execution times for given known workloads depending on the Hadoop configuration and the provided hardware resources; then evaluating which elements of a given deployment 2Storage PCIe NAND flash, SSD drives, and InfiniBand networking ALOJA: a Benchmarking and Predictive Platform for Big Data 3 are the most relevant to reduce such running times. Our project goal is to find accurate models automatically to show and understand how our systems work, but also use them for making decisions on infrastructure set-ups, also recommendations for Hadoop final users towards platform and software configurations. At the same time supporting ALOJA’s goal of automating Knowledge Discovery (KD) and recommendations to users. An overview of the project’s evolution summarized in Figure 1, showing the different performance extraction techniques employed in the project, as well as the expansion to extract knowledge from Big Data applications to infrastructure providers. The next section describes in detail the motivation of such change in focus and efforts; while the pros and cons of each discussed with further details in Section 3. Fig. 1: Evolution of ALOJA: from performance profiling to PA benchmarking 2 ALOJA Evolution During the development of the defined phases for project ALOJA [11], we have experienced a shift from an initial approach of using low-level HPC tools to profile Hadoop runtime [3] based BSC’s previous expertise to higher-level performance analysis. Part of the initial work included inserting hooks into the Hadoop source code to capture application events, that are later post-processed into the format of BSC’s HPC tools, which are used to analyze the performance and parallel efficiency of supercomputing or MPI-based workloads. However, due 4 N.Poggi, J.Ll.Berral, and D.Carrera to the non-deterministic nature of Hadoop distributed execution, on top of the large number of software configuration options in Hadoop, some of the HPC tools were not directly applicable for finding best configurations for a particular hardware. Furthermore, our target has not been to directly improve the Hadoop framework codebase, but its deployment scenario. To compare configuration options, during the first months of the project we started an extensive benchmarking effort on different cluster architectures and cloud services; iterating software configurations to extract execution times that were comparable. The resulting repository of benchmarks can be found at our web site [2]. As the number of benchmarks in the repository grew, evaluating internal results for each was no longer feasible, either for the low-level performance analysis tools or for manually revising them. Performance metric collection and log parsing both for profiling and benchmarking, have become Big Data problem in itself as results grow. For this reason, aggregation into summaries of the execution characteristics i.e., sums and averages. In this way turning execution details into meta-data, which allow us to contrast different results more efficiently; at the loss of information on execution internals, but reducing processing time. To explore these results more efficiently, we then developed different Web views and filters of the aggregated executions from the repository’s online database. The analysis of results has led to a shift of focus in the project from the initial low-level profiling and Hadoop configuration, to cluster configuration and the cost/performance efficiency of the different systems. Another reason for this change in perspective has been a shift from benchmarking on on-premise to Cloud based clusters. Current cloud offerings for Big Data provide compelling economic reasons to migrate data processing to the Cloud [12] with the pay-as-you-go or even pay-what-you-process models. While the cloud has many benefits for cluster management i.e., dynamically scaling in servers, it also introduces challenges for moving data e.g., data is no longer local to nodes and it is accessed over the network. On the Cloud, due to the virtualized and public multi-tenant nature, low-level profiling becomes less relevant, as many samples of the same execution are needed to estimate average performance and results aggregation come into play. On top of this, for Platform-as-a-Service (PaaS) offerings, you might not have superuser access to the server to install packages or profiling the system [4]. Cloud providers also offer a great number of virtual machines (VM) options —at time of writing the Microsoft Azure Cloud offers over 32 different VM choices. Under this model, the same number of CPU processing cores and memory can be achieved by either having a larger number of small VMs (scaleout) or having a few larger VMs (scale-up) in a cluster. This great number of cluster configuration choices, which have an impact in the performance and the costs of executions [9, 14] has become one of the main targets of research and benchmarking efforts. Examples cloud VM size comparisons can found in our Web site [2]. These large number of Cloud topologies and services, hardware technologies, software configuration options that affect the execution time —and ALOJA: a Benchmarking and Predictive Platform for Big Data 5 costs— of the different applications, leave us with millions of possible benchmark executions in the search space. In order to cope with the increasing number of configuration options and new systems, the project was faced with the need first to do manual sampling from the search space, and grouping of results to extrapolate results between clusters. However, this initial approach has not been sufficient either, and still requires a large number of benchmarks. For this reason, we have leveraged Machine Learning (ML) techniques and implemented them as an extension of the platform. The generated prediction models allows us to estimate metrics such as job execution time for not-benchmarked configurations with great accuracy compared to classical statistical sampling and interpolation, as well as saving us time and execution costs. We are currently in the process of extending the use of such models on the platform to enable the Predictive Analytics (PA) [5, 13] to complement the descriptive analytical tools available. PA techniques also complement our goal of automating Knowledge Discovery (KD) from the growing benchmark repository. Having our efforts focused in PA, does not mean that we have stopped benchmarking or low-level profiling efforts. Each of the techniques have different uses cases and can complement each other i.e., PA is based on benchmarking metadata and profiling is used to debug or improve OS settings and configuration. An overview of the project’s evolution summarized in Figure 1, showing the different performance extraction techniques employed in the project, as well as the expansion to extract knowledge from Big Data applications to infrastructure providers. The next section compares each of the different performance extraction methods identified above. 3 Approaches to extract performance knowledge from Hadoop This section describes distinctive techniques to measure efficiency, performance, resource usage and costs employed by ALOJA. 3.1 Profiling BSC having strong background with HPC workloads and their performance [3], the preliminary approaches to ALOJA consisted in instrumenting Hadoop, to make it compatible with well established performance tools used for parallel supercomputing jobs e.g., for MPI and related programming models. This initial work was achieved by developing the now Hadoop Analysis Toolkit which leverages the Java Instrumentation Suite (JIS) [6], a tracing environment for Java application, inserting hooks into the Hadoop source code; and a network sniffer based in libpcap. These changes allowed us to leverage the already existing low-level tools, simulators and knowhow from the HPC world, at the cost of 6 N.Poggi, J.Ll.Berral, and D.Carrera having to patch and recompile Hadoop code3. Network traces allow us to study in great detail e.g, up to packet-level, the communication between components; both between nodes, as well as local data transfers as Hadoop uses remote and local services to transfer data. While employing the Hadoop Analysis Toolkit for profiling, we are able to understand at specifically what timeframe certain Map/Reduce (M/R) steps i.e., shuffle, sort, merge, and spill. As well as how components synchronized in the cluster during the different distributed tasks. While profiling allow us a deep understanding of the underlying execution and debugging code, the level of detail can be daunting if not with the intent of optimizing the Hadoop code, or working with drivers or accelerators. Another problem that we faced with profiling, is the large amount of data that it produces. While the overhead to produce it is not a main concern, it leaves us with a Big Data problem in itself. Figure 2 compares the amount of data that would have been produced by profiling if enabled for the 42,000 executions in the repository. We currently enable low-level profiling only on selected traces, when a particular execution requires a deep level of analysis and debugging. Fig. 2: Comparing the data sizes produced by each strategy (chart not in scale) 3.2 Benchmarking Due to the large number of configuration options that have an effect on Hadoop’s performance, to improve the efficiency of Hadoop requires manual, iterative and time consuming benchmarking and fine tuning over a myriad of software configuration options. Hadoop exposes over 100, interrelated configuration parameters 3Implementing dynamic code interposition is planned i.e., Aspect Oriented Programming ALOJA: a Benchmarking and Predictive Platform for Big Data 7 that affect its performance, reliability and operation [7, 9]. For this reason in ALOJA we have built an automated benchmarking platform to deal with defining cluster setups, server deployment, defining benchmarking execution plans, orchestration of configuration, and data management of results. While the platform is generic for benchmarking, our use case has been Hadoop. Hadoop’s distribution includes jobs that can be used to benchmark its performance, usually referred as micro benchmarks, however these type of benchmarks usually have limitation on their representativeness and variety. ALOJA currently features the HiBench open-source benchmark from Intel [8], which can be more realistic and comprehensive than the supplied example jobs in Hadoop. These are considered a representative proxy for benchmarking Hadoop applications, categorized into micro-benchmark,search indexing,machine learning and analytical queries types. We have currently gathered over 42,000 executions from the different HiBench benchmarks, that we use as base of our research to automate characterization and KD for Big Data environments. In contrast to profiling, the benchmarking efforts operates more as black-box, where different Big Data frameworks and applications can be tested and summaries about their execution time and performance metrics are collected. However, we do include in ALOJA specific features for Hadoop, such as log parsers to detect the different phases in the M/R process, which could be extended for other frameworks if needed. Over time, collecting performance metrics have also become a Big Data problem: we have over 1.2TB of performance metrics for the executions after importing the executions into the database. A description of the architecture in ALOJA can be found in [11]. While the data is 45x smaller than traces from profiling as can be seen in Figure 2, as we get more executions, we currently use this data mostly for debugging executions manually. While we still keep it for every execution, summarizing data via aggregation has become more useful to extract cost and performance knowledge from groups of results. 3.3 Aggregation and Summaries After a benchmark is executed and stored, the produced folder is then imported into a relational database. This process involves uncompressing data, transforming formats by using command line tools, parsing Hadoop logs, and importing the data into the database. This operation is a one time process, however the execution folders are kept in case they need to be reimported in the future due possible changes to the import routines or the use of external tools compatible with the logs. Once the data is on the relational database, ALOJA-WEB, the website component, interacts directly and interactively with it though SQL. This allows us very simply to use SQL group by statements on the data on different screens of the site. As Hadoop job executions are non-deterministic, and several reasons can affect a particular execution performance i.e., multi-tenancy in the Cloud, or different random data generated by the benchmarks; all repeating executions are grouped and averaged (or other statistical functions are performed such as means or percentiles). Also, different views in ALOJA-WEB, allow to group 8 N.Poggi, J.Ll.Berral, and D.Carrera together executions that share some common parameters i.e., same number of datanodes, disk configuration, or number of mappers; to complement missing executions and produce a common result. While these results need to be revised and validated, i.e., mixing executions with different cluster sizes might produce incoherent results; they can quickly offer a view on the tendency for the costperformance. An example of these tools can be found in the Config Evaluations and the Cost/Perf Evaluations menus; including tools that allow to find the best configuration found with a particular filter, explore configuration parameters scalability, and rank clusters by cost-performance. Aggregating results allows us to execute benchmarks only sampling the search space, and grouping to complement the results. Another feature is that it allows us to average noise or outlier executions automatically. While this is an improvement to analyzing benchmark result individually, it has several drawbacks: it exposes us to the problems of averages, that might not represent a well distributed value; also might lead to wrong conclusions if the grouped data is not analyzed and validated manually carefully, as mixing technologies and cluster sizes in these groups. For these reasons, and continue our goal towards automation, we have started the PA extension to overcome some of these shortcomings and automate Knowledge Discovery. 3.4 Predictive Analytics While the results from the data aggregation efforts allows to process data interactively for the analytic online tools [11], the increasing number of configuration choices as the project expands in architectures and services —in the millions for benchmarks that a single iteration can take hours to execute. In order to cope with the increasing number of configuration options the project was faced with the need first to do manual sampling from the search space, and grouping of results to extrapolate results between clusters. However, this initial approach has not been sufficient either, and still requires a large number of benchmarks. For this reason, we have leveraged Predictive Analytics (PA) techniques to be able to optimally execute a smaller number of benchmarks. PA encompasses a variety of statistical and ML techniques to make predictions of unknown events based on historical data [5, 13] —in this case the aggregated metadata of our benchmarking repository. At this time, the ALOJA dataset has some challenging issues we have to deal with, in order to create as much representative models as possible. First of all, not all benchmarks have the same number of executions nor all the same executed configurations. Half of the ALOJA data-set examples are from terasort executions, while we can consider pagerank under-represented because of having much fewer executions. Executions use resources and time (thus they cost money), and the examples composing the data-set were executed following different reasons than to obtain a homogeneously representation of every benchmark and feature. One of the goals of ALOJA-ML is to be able to infer models from a not-so-regular data-set. In addition, the data-set contains failed or outlier executions, where external factors heavily affected the final execution time of the ALOJA: a Benchmarking and Predictive Platform for Big Data 9 run. Some of those examples can be easily detected and removed, while others can not. Further, having a huge space of feature combinations, compared to the number of examples, can bring uncertainty when deciding if an example is an outlier or is a legitimate example lonely in its space region. At this time we will use the data-set without filtering, as a first approach to it without massaging our data. Modeling Benchmark Behaviors To model a system some examples of this system are collected, this is what we want to be able to predict from this system, and any element that can determine or affect it. The model is then a function that receives as inputs variables like in our case the benchmark name, the introduced Hadoop configuration and the hardware specifications, and produces as output the required execution time for the benchmark in such conditions. Then from the collected set of examples, the data-set, machine learning algorithms attempt to infer an explanation for these outputs from the provided inputs Our current main focus is to obtain a model to predict benchmark execution times from a given software and hardware configurations, in the more automatic possible way. As previously said, Hadoop executions can be tuned through software configurations (number of mapping agents, type of compression used, etc.) and through the provided hardware resources. These tuning parameters determine the resulting execution, and we consider them our input variables. Also, as we focus on the resulting execution time, we consider that as out output variable we want to be able to predict. Being able to predict such values will let us to plan benchmark executions, compare different environments without even executing such benchmarks, also plan new data-centers by deciding their components from a variety of available hardware configurations while predicting the execution time of reference benchmarks with each of them. Figure 3 summarizes the machine learning schema, also applied to our case of study. Fig. 3: Machine Learning Methodology in our Environment