Die Präsentation wird geladen. Bitte warten

Die Präsentation wird geladen. Bitte warten

Hochverfügbarkeit mit { SQL Server 2008 }

Ähnliche Präsentationen


Präsentation zum Thema: "Hochverfügbarkeit mit { SQL Server 2008 }"—  Präsentation transkript:

1 Hochverfügbarkeit mit { SQL Server 2008 }
3/28/2017 3:11 PM Hochverfügbarkeit mit { SQL Server 2008 } Markus Raatz Geschäftsführer ixto GmbH © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 Warum Hochverfügbarkeit?
Standzeiten führen zum Umsatzverlusten und geringerer Mitarbeiter-Produktivität Verfügbarkeit während geplanter Wartungsfenster Patch- und Service Pack-Installation Hardware und Software-Upgrade Umkonfiguration des Systems Datenbankwartung Aktualisierung der Applikation Schutz gegen ungeplante Ausfälle Fehlerursache Nr. 1: der Mensch Katastrophen am Standort Hardware-Versagen Korrupte Daten Software-Absturz 2

3 Hochverfügbarkeit mit dem SQL Server 2008
Datenbankspiegelung Transaktionsreplikation Protokollversand Sichern und Wiederherstellen Windows Cluster Datenbanksnapshot

4 Datenbankspiegelung Überblick
Ein Hot Standby schützt bei Datenbank- oder Serverausfall Fehlertoleranz auf Datenbankebene Benötigt keine spezielle Hardware Simple Einrichtung und Administration Automatisches oder manuelles Failover Beim SQL Server 2008 ist nach manuellem Failover kein Neustart der Datenbank erforderlich! Automatisches und transparentes Umleiten der Clients Keine gemeinsamen Komponenten, zwei Kopien der Daten Der SQL Server 2008 komprimiert den Strom der Protokoll-Daten vom Prinzipal zum Spiegelserver

5 Funktion der DB-Spiegelung synchroner Modus
1 Bestätigung Commit 7 Bestätigung 6 Permanentes redo auf dem Spiegelserver 2 Übertragung zum Spiegel 2 4 Schreibt ins lokale Log Commit im Log Schreibt ins Log des Spiegels 3 5 DB Log Log DB

6 3/28/2017 3:11 PM Datenbankspiegelung Modus für hohe Sicherheit mit automatischem Failover Daten werden synchron gespiegelt, als Teil der Transaktion Automatisches Failover wenn der Prinzipal ausfällt Automatische Umleitung der Clients Zeuge Client Prinzipal Spiegel- server © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

7 Datenbankspiegelung Synchroner Modus für hohe Sicherheit
3/28/2017 3:11 PM Datenbankspiegelung Synchroner Modus für hohe Sicherheit Daten werden synchron gespiegelt, als Teil der Transaktion Manuelles Failover, wenn der Prinzipal ausfällt Automatisches Umleiten der Clients Client Prinzipal Spiegel- server © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

8 Datenbankspiegelung Asynchroner Modus für hohe Leistung
Die Daten werden asynchron gespiegelt, ohne Transaktion Manuelles Failover, wenn der Prinzipal ausfällt Automatsches Umleiten der Clients Client Prinzipal Spiegel- server

9 Datenbankspiegelung Reparatur fehlerverdächtiger Seiten
SQL Server 2008 überprüft das Schreiben von Speicher-Seiten mit einer Prüfsumme Inkonsistente Seiten können automatisch vom Spiegelserver wiederhergestellt werden Prinzipal Spiegel- server

10 Datenbankspiegelung Automatische Seiten-Reparatur
Zeuge 2. Seite anfordern 3. Seite finden 5. Seite transferieren Log 1. Defekte Seite erkannt X Daten Log 6. Seite schreiben Daten 4. Seite abrufen Prinzipal Mirror 10

11 Datenbankspiegelung Log-Komprimierung
Datenbankspiegelung funktioniert durch Transferieren der Transaktionslog-Einträge vom Prinzipal zum Spiegelserver Die Performance wird durch niedrige Netzwerk-Bandbreite und hohes Log-Aufkommen beeinflusst Wenn man die Protokolleinträge komprimiert, bevor man sie sendet, kann man mehr Daten über dieselbe Bandbreite schicken, ABER auf Kosten der CPU! CPU-Last entsteht beim Komprimieren und Dekomprimieren Bei hoher Bandbreite sind dadurch mehr Operationen möglich, die durch die vollständige Protokollierung sehr aufwändig waren (z.B. Index-Reorganisation) Kann mit Ablaufverfolgungsflag 1462 abgeschaltet werden ACHTUNG: Kompressionsgrad (und damit der Durchsatz) hängen von der Art der Daten in der Applikation ab

