Oracle RAC 12 - doag.org · PDF file11 Node Weighting in Oracle RAC 12c Release 2 •Node...

43
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 1 Oracle RAC 12.2 Januar 2017 Sebastian Solbach BU Core & Cloud Technologies Oracle Deutschland B.V. & Co KG

Transcript of Oracle RAC 12 - doag.org · PDF file11 Node Weighting in Oracle RAC 12c Release 2 •Node...

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 1

Oracle RAC 12.2 Januar 2017

Sebastian Solbach BU Core & Cloud Technologies Oracle Deutschland B.V. & Co KG

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 2

Safe Harbor Statement

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. 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 for Oracle’s products remains at the sole discretion of Oracle.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 3

Oracle RAC 12.2

1

2

3

4

5

Mastering & Node Evictions

Cluster Domain

Cluster Health Framework

ASM Filegroups

Stretch Clusters

Sonstiges (ACFS / ADVM etc.) 6

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 4

Oracle RAC 12.2

1

2

3

4

5

Mastering & Node Evictions

Cluster Domain

Cluster Health Framework

ASM Filegroups

Stretch Clusters

Sonstiges (ACFS / ADVM etc.) 6

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 5

Verbesserung Singleton Services

• Service orientierter Buffer Cache Zugriff ermittelt die Daten (auf Objekt Level) die vom Service zugegriffen werden

• Mastering auf dem Knoten des Services

Konsistente Performance nach Failover

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 6

• Cache Fusion verwaltet die Zuordnung Service zu Buffer Cache

– Analysiert welcher Service welche Blöcke in den Buffer Cache liest

• Statistiken:

– Mastern der Resourcen nur auf dem aktiven Knoten

– Pre-Warm Cache währen Service Relokierung (Planned Downtime)

Service-Oriented Buffer Cache Access

6

NodeA

Oracle GI

Oracle RAC

NodeB

Oracle GI

Oracle RAC

cons_1 cons_2

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 7

Pluggable Database und Service Isolation

• Verbessert Performance

• DLM Operationen von PDBs auf Services beschränkt

• Block Operationen basiert auf InMemory Block Trennung

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 8

• Single Domain (domain 0) auf CDB Ebene für alle PDBs

• Operationen wie PDB start, stop, reconfigurations basieren auf einzelner Domain

• Zugriffe auf die Resource Hash Table erhöht sich bei mehreren PDBs (>250)

Pdb-1

Pdb-2

Pdb-3

Pdb-4

Domain 0

Instance

SGA

Resource Hash

Table

Oracle Multitenant 12c Rel. 1 Implementierung

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 9

• Jede PDB hat eigene Domain ID

• GES & GCS Resources zwischen PDB-Spezifischen Domains aufgeteilt

• Mehr und konsistente Performance

– Eine “aktive” PDB beeinflusst nicht andere PDBs

– Kleinere Hash Table Größe in den Instanzen, die die PDB geöffnet haben

Oracle Multitenant 12c Rel. 2 Optimierung

Domain1 Resource Hash

Table

Resource Hash

Table

Resource Hash

Table

Resource Hash

Table

Domain 2

Domain 3

Domain 4

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 10

12.1 Node Eviction

• 2 Knoten Cluster: Knoten mit niedrigster Knotennummer überlebt

• Wichtig: Nicht darauf verlassen (da sich das mit 12.2 ändert)!

✔ 1 2

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 11

Node Weighting in Oracle RAC 12c Release 2

• Node Weighting betrachtet den Workload eines Knoten während des Fencings

• Beispiel: Der Knoten mit mehr Services (zum Fence Zeitpunkt) überlebt

Wenn alles gleich ist, den Knoten mit mehr “Arbeit” leben lassen

✔ 1 2

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 12

3 Knoten Cluster profitiert von “Node Weighting”,

wenn 3 gleich große SubCluster übrig bleiben (2 unterschiedlich große

Cluster sind nicht gleich)

“Secondary failure” Betrachtung damit sind die Cluster nicht gleich. Weitere Verbesserungen geplant

Fallback falls keine eindeutige Entscheidung

