40

Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility
Page 2: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Eric Grancher, CERN IT department

[email protected]

With the help/input of Andrei Dumitru, Chris Roderick, Daniel Gomez

Blanco, Dawid Wojcik, Emil Pilecki, Ignacio Coterillo Coz, Luca Canali

and Ruben Domingo Gaspar Aparicio

Page 3: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Agenda

3

• A few words on CERN and the computing

challenges, Oracle at CERN

• Application Continuity

• Active DataGuard, far sync, fast sync

• Oracle Multitenant Database

• A few additional interesting features

Page 4: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Jürgen Knobloch- cern-it Slide-4

CERN CERN

27 km circumference

Staff members: about 2500

Research community: 10,000 scientists

http://opendays2013.web.cern.ch/

Page 5: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Large Hadron Collider - LHC

The most complex machine on earth

• The world biggest particle accelerator

• 600 million collisions / second

5

• Fundamental physics • Why do fundamental particles weigh the

amount they do? • What is 96% of the Universe made of? • Where did the antimatter go to? • What was the universe like just after the

« Big Bang »? • Are there extra dimensions of space?

Page 6: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

ATLAS/CMS, le 1er mars 2013

6

• “Having analysed two and a half times more data than was available for the discovery announcement in July, they find that the new particle is looking more and more like a Higgs boson, the particle linked to the mechanism that gives mass to elementary particles. It remains an open question, however, whether this is the Higgs boson of the Standard Model of particle physics, or possibly the lightest of several bosons predicted in some theories that go beyond the Standard Model. Finding the answer to this question will take time.

• Whether or not it is a Higgs boson is demonstrated by how it interacts with other particles, and its quantum properties. For example, a Higgs boson is postulated to have no spin, and in the Standard Model its parity – a measure of how its mirror image behaves – should be positive.“

• http://home.web.cern.ch/fr/about/updates/2013/03/new-results-indicate-new-particle-higgs-boson

Page 7: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Computing and storage needs

7

• Data volume • 25 PB per year (in files)

• > 5.2 * 1012 rows in an Oracle table (IOT, in one of the databases)

• Computing and storage capacity, world-wide distributed • > 150 sites (grid computing)

• > 260 000 CPU cores

• > 269 Po disk capacity

• > 210 Po tape capacity

• Distributed analysis with costs spread in the different sites (« LHC Computing Grid »)

Page 8: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

0

200

400

600

800

1000

1200

MH

EP

Sp

ec06/M

on

th

LHCb

CMS

ATLAS

ALICE

0100002000030000400005000060000700008000090000

100000

Jun

-6-2

00

8

Au

g-2

9-2

00

8

Nov-2

1-2

00

8

Fe

b-1

3-2

00

9

Ma

y-8

-20

09

Jul-

31-2

009

Oct-

23

-200

9

Jan

-15-2

010

Ap

r-9-2

010

Jul-

2-2

01

0

Se

p-2

4-2

01

0

Dec-1

7-2

01

0

Ma

r-1

1-2

01

1

Jun

-3-2

01

1

Au

g-2

6-2

01

1

Nov-1

8-2

01

1

Fe

b-1

0-2

01

2

Ma

y-4

-20

12

Jul-

27-2

012

Oct-

19

-201

2

TB total written

0500000

100000015000002000000250000030000003500000400000045000005000000

Data written to tape, 01/01/2012 to 31/12/2012 (in GB)

ALICE AMSATLAS CMSCOMPASS LHCB

LS1: no stop for the computing !

Activity on 1 January 2013

Running Jobs: 246791

Transfer rate: ~14 GiB/s

CERN Tape Archive

Reaching 100 PB !

Grid CPU Workloads

(HEPSpec06/Month)

~ 250000 CPU cores in

use at any point in time!

2013-2014:

• Data to be reprocessed

• Simulation for higher Energy

• Analysis continuing

…to be repacked on new media

Credit: F. Hemmer

Page 9: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Oracle at CERN

9

• 1982: start

with

Oracle

at CERN

(accelerator

control)

Credit: N. Segura Chinchilla

Page 10: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

10

Credit: M. Piorkowski

Page 11: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Agenda

11

• A few words on CERN and the computing

challenges, Oracle at CERN

• Application Continuity

• Active DataGuard, far sync, fast sync

• Oracle Multitenant Database

• A few additional interesting features

Page 12: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Application Continuity - challenge

12

• Continuity of application, difficulty to implement

restart, loss or duplication of data

• Interruptions required (patch) and issues

happen (OS or DB), errors…

• CERN: criticality of database applications for

the accelerator complex -no maintenance

windows-, for the experiments, loss of context

Page 13: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Application Continuity - 12c

13

• 12c Transaction Guard: the application can

know whether the transaction has indeed be

stored, possibility to take the right decision

• 12c Application Continuity: replays the

operations performed before the interruption

in case of error

Page 14: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Application Continuity - example

14

• Example: CERN application, accelerator

data management

• With or without Application Continuity

• Impact on performance

Page 15: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Application Continuity - application

15

LDB

