Gaia@AIP servicesgaia.ari.uni-heidelberg.de/gaia-workshop-2016/... · – SQL query assistance –...

Post on 14-Jul-2020

1 views 0 download

Transcript of Gaia@AIP servicesgaia.ari.uni-heidelberg.de/gaia-workshop-2016/... · – SQL query assistance –...

Anastasia GalkinGal Matijevic Kristin Riebe Jochen KlarHarry Enke

Gaia Data Workshop, 23.11.2016

Gaia@AIP servicesgaia.aip.de

23.11.2016

Outline

• Astrophysical data at AIP services

• The setup: Daiquiri, Paqu and the parallel MariaDB databases

• Future development

2

23.11.2016

Terabytes of astrophysical data• Observational data

– Gaia@AIP gaia.aip.de, incl. Tycho-2 and RAVE for crossmatch purposes

– RAVE – radial velocity project

– APPLAUSE – historical photometric plates

• Simulations output– CosmoSim.org: MultiDark, Bolshoi

3

23.11.2016

Why SQL?

● Very clear structured data

● Retrieve specific subset

● Need for complex queries with astrophysical functions

● Quasi-standard in astronomy

4

23.11.2016

SQL (or ADQL) is the de-facto standard in astronomy.

5

23.11.2016

It's a question of size...● Currently hosted 45TB public available data

● Number of columns: up to 60

● Number of entries:

– CosmoSim has ca. 40TB with 354 billion rows

– Gaia DR1 244GB with 2 billion rows (TGAS 2 million)

6

… and the complexity of the queries.● Selection of specific properties on billions of

rows

● Combined with specific astrophysical functions

23.11.2016

The full picture

7

Spider engine

Query queue

MariaDB MariaDB MariaDB MariaDB MariaDB MariaDB

MariaDB

SpiderFederated

PaQuDaiquiri DBIngestor / AsciiIngest

Data curatorUser

23.11.2016

Queries running in parallelMariaDB

• Data is distributed on 10 shard nodes with MyISAM engine

• orchestrated by a head node with Spider engine

• Random number plugin

PaQu

• reformulates MySQL queries– joins, aggregates, functions

– e.g. count rows ● count on each node

● sum on head node

• head node collects data via federated tables

8

23.11.2016

Daiquiri

9

A customizable framework for database publication

• SQL queries– SQL query assistance– Can be used with PaQu with the Spider engine setup– Query result table viewer, plotting tool

• UWS 1.1 complient, released 1 month ago

• User database space

• Download of data in different formats

• Project documentation via Wordpress

• Administration tools:

– Database management

– User management

– Contact messages

– Meetings management

23.11.2016

www.cosmosim.org

10

23.11.2016 11

www.cosmosim.org

www.rave-survey.org

23.11.2016

www.cosmosim.org

www.rave-survey.org

www.plate-archive.org

12

23.11.2016

www.cosmosim.org

www.rave-survey.org

www.plate-archive.org

www.4most.eu

13

23.11.2016

www.cosmosim.org

www.rave-survey.org

www.plate-archive.org

www.4most.eu

gaia.aip.de

23.11.2016

www.cosmosim.org

www.rave-survey.org

www.plate-archive.org

www.4most.eu

gaia.aip.de

CosmoDB @ Tartu

JUBILEE @ Madrid

GREGOR project

CLUES user management

Workshops: Dwarfs, 4Most

23.11.2016 16

23.11.2016

Future development

17

• Daiquiri – reloaded in python with Django framework

• Improved rewrite process for parallel queries

• Improved queue for query jobs

• Nodes daemons communication to improve the performance

• Frontend: MySQL, ADQL

• Backends: MySQL/MariaDB (sharding), Postgres

Coming up in 2017

• Deployment at AIP: newest MariaDB versions with ARIA, SPIDER and FEDERATED database engines

23.11.2016

Please create an account for the hands-on session at

gaia.aip.de

18

escience.aip.de

Anastasia Galkin agalkin@aip.de