12 Datenbankspiegelung Log-Komprimierung
Die Performance-Verbesserung ist am größten bei niedriger Netzwerk-Bandbreite Komprimierung der Log-Daten 12

13 Datenbankspiegelung Kosten der Log-Komprimierung
Vergleich der CPU-Last bei verschiedenen Netzwerk-Bandbreiten mit und ohne Log-Komprimierung Bei eingeschalteter Komprimierung steigt die CPU-Last aus zwei Gründen: Komprimierung/ Dekomprimierung Der Server kann mehr Transaktionen pro Sekunde verarbeiten Komprimierung der Log-Daten 13

14 { Datenbankspiegelung }
3/28/2017 3:11 PM { Datenbankspiegelung } Demo Markus Raatz Geschäftsführer ixto GmbH © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

15 Microsoft Clustering Redundanz der Server-Hardware
3/28/2017 3:11 PM Microsoft Clustering Redundanz der Server-Hardware Verwendet ein gemeinsames Festplattensystem Die gesamte Instanz ist virtualisiert und wechselt gleichzeitig den Rechner Kann auch andere Ressourcen außer SQL enthalten SQL Server 2008 braucht nicht mehr für jede Instanz einen Laufwerksbuchstaben Clustering kann mit Datenbankspiegelung, Protokollversand oder Replikation kombiniert werden Geografisch verteiltes Failover-Clustering (Geocluster) mit verschiedenen Knoten schützt auch bei Ausfall des Festplattensystems © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

16 Microsoft Clustering SQL Server Editionen
Standard Edition Enterprise Edition Nur 2-Knoten-Cluster So viele Knoten wie das Betriebssystem unterstützt

17 Windows Server 2008 Cluster
Unterstützung für 16 Clusterknoten Knoten können in verschiedenen Subnets stehen Unterstützung für ODER-Abhängigkeiten z.B.: die Ressource Netzwerkname ist erhältlich wenn eine oder die andere IP-Adresse erhältlich ist Cluster Validierungs-Werkzeug Verifiziert die korrekten Hardware-Ressourcen und –Einstellungen für das Clustering

18 Protokollversand Log Shipping sorgt für Redundanz auf Datenbank-Ebene
Kostengünstig, weil keine spezielle Hardware benötigt wird Simple Installation, einfache Verwaltung Lesender Zugriff auf dem Zielserver ist möglich, z.B. für Berichte) Aber: Nutzer werden getrennt, wenn das Log wiederhergestellt wird Mehrere sekundäre Serverinstanzen möglich Optionaler Monitor-Server Speichert die Historie und den Status der Sicherungs- und Wiederherstellungsaufträge Kann eine Warnung senden, wenn diese Aufträge fehlschlagen

19 Datenbank-Snapshots Erzeugen eine konsistente Kopie der Datenbank nur zum Lesen Der Snapshot bleibt unverändert, wenn die Datenbank modifiziert wird Schützt vor Benutzer-Fehlern und inkonsistenten Daten Sehr schnell zu erstellen Sparsam auf der Platte “Copy-On-Write”-Verfahren Für jede Datenbank möglich Kostengünstig, weil keine spezielle Hardware benötigt wird Simple Installation, einfache Verwaltung Client

20 Welche Option wofür? Datenbankspiegelung
3/28/2017 3:11 PM Welche Option wofür? Datenbankspiegelung Primäre Kopie der Datenbank für den Notfall Protokollversand Zusätzliche Kopie der Daten- bank für Katastrophen Logische Wiederherstellung Replikation Fürs Reporting pro Datenbank Scale Out mit Redundanz Clustering Redundanz lokaler Server Always On Storage Partner-Lösungen Hochverfügbarkeit der Storage Hohe Ausfallsicherheit der Hardware Datenbank- Scale Out Für Abfragen Replikation Datenbankspiegelung Clustering Hot Standby Produktions- Datenbank Protokollversand Warm Standby Protokollversand mit spätem Restore Logische Wieder- herstellung Daten- sicherung © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

21 SQL Server Hochverfügbarkeit Lizensierung
Lizenzen nur für aktive Server Passive Server benötigen keine Lizenz Nach dem Failover braucht man für 30 Tage keine Lizenz Kostengünstigstes Lizensierungsmodell aller großen Datenbankhersteller

22 3/28/2017 3:11 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Herunterladen ppt "Hochverfügbarkeit mit { SQL Server 2008 }"

Ähnliche Präsentationen


Google-Anzeigen