getroffen werden kann

Was heißt “gleich”?

Public network card failure.

“Conflict”.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 13

CSS_CRITICAL kann auf verschiedenen Ebenen

gesetzt werden um Resourcen als kritisch zu markieren.

CSS_CRITICAL geht vor falls keine technischen Probleme

vorliegen überlebt der Knoten mit der kritischen Resource

Fallback wenn nach Auswertung von

CSS_CRITICAL beide “gleich” sind.

CSS_CRITICAL – Manuelles Überschreiben

crsctl set server css_critical {YES|NO}

+ server restart

srvctl modify database -help |grep critical

… -css_critical {YES | NO}

Define whether the database or service is CSS critical

Node eviction despite WL; WL

will failover. “Conflict”.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 14

Oracle RAC 12.2

1

2

3

4

5

Mastering & Node Evictions

Cluster Domain

Cluster Health Framework

ASM Filegroups

Stretch Clusters

Sonstiges (ACFS / ADVM etc.) 6

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 15

Domain Services Cluster

Cluster Domain

IO Service ASM

Service

Database Member Cluster

Uses ASM Service

Database Member Cluster

Uses IO & ASM Service of DSC

Trace File Analyzer

(TFA) Service

Mgmt Repository

(GIMR) Service

Application Member Cluster

GI only

Database Member Cluster

Uses local ASM

Shared ASM

Additional Optional Services

Rapid Home Provisioning

(RHP) Service

Private Network SAN NAS

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 16

Oracle RAC 12.2

1

2

3

4

5

Mastering & Node Evictions

Cluster Domain

Cluster Health Framework

ASM Filegroups

Stretch Clusters

Sonstiges (ACFS / ADVM etc.) 6

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 17

Cluster Verification

Utility

ORAchk

Cluster Health

Monitor

Cluster Health Advisor

Trace File Analyzer

Hang Manager

Memory Guard

Quality of Service

Management Oracle 12c Autonomous Health Framework

Arbeitet im Hintergrund

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 18

Zieht Baselines und überprüft Best Practices

Oracle Cluster Verification Utility (CVU)

• Läuft automatisch

• Prüft O/S, GI und DB auf wichtige Best Practices mit “healthcheck”

• Daemon läuft alle 6 Stunden

• ASM Best Practices Check

• Anlegen von Baseline Sammlungen

• Benutzer definierte Checks / Disablen von Checks

• Neues Berichts Format

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 19

Best Practices und prüfen bekannter Probleme Oracle 12c ORAchk/EXAchk

• Proactiver Scan

• Email Benachrichtigung

(im Daemon Mode)

• Analysiert bekannte Probleme

• Berichte über den System Status

• Drill Down

• ORAchk Collection Manager :

Übersicht über mehrere Systeme

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 20

Cluster Health Monitor (CHM)

• Automatisch eingeschaltet

• Detaillierte Betriebssystem-Informationen

• Unterstützt Analyse von Kntoen Reboots

• Speichert alle Logs lokal

• Benutzerdefinierte “Pinned” Prozesse

• Listens to CSS und GIPC Events

• Kategorisierung nach Prozesstyp

• Unterstützt “Plug-Ins” (traceroute, netstat, ping, etc.)

• CSV Ausgabe für einfache Analyse

Metriken zur Diagnose von Cluster und Datenbanken

GIMR

ologgerd

(master)

osysmon

d

osysmond

osysmond

osysmond

12c Grid Infrastructure Management Repository

OS Data OS Data

OS Data

OS Data

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 21

Oclumon CLI oder Integration in EM Cloud Control Cluster Health Monitor (CHM)

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 22

Cluster Health Advisor (CHA)

• Automatisch angeschaltet

• Erkennt Knoten & Datenbank Performance Probleme

• Schnelle Warnungen & Empfehlungen

• Untersützt “Calibrierung” für bessere Analyse

• Integriert im EMCC Incident Manager

• Standalone GUI Tool

Erkennt Cluster & DB Probleme

OS Data

GIMR

ochad

DB Data

CHM

Node Health

Prognostics Engine

Database Health

