Supporting Fast Transactional Workloads on Universal Columnar

Total Page:16

File Type:pdf, Size:1020Kb

Supporting Fast Transactional Workloads on Universal Columnar Mainlining Databases: Supporting Fast Transactional Workloads on Universal Columnar Data File Formats Tianyu Li Matthew Butrovich Amadou Ngom litianyu@mit:edu mbutrovi@cs:cmu:edu angom@cs:cmu:edu MIT Carnegie Mellon University Carnegie Mellon University Wan Shen Lim Wes McKinney Andrew Pavlo wanshenl@cs:cmu:edu wes@ursalabs:org pavlo@cs:cmu:edu Carnegie Mellon University Ursa Labs Carnegie Mellon University ABSTRACT Although a DBMS can perform some analytical duties, The proliferation of modern data processing tools has given modern data science workloads often involve specialized rise to open-source columnar data formats. The advantage frameworks, such as TensorFlow, PyTorch, and Pandas. Or- of these formats is that they help organizations avoid repeat- ganizations are also heavily invested in personnel, tooling, edly converting data to a new format for each application. and infrastructure for the current data science eco-system These formats, however, are read-only, and organizations of Python tools. We contend that the need for DBMS to ef- must use a heavy-weight transformation process to load data ficiently export large amounts of data to external tools will from on-line transactional processing (OLTP) systems. We persist. To enable analysis of data as soon as it arrives in aim to reduce or even eliminate this process by developing a a database is, and to deliver performance gains across the storage architecture for in-memory database management entire data analysis pipeline, we should look to improve a systems (DBMSs) that is aware of the eventual usage of DBMS’s interoperability with external tools. its data and emits columnar storage blocks in a universal If an OLTP DBMS directly stores data in a format used open-source format. We introduce relaxations to common by downstream applications, the export cost is just the cost analytical data formats to efficiently update records and rely of network transmission. The challenge in this is that most on a lightweight transformation process to convert blocks open-source formats are optimized for read/append oper- to a read-optimized layout when they are cold. We also de- ations, not in-place updates. Meanwhile, divergence from scribe how to access data from third-party analytical tools the target format in the OLTP DBMS translates into more with minimal serialization overhead. To evaluate our work, transformation overhead when exporting data, which can we implemented our storage engine based on the Apache be equally detrimental to performance. A viable design must Arrow format and integrated it into the DB-X DBMS. Our seek equilibrium in these two conflicting considerations. experiments show that our approach achieves comparable To address this challenge, we present a multi-versioned performance with dedicated OLTP DBMSs while enabling DBMS that operates on a relaxation of an open-source colum- orders-of-magnitude faster data exports to external data sci- nar format to support efficient OLTP modifications. The re- ence and machine learning tools than existing methods. laxed format can then be transformed into the canonical format as data cools with a light-weight in-memory process. arXiv:2004.14471v1 [cs.DB] 29 Apr 2020 1 INTRODUCTION We implemented our storage and concurrency control ar- chitecture in DB-X [10] and evaluated its performance. We Data analysis pipelines allow organizations to extrapolate in- target Apache Arrow, although our approach is also appli- sights from data residing in their OLTP systems. The tools in cable to other columnar formats. Our results show that we these pipelines often use open-source binary formats, such achieve good performance on OLTP workloads operating as Apache Parquet [9], Apache ORC [8] and Apache Ar- on the relaxed Arrow format. We also implemented an Ar- row [3]. Such formats allow disparate systems to exchange row export layer for our system, and show that it facilitates data through a common interface without converting be- orders-of-magnitude faster exports to external tools. tween proprietary formats. But these formats target write- The remainder of this paper is organized as follows: we once, read-many workloads and are not amenable to OLTP first discuss in Section 2 the motivation for this work. We systems. This means that a data scientist must transform then present our storage architecture and concurrency con- OLTP data with a heavy-weight process, which is computa- trol in Section 3, followed by our transformation algorithm tionally expensive and inhibits analytical operations. T. Li et al. 1400 in Section 4. In Section 5, we discuss how to export data to In-Memory 1380.3 external tools. We present our experimental evaluation in 1200 CSV Export Section 6 and discuss related work in Section 7. CSV Load 1000 PostgreSQL Query Processing ODBC Export 800 2 BACKGROUND 600 We now discuss challenges in running analysis with exter- 400 nal tools with OLTP DBMSs. We begin by describing how Load Time (seconds) 284.46 data transformation and movement are bottlenecks in data 200 8.38 0 processing. We then present a popular open-source format In-Memory CSV Python ODBC (Apache Arrow) and discuss its strengths and weaknesses. Figure 1: Data Transformation Costs – Time taken to load a 2.1 Data Movement and Transformation TPC-H table into Pandas with different approaches. A data processing pipeline consists of a front-end OLTP layer and multiple analytical layers. OLTP engines employ the n-ary storage model (i.e., row-store) to support efficient single-tuple operations, while the analytical layers use the decomposition storage model (i.e., column-store) to speed up large scans [22, 29, 38, 43]. Because of conflicting optimiza- Figure 2: SQL Table to Arrow – An example of using Arrow’s tion strategies for these two use cases, organizations often API to describe a SQL table’s schema in Python. implement the pipeline by combining specialized systems. The most salient issue with this bifurcated approach is data To simplify our setup, we run the Python program on the transformation and movement between layers. This prob- same machine as the DBMS. We use a machine with 128 GB lem is made worse with the emergence of machine learning of memory, of which we reserve 15 GB for PostgreSQL’s workloads that load the entire data set instead of a small shared buffers. We provide a full description of our operating query result set. For example, a data scientist will (1) exe- environment for this experiment in Section 6. cute SQL queries to export data from PostgreSQL, (2) load The results in Figure 1 show that ODBC and CSV are it into a Jupyter notebook on a local machine and prepare orders of magnitude slower than what is possible. This differ- it with Pandas, and (3) train models on cleaned data with ence is because of the overhead of transforming to a different TensorFlow. Each step in such a pipeline transforms data into format, as well as excessive serialization in the PostgreSQL a format native to the target framework: a disk-optimized wire protocol. Query processing itself takes 0:004% of the row-store for PostgreSQL, DataFrames for Pandas, and ten- total export time. The rest of the time is spent in the serial- sors for TensorFlow. The slowest of all transformations is ization layer and in transforming the data. Optimizing this from the DBMS to Pandas because it retrieves data over export process will significantly speed up analytics pipelines. the DBMS’s network protocol and then rewrites it into the desired columnar format. This process is not optimal for high-bandwidth data movement [46]. Many organizations 2.2 Column-Stores and Apache Arrow employ costly extract-transform-load (ETL) pipelines that The inefficiency of loading data through a SQL interface re- run only nightly, introducing delays to analytics. quires us to rethink the data export process and avoid costly To better understand this issue, we measured the time it data transformations. Lack of interoperability between row- takes to extract data from PostgreSQL (v10.6) and load it into stores and analytical columnar formats is a major source a Pandas program. We use the LINEITEM table from TPC-H of inefficiency. As discussed previously, OLTP DBMSs are with scale factor 10 (60M tuples, 8 GB as a CSV file, 11 GB as a row-stores because conventional wisdom is that column- PostgreSQL table). We compare three approaches for loading stores are inferior for OLTP workloads. Recent work, how- the table into the Python program: (1) SQL over a Python ever, has shown that column-stores can also support high- ODBC connection, (2) using PostgreSQL’s COPY command performance transactional processing [45, 48]. We propose to export a CSV file to disk and then loading it into Pandas, implementing a high-performance OLTP DBMS directly on and (3) loading data directly from a buffer already in the top of a data format used by analytics tools. To do so, we Python runtime’s memory. The last method represents the select a representative format (Apache Arrow) and analyze theoretical best-case scenario to provide us with an upper its strengths and weaknesses for OLTP workloads. bound for data export speed. We pre-load the entire table Apache Arrow is a cross-language development platform into PostgreSQL’s buffer pool using the pg_warm extension. for in-memory data [3]. In the early 2010s, developers from Mainlining Databases: Supporting Fast Transactional Workloads on Universal Columnar Data File Formats Apache Drill, Apache Impala, Apache Kudu, Pandas, and 101 others independently explored universal in-memory colum- 102 0 J O nar data formats. These groups joined together in 2015 to 103 3 ID Name E 3 Logical develop a shared format based on their overlapping require- 101 "JOE" ID (int) Name (string) M Table A 102 null Column ments.
Recommended publications
  • Java Linksammlung
    JAVA LINKSAMMLUNG LerneProgrammieren.de - 2020 Java einfach lernen (klicke hier) JAVA LINKSAMMLUNG INHALTSVERZEICHNIS Build ........................................................................................................................................................... 4 Caching ....................................................................................................................................................... 4 CLI ............................................................................................................................................................... 4 Cluster-Verwaltung .................................................................................................................................... 5 Code-Analyse ............................................................................................................................................. 5 Code-Generators ........................................................................................................................................ 5 Compiler ..................................................................................................................................................... 6 Konfiguration ............................................................................................................................................. 6 CSV ............................................................................................................................................................. 6 Daten-Strukturen
    [Show full text]
  • Oracle Metadata Management V12.2.1.3.0 New Features Overview
    An Oracle White Paper October 12 th , 2018 Oracle Metadata Management v12.2.1.3.0 New Features Overview Oracle Metadata Management version 12.2.1.3.0 – October 12 th , 2018 New Features Overview Disclaimer This document is for informational purposes. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described in this document remains at the sole discretion of Oracle. This document in any form, software or printed matter, contains proprietary information that is the exclusive property of Oracle. This document and information contained herein may not be disclosed, copied, reproduced, or distributed to anyone outside Oracle without prior written consent of Oracle. This document is not part of your license agreement nor can it be incorporated into any contractual agreement with Oracle or its subsidiaries or affiliates. 1 Oracle Metadata Management version 12.2.1.3.0 – October 12 th , 2018 New Features Overview Table of Contents Executive Overview ............................................................................ 3 Oracle Metadata Management 12.2.1.3.0 .......................................... 4 METADATA MANAGER VS METADATA EXPLORER UI .............. 4 METADATA HOME PAGES ........................................................... 5 METADATA QUICK ACCESS ........................................................ 6 METADATA REPORTING .............................................................
    [Show full text]
  • Quick Install for AWS EMR
    Quick Install for AWS EMR Version: 6.8 Doc Build Date: 01/21/2020 Copyright © Trifacta Inc. 2020 - All Rights Reserved. CONFIDENTIAL These materials (the “Documentation”) are the confidential and proprietary information of Trifacta Inc. and may not be reproduced, modified, or distributed without the prior written permission of Trifacta Inc. EXCEPT AS OTHERWISE PROVIDED IN AN EXPRESS WRITTEN AGREEMENT, TRIFACTA INC. PROVIDES THIS DOCUMENTATION AS-IS AND WITHOUT WARRANTY AND TRIFACTA INC. DISCLAIMS ALL EXPRESS AND IMPLIED WARRANTIES TO THE EXTENT PERMITTED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE AND UNDER NO CIRCUMSTANCES WILL TRIFACTA INC. BE LIABLE FOR ANY AMOUNT GREATER THAN ONE HUNDRED DOLLARS ($100) BASED ON ANY USE OF THE DOCUMENTATION. For third-party license information, please select About Trifacta from the Help menu. 1. Release Notes . 4 1.1 Changes to System Behavior . 4 1.1.1 Changes to the Language . 4 1.1.2 Changes to the APIs . 18 1.1.3 Changes to Configuration 23 1.1.4 Changes to the Object Model . 26 1.2 Release Notes 6.8 . 30 1.3 Release Notes 6.4 . 36 1.4 Release Notes 6.0 . 42 1.5 Release Notes 5.1 . 49 2. Quick Start 55 2.1 Install from AWS Marketplace with EMR . 55 2.2 Upgrade for AWS Marketplace with EMR . 62 3. Configure 62 3.1 Configure for AWS . 62 3.1.1 Configure for EC2 Role-Based Authentication . 68 3.1.2 Enable S3 Access . 70 3.1.2.1 Create Redshift Connections 81 3.1.3 Configure for EMR .
    [Show full text]
  • Delft University of Technology Arrowsam In-Memory Genomics
    Delft University of Technology ArrowSAM In-Memory Genomics Data Processing Using Apache Arrow Ahmad, Tanveer; Ahmed, Nauman; Peltenburg, Johan; Al-Ars, Zaid DOI 10.1109/ICCAIS48893.2020.9096725 Publication date 2020 Document Version Accepted author manuscript Published in 2020 3rd International Conference on Computer Applications & Information Security (ICCAIS) Citation (APA) Ahmad, T., Ahmed, N., Peltenburg, J., & Al-Ars, Z. (2020). ArrowSAM: In-Memory Genomics Data Processing Using Apache Arrow. In 2020 3rd International Conference on Computer Applications & Information Security (ICCAIS): Proceedings (pp. 1-6). [9096725] IEEE . https://doi.org/10.1109/ICCAIS48893.2020.9096725 Important note To cite this publication, please use the final published version (if applicable). Please check the document version above. Copyright Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons. Takedown policy Please contact us and provide details if you believe this document breaches copyrights. We will remove access to the work immediately and investigate your claim. This work is downloaded from Delft University of Technology. For technical reasons the number of authors shown on this cover page is limited to a maximum of 10. © 2020 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
    [Show full text]
  • The Platform Inside and out Release 0.8
    The Platform Inside and Out Release 0.8 Joshua Patterson – GM, Data Science RAPIDS End-to-End Accelerated GPU Data Science Data Preparation Model Training Visualization Dask cuDF cuIO cuML cuGraph PyTorch Chainer MxNet cuXfilter <> pyViz Analytics Machine Learning Graph Analytics Deep Learning Visualization GPU Memory 2 Data Processing Evolution Faster data access, less data movement Hadoop Processing, Reading from disk HDFS HDFS HDFS HDFS HDFS Read Query Write Read ETL Write Read ML Train Spark In-Memory Processing 25-100x Improvement Less code HDFS Language flexible Read Query ETL ML Train Primarily In-Memory Traditional GPU Processing 5-10x Improvement More code HDFS GPU CPU GPU CPU GPU ML Language rigid Query ETL Read Read Write Read Write Read Train Substantially on GPU 3 Data Movement and Transformation The bane of productivity and performance APP B Read Data APP B GPU APP B Copy & Convert Data CPU GPU Copy & Convert Copy & Convert APP A GPU Data APP A Load Data APP A 4 Data Movement and Transformation What if we could keep data on the GPU? APP B Read Data APP B GPU APP B Copy & Convert Data CPU GPU Copy & Convert Copy & Convert APP A GPU Data APP A Load Data APP A 5 Learning from Apache Arrow ● Each system has its own internal memory format ● All systems utilize the same memory format ● 70-80% computation wasted on serialization and deserialization ● No overhead for cross-system communication ● Similar functionality implemented in multiple projects ● Projects can share functionality (eg, Parquet-to-Arrow reader) From Apache Arrow
    [Show full text]
  • Oracle Big Data SQL Release 4.1
    ORACLE DATA SHEET Oracle Big Data SQL Release 4.1 The unprecedented explosion in data that can be made useful to enterprises – from the Internet of Things, to the social streams of global customer bases – has created a tremendous opportunity for businesses. However, with the enormous possibilities of Big Data, there can also be enormous complexity. Integrating Big Data systems to leverage these vast new data resources with existing information estates can be challenging. Valuable data may be stored in a system separate from where the majority of business-critical operations take place. Moreover, accessing this data may require significant investment in re-developing code for analysis and reporting - delaying access to data as well as reducing the ultimate value of the data to the business. Oracle Big Data SQL enables organizations to immediately analyze data across Apache Hadoop, Apache Kafka, NoSQL, object stores and Oracle Database leveraging their existing SQL skills, security policies and applications with extreme performance. From simplifying data science efforts to unlocking data lakes, Big Data SQL makes the benefits of Big Data available to the largest group of end users possible. KEY FEATURES Rich SQL Processing on All Data • Seamlessly query data across Oracle Oracle Big Data SQL is a data virtualization innovation from Oracle. It is a new Database, Hadoop, object stores, architecture and solution for SQL and other data APIs (such as REST and Node.js) on Kafka and NoSQL sources disparate data sets, seamlessly integrating data in Apache Hadoop, Apache Kafka, • Runs all Oracle SQL queries without modification – preserving application object stores and a number of NoSQL databases with data stored in Oracle Database.
    [Show full text]
  • Hybrid Transactional/Analytical Processing: a Survey
    Hybrid Transactional/Analytical Processing: A Survey Fatma Özcan Yuanyuan Tian Pınar Tözün IBM Resarch - Almaden IBM Research - Almaden IBM Research - Almaden [email protected] [email protected] [email protected] ABSTRACT To understand HTAP, we first need to look into OLTP The popularity of large-scale real-time analytics applications and OLAP systems and how they progressed over the years. (real-time inventory/pricing, recommendations from mobile Relational databases have been used for both transaction apps, fraud detection, risk analysis, IoT, etc.) keeps ris- processing as well as analytics. However, OLTP and OLAP ing. These applications require distributed data manage- systems have very different characteristics. OLTP systems ment systems that can handle fast concurrent transactions are identified by their individual record insert/delete/up- (OLTP) and analytics on the recent data. Some of them date statements, as well as point queries that benefit from even need running analytical queries (OLAP) as part of indexes. One cannot think about OLTP systems without transactions. Efficient processing of individual transactional indexing support. OLAP systems, on the other hand, are and analytical requests, however, leads to different optimiza- updated in batches and usually require scans of the tables. tions and architectural decisions while building a data man- Batch insertion into OLAP systems are an artifact of ETL agement system. (extract transform load) systems that consolidate and trans- For the kind of data processing that requires both ana- form transactional data from OLTP systems into an OLAP lytics and transactions, Gartner recently coined the term environment for analysis. Hybrid Transactional/Analytical Processing (HTAP).
    [Show full text]
  • Hortonworks Data Platform Apache Spark Component Guide (December 15, 2017)
    Hortonworks Data Platform Apache Spark Component Guide (December 15, 2017) docs.hortonworks.com Hortonworks Data Platform December 15, 2017 Hortonworks Data Platform: Apache Spark Component Guide Copyright © 2012-2017 Hortonworks, Inc. Some rights reserved. The Hortonworks Data Platform, powered by Apache Hadoop, is a massively scalable and 100% open source platform for storing, processing and analyzing large volumes of data. It is designed to deal with data from many sources and formats in a very quick, easy and cost-effective manner. The Hortonworks Data Platform consists of the essential set of Apache Hadoop projects including MapReduce, Hadoop Distributed File System (HDFS), HCatalog, Pig, Hive, HBase, ZooKeeper and Ambari. Hortonworks is the major contributor of code and patches to many of these projects. These projects have been integrated and tested as part of the Hortonworks Data Platform release process and installation and configuration tools have also been included. Unlike other providers of platforms built using Apache Hadoop, Hortonworks contributes 100% of our code back to the Apache Software Foundation. The Hortonworks Data Platform is Apache-licensed and completely open source. We sell only expert technical support, training and partner-enablement services. All of our technology is, and will remain, free and open source. Please visit the Hortonworks Data Platform page for more information on Hortonworks technology. For more information on Hortonworks services, please visit either the Support or Training page. Feel free to contact us directly to discuss your specific needs. Except where otherwise noted, this document is licensed under Creative Commons Attribution ShareAlike 4.0 License. http://creativecommons.org/licenses/by-sa/4.0/legalcode ii Hortonworks Data Platform December 15, 2017 Table of Contents 1.
    [Show full text]
  • Schema Evolution in Hive Csv
    Schema Evolution In Hive Csv Which Orazio immingled so anecdotally that Joey take-over her seedcake? Is Antin flowerless when Werner hypersensitise apodictically? Resolutely uraemia, Burton recalesced lance and prying frontons. In either format are informational and the file to collect important consideration to persist our introduction above image file processing with hadoop for evolution in Capabilities than that? Data while some standardized form scale as CSV TSV XML or JSON files. Have involved at each of spark sql engine for data in with malformed types are informational and to finish rendering before invoking file with. Spark csv files just storing data that this object and decision intelligence analytics queries to csv in bulk into another tab of lot of different in. Next button to choose to write that comes at query returns all he has very useful tutorial is coalescing around parquet evolution in hive schema evolution and other storage costs, query across partitions? Bulk load into an array types across some schema changes, which the views. Encrypt data come from the above schema evolution? This article helpful, only an error is more specialized for apis anywhere with the binary encoded in better than a dict where. Provide an evolution in column to manage data types and writing, analysts will be read json, which means the. This includes schema evolution partition evolution and table version rollback all. Apache hive to simplify your google cloud storage, the size of data cleansing, in schema hive csv files cannot be able to. Irs prior to create hive tables when querying using this guide for schema evolution in hive.
    [Show full text]
  • Benchmarking Distributed Data Warehouse Solutions for Storing Genomic Variant Information
    Research Collection Journal Article Benchmarking distributed data warehouse solutions for storing genomic variant information Author(s): Wiewiórka, Marek S.; Wysakowicz, David P.; Okoniewski, Michał J.; Gambin, Tomasz Publication Date: 2017-07-11 Permanent Link: https://doi.org/10.3929/ethz-b-000237893 Originally published in: Database 2017, http://doi.org/10.1093/database/bax049 Rights / License: Creative Commons Attribution 4.0 International This page was generated automatically upon download from the ETH Zurich Research Collection. For more information please consult the Terms of use. ETH Library Database, 2017, 1–16 doi: 10.1093/database/bax049 Original article Original article Benchmarking distributed data warehouse solutions for storing genomic variant information Marek S. Wiewiorka 1, Dawid P. Wysakowicz1, Michał J. Okoniewski2 and Tomasz Gambin1,3,* 1Institute of Computer Science, Warsaw University of Technology, Nowowiejska 15/19, Warsaw 00-665, Poland, 2Scientific IT Services, ETH Zurich, Weinbergstrasse 11, Zurich 8092, Switzerland and 3Department of Medical Genetics, Institute of Mother and Child, Kasprzaka 17a, Warsaw 01-211, Poland *Corresponding author: Tel.: þ48693175804; Fax: þ48222346091; Email: [email protected] Citation details: Wiewiorka,M.S., Wysakowicz,D.P., Okoniewski,M.J. et al. Benchmarking distributed data warehouse so- lutions for storing genomic variant information. Database (2017) Vol. 2017: article ID bax049; doi:10.1093/database/bax049 Received 15 September 2016; Revised 4 April 2017; Accepted 29 May 2017 Abstract Genomic-based personalized medicine encompasses storing, analysing and interpreting genomic variants as its central issues. At a time when thousands of patientss sequenced exomes and genomes are becoming available, there is a growing need for efficient data- base storage and querying.
    [Show full text]
  • Arrow: Integration to 'Apache' 'Arrow'
    Package ‘arrow’ September 5, 2021 Title Integration to 'Apache' 'Arrow' Version 5.0.0.2 Description 'Apache' 'Arrow' <https://arrow.apache.org/> is a cross-language development platform for in-memory data. It specifies a standardized language-independent columnar memory format for flat and hierarchical data, organized for efficient analytic operations on modern hardware. This package provides an interface to the 'Arrow C++' library. Depends R (>= 3.3) License Apache License (>= 2.0) URL https://github.com/apache/arrow/, https://arrow.apache.org/docs/r/ BugReports https://issues.apache.org/jira/projects/ARROW/issues Encoding UTF-8 Language en-US SystemRequirements C++11; for AWS S3 support on Linux, libcurl and openssl (optional) Biarch true Imports assertthat, bit64 (>= 0.9-7), methods, purrr, R6, rlang, stats, tidyselect, utils, vctrs RoxygenNote 7.1.1.9001 VignetteBuilder knitr Suggests decor, distro, dplyr, hms, knitr, lubridate, pkgload, reticulate, rmarkdown, stringi, stringr, testthat, tibble, withr Collate 'arrowExports.R' 'enums.R' 'arrow-package.R' 'type.R' 'array-data.R' 'arrow-datum.R' 'array.R' 'arrow-tabular.R' 'buffer.R' 'chunked-array.R' 'io.R' 'compression.R' 'scalar.R' 'compute.R' 'config.R' 'csv.R' 'dataset.R' 'dataset-factory.R' 'dataset-format.R' 'dataset-partition.R' 'dataset-scan.R' 'dataset-write.R' 'deprecated.R' 'dictionary.R' 'dplyr-arrange.R' 'dplyr-collect.R' 'dplyr-eval.R' 'dplyr-filter.R' 'expression.R' 'dplyr-functions.R' 1 2 R topics documented: 'dplyr-group-by.R' 'dplyr-mutate.R' 'dplyr-select.R' 'dplyr-summarize.R'
    [Show full text]
  • In Reference to RPC: It's Time to Add Distributed Memory
    In Reference to RPC: It’s Time to Add Distributed Memory Stephanie Wang, Benjamin Hindman, Ion Stoica UC Berkeley ACM Reference Format: D (e.g., Apache Spark) F (e.g., Distributed TF) Stephanie Wang, Benjamin Hindman, Ion Stoica. 2021. In Refer- A B C i ii 1 2 3 ence to RPC: It’s Time to Add Distributed Memory. In Workshop RPC E on Hot Topics in Operating Systems (HotOS ’21), May 31-June 2, application 2021, Ann Arbor, MI, USA. ACM, New York, NY, USA, 8 pages. Figure 1: A single “application” actually consists of many https://doi.org/10.1145/3458336.3465302 components and distinct frameworks. With no shared address space, data (squares) must be copied between 1 Introduction different components. RPC has been remarkably successful. Most distributed ap- Load balancer Scheduler + Mem Mgt plications built today use an RPC runtime such as gRPC [3] Executors or Apache Thrift [2]. The key behind RPC’s success is the Servers request simple but powerful semantics of its programming model. client data request cache In particular, RPC has no shared state: arguments and return Distributed object store values are passed by value between processes, meaning that (a) (b) they must be copied into the request or reply. Thus, argu- ments and return values are inherently immutable. These Figure 2: Logical RPC architecture: (a) today, and (b) with a shared address space and automatic memory management. simple semantics facilitate highly efficient and reliable imple- mentations, as no distributed coordination is required, while then return a reference, i.e., some metadata that acts as a remaining useful for a general set of distributed applications.
    [Show full text]