XML

XML XML

XML

XML

JDBC

HTTP~150 GB per day~4 billion records per day

~850’000 signals

Data sent in batches* every 5’

*multiple files up-to 2MB each

Equipment – DAQ – PLC

f f f f f f f f f

f

QPS PIC

SU

Coll

CNGS

Exp

Cryo CIET

WIC

VAC

Servlets

Jetty

~300 data loading processes

Simple Massive instrumentation

On-demand workload capture

Credit: C. Roderick

Page 16: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

16

Page 17: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Application Continuity - results

17

Credit: L. Canali, A. Dumitru, C. Roderick

Page 18: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Agenda

18

• A few words on CERN and the computing

challenges, Oracle at CERN

• Application Continuity

• Active DataGuard, far sync, fast sync

• Oracle Multitenant Database

• A few additional interesting features

Page 19: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

DataGuard – async / sync challenge

19

• « Synchronous » is the most interesting mode • True guarantee for data consistency

• Risk of data loss with fail-over in asynchronous mode

• But… very often impossible (distance), impact on the primary database even at short distance

• CERN: direction towards synchronous, with long distance

Page 20: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

DataGuard – CERN Wigner

20

Page 21: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

DataGuard - {fast, far}

21

• 12c fast sync: reduced latency impact thanks to memory acknowledgement • « NOAFFIRM » no wait on the disk write on the standby

• 12c far sync: synchronous replication to a « far sync instance » (repeater) situated at distance /reasonable latency, then asynchronous replication to the final standby • Compression and distribution to multiple remote

DataGuard instances

Page 22: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

DataGuard - experience

22

Credit: E. Pilecki

SYNC no FAR SYNC

SYNC with FAR SYNC

Page 23: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

DataGuard - experience

23

FAST SYNC

Credit: E. Pilecki

SYNC

Page 24: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Agenda

24

• A few words on CERN and the computing

challenges, Oracle at CERN

• Application Continuity

• Active DataGuard, far sync, fast sync

• Oracle Multitenant Database

• A few additional interesting features

Page 25: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Consolidation and testing - challenge

25

• Consolidation limited by • By putting many application schemas together, one

links all for the future and any operation

• (long) environment copies

• migrations

• CERN: • Major upgrades (patch set, version), all or nothing,

unavailability period

• Database on Demand

Page 26: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Consolidation - Database on Demand

26

Credit: I. Coterillo Coz, R.

Gaspar Aparicio, D. Gomez

Blanco, D. Wojcik

Page 27: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Oracle Multitenant Database

27

Non CDB

List of users / roles

User PL/SQL software

User tables / indexes

Oracle foreground processes

Database and instance parameters

SYS PL/SQL sofware

Oracle background processes

CDB - 1 PDB

Database and instance parameters

SYS PL/SQL sofware

Oracle background processes

CDB - 2 PDBs

Database and instance parameters

SYS PL/SQL sofware

Oracle background processes

List of users / roles

User PL/SQL software

User tables / indexes

Oracle foreground processes

List of users / roles

User PL/SQL software

User tables / indexes

Oracle foreground processes

List of users / roles

User PL/SQL software

User tables / indexes

Oracle foreground processes

Page 28: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Oracle Multitenant Database

28

• Dictionary separation

• root: database metadata only

• PDB: user metadata and user data

Page 29: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Multitenant Database – Capture/Replay

29

Capture

Upgrade to

12.1 and

nonCDB to

PDB

Replay

Copy of the

database

Page 30: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Multitenant Database – Capture/Replay

30

Non CDB,

SQL ordered by Gets

CDB,

SQL ordered by Gets

Page 31: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Multitenant Database - clone

31

• Using ACFS or another supported solution,

fast cloning “snapshot copy”

Page 32: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Multitenant Database - usage

32

• Usage (non exhaustive list!)

• Consolidation

• Database as a Service (DBaaS)

• Regression Testing

• Multiple test environments thanks to cloning

• Easily move applications from one container to

another

Page 33: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

Conclusion, Oracle database 12c

33

• Oracle Multitenant Database: logical / physical structure, consolidation, fast clones, move between containers and servers, etc.

• Integration with applications (Application Continuity)

• Better protection thanks to {far, fast} sync DG • And much more: ILM, adaptive execution plans, partitioning, statistics,

Global Data Services, alter database move datafile, DML on temporary tables in ADG, sequences in ADG, DG broker « redoroutes », column default to a sequence, 32kB varchar2, upgrade in parallel, etc.

[email protected]

Page 34: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility
Page 35: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

35

Page 36: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

36

Page 37: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

37

Page 38: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

38

create pluggable database pdb_01 from pdb_ref

snapshot copy;

sudo /sbin/acfsutil snap info /ORA/dbs03/ERICACFS

Page 39: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

39

Page 40: Eric Grancher, CERN IT department€¦ · Application Continuity - 12c 13 • 12c Transaction Guard: the application can know whether the transaction has indeed be stored, possibility

40

alter pluggable database pdb_01 close;

drop pluggable database pdb_01 including datafiles;