Prognostics Engine

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 23

Trace File Analyser

TFA

File

Metadata

Collection

Repository

Node 1

TFA

File

Metadata

Collection

Repository

Node N

1

2

3

3

4

5

User/Daemon initiated

TFA initiated

1. Daemon initiates diagnostic collection

2. TFA signals collections on other nodes

3. Collections written to local TFA repositories

---------- Coming ----------

4. Local collections copied to TFA service in DSC

5. Analytics on the TFA service (Receiver)

TFA metadata

COMING Domain Services Cluster

Oracle Cluster Domain

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 24

Oracle 12c Hang Manager

• Hang Manager berücksichtigt nur Sessions, die Ressourcen blockieren, auf die andere Sessions warten

• Hang Manager erkennt Probleme über Layer hinweg (ASM, DB)

• Deadlocks & User Locks sind nicht vom Hang Manager verwaltet

• Warnungen über V$ Views

• Benutzerdefiniert Kontrolle über PL/SQL

Session

DIA0

EVALUATE

DETECT

ANALYZE

Hung?

VERIFY

Victim

QoS Policy

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 25

Oracle 12c Memory Guard

• Analysiert 1x pro Minute Memory Over-Commit

• Warnt wenn Server zum “Swappen” kommt

• Schützt Applikationen, indem keine neuen Sessions zugelassen werden

• Stopped Services Transaktional auf dem Server

• Wenn der “Stress” nachlässt werden Sessions wieder zugelassen

Schützt den Cluster vor Memory Engpässen

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 26

Oracle 12c Quality of Service Management

• Ab 12.1.0.2+ Grid Infrastructure

• Funktioniert auch mit 11.2 (RAC)

• Cloud Control Integration

• Clusterweites KPI Dashboard

• Measure, Monitor Only Modus

• Management Modus

SLA Überwachung für Services

Full EM Cloud Control Integration

Monitor and Alert

Define Policies

Evaluate and Report

Analyze and Aggregate

Classify and Measure

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 27

Oracle RAC 12.2

1

2

3

4

5

Mastering & Node Evictions

Cluster Domain

Cluster Health Framework

ASM Filegroups

Stretch Clusters

Sonstiges (ACFS / ADVM etc.) 6

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 28

• Diskgruppen enthalten Dateien und definieren Striping und Mirroring

• Keine Unterscheidung individueller Datenbanken

• Einfach zu verwalten

• Schwierig bei Konsolidierungen

Storage Management bis 12.2: Diskgruppen orientiert

Pre-12.2 Diskgroup Organization

Diskgroup

DB3 : File 1

DB2 : File 2 DB1 : File 3

DB3 : File 3

DB2 : File 1

DB1 : File 1

DB1 : File 2

DB2 : File 3 DB3 : File 2

DB2 : File 4

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 29

• Neuer Diskgruppen Typ: Flex Diskgroups

• Flex Diskguppen bieten File Groups

• Eine File Group ist eine Sammlung von Dateien, die zu einer Datenbank/PDB gehören

• File Group Name Default: Datenbank oder PDB Name

Storage Management 12.2: Datenbank orientiert 12.2 Flex Diskgroup Organization

Flex Diskgroup

DB1 File 1

File 2

File 3

DB2 File 1

File 2

File 3

File 4

DB3 File 1

File 2

File 3

File Group File Group

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 30

ASM File Group Flexibilität und Verfügbarkeit

• Flex Diskgruppen: - Quota Management – limitiert

den Platz einzelne Datenbanken

- Redundancy Change – geringere Redundanz für unwichtigere Datenbanken

- ASM Database Clones für schnelles Anlegen von Datenbank Clones

DB1

File1

File2

File3

DB2File1

File2

File3

File4

DB3File1

File2

File3

QuotaGroupB

FlexDiskgroup

QuotaGroupA

FlexDiskgroupQuotaManagement

DB1

File1

File2

File3

DB2File1

File2

File3

File4

DB3File1

File2

File3

QuotaGroupB

FlexDiskgroup

QuotaGroupA

FlexDiskgroupDatabaseClone

DB3a

File1

File2

File3

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 31

Oracle RAC 12.2

1

2

3

4

5

Mastering & Node Evictions

Cluster Domain

Cluster Health Framework

ASM Filegroups

Stretch Clusters

Sonstiges (ACFS / ADVM etc.) 6

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 32

Site A Site B

Was definiert einen Extended Distance Cluster?

Aus Oracle sicht definiert sich ein Extended/Stretch Cluster sobald Daten zwischen unabhängigen Storage Systemen gespiegeld werden (mit Oracle ASM)

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 33

Voting Disk Konfiguration

Oracle RAC on Extended Distance Clusters

Site C or Quorum VD3

Site A

ASM Instance

Database Instance

nodeB nodeA ASM ASM

DBB DBB

Site B

nodeC nodeD ASM ASM

DBB DBB

Oracle ASM Disk Group

Failure Group 1

VD1

Failure Group 2

VD2

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 34

Oracle 12.2 Extended Cluster Installation – Site-awareness ist elementar

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 35

Oracle 12.2 Extended Cluster Installation – Extended Redundancy

Define failure group names and assign to sites.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 36

Flex Diskgroup und Extended Redundancy

• Flex Disk Group bringt neues “Redundancy” Setting: “Flex” und “Extended”

• “Extended” für Extended Clusters

– Diskgruppen mit “Extended Redundancy” sind Site-Aware

– Extended Disk Groups unterstützen mehrere Voting Disks Failgroups • Mehrere Voting Disk Failure Groups (FG) pro Site verhindern

dass ein Voting Disk Ausfall den kompletten Cluster betrifft

Flex Disk Group

DB1 File 1 File 2 File 3

DB2 File 1 File 2 File 3 File 4

DB3 File 1 File 2 File 3

File Group Database-oriented

storage management

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 37

Beispiel

Oracle Extended Cluster

siteQ

siteA

ASM Instance

Database Instance

nodeA ASM

siteB

nodeB ASM

INFRA

INFRA

FGA1 FGA3 FGA2 FGB3

FGQ

FGB1 FGB2

VD7

VD1 VD2 VD3 VD4 VD5 VD6

VD7

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 38

Quorum an mehreren Sites

Warum mehrere Voting Disks?

siteQ

siteA

ASM Instance

Database Instance

nodeA ASM

siteB

nodeB ASM

INFRA

INFRA

FGA1 FGA3 FGA2 FGB3

FGQ

FGB1 FGB2

VD1 VD2 VD3 VD4 VD5 VD6

VD7

✔ “Simple Majority Rule” is applied for each site”

“Simple Majority Rule” is applied

across sites” ✔

Additional local Voting Disks (3) per site

increase reliability.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 39

Oracle RAC 12.2

1

2

3

4

5

Mastering & Node Evictions

Cluster Domain

Cluster Health Framework

ASM Filegroups

Stretch Clusters

Sonstiges (ACFS / ADVM etc.) 6

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 40

ASM Filter Driver

• ASM Filter Driver ersetzt ASMLIB

– ASMLIB bietet effizientes IO Verhalten und Persistentes Device Naming auf Linux

– ASMFD bietet dies auf Linux, Solaris und Microsoft Windows

• PLUS + Verhindert ungewolltes Überschreiben von ASM Platten

+ Untersützt ACFS

+ Optimaler Support für Platten mit 4k Sector Size

+ T10 Daten Integrität

+ Storage Thin Provisioning

• ASMFD Zukunft: Verbesserte Storage Funktionen (Oracle Storage)

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 41

Compression

Snapshots Quotas, Remaster

& Duplicate

Snapshot-based Replication

Auto File System Quotas & Auto

Resize

Metadata Acceleration

HA-SMB NAS Support

12.2 ASM Cluster Filesystem

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 42

Safe Harbor Statement

The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. 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 for Oracle’s products remains at the sole discretion of Oracle.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. BU Core & Cloud Technologies 43

http://blogs.oracle.com/dbacommunity_deutsch

http://tinyurl.com/oratech-monthly

Nächste Ausgabe 08. Februar

@oraclebudb

@s2solbach