Prezentácia sa nahráva. Prosím počkajte

Prezentácia sa nahráva. Prosím počkajte

Tvorba a správa Azure VM s následnou optimalizáciou

Podobné prezentácie


Prezentácia na tému: "Tvorba a správa Azure VM s následnou optimalizáciou"— Prepis prezentácie:

1 Tvorba a správa Azure VM s následnou optimalizáciou
Miroslav Kubovčík Vývojársky špecialista, DX Microsoft Česká Republika a Slovensko

2 DEMO Prvý pohľad na Azure VM a „Deployment template“
Microsoft Ignite 2015 6/26/2019 4:27 PM DEMO Prvý pohľad na Azure VM a „Deployment template“ © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

3 Model Azure Resource Manager (ARM)
Kontajner životného cyklu aplikácie/projektu Deklaratívne riešenie pre Provisioning & Konfigurácia Konzistentná vrstva správy Azure portál, PowerShell, xPlat CLI a Visual Studio Centralizované auditovanie, tagging, RBAC

4 Príklad - model ASM vs ARM
6/26/2019 Príklad - model ASM vs ARM ASM model (Classic,v1) ARM model (Resource Manager, v2) Storage účet Virtual network Cloud service Resource group Load-balancovaný endpoint s IP adresou Back-end pool (NICy) VM s IP adresou Storage účet Disk (blob) VM NIC (sieťovka) VM IP adresa VNet Subnet Load Balancer LB IP adresa Závislosť Referencia Referencia Referencia Referencia Referencia Storage účet Virtual network Disk (blob) Subnet-1 Network Security Group ACLS (nasadená pre VM, NIC alebo Subnet) © 2015 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

5 One Marketing Template
6/26/2019 ARM šablóny - JSON Schéma, verzia obsahu, parametre, premenné, zdroje a výstupy © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

6 Výrazy v jazyku ARM šablón
base64encode(‘stringtoencode’) concat(‘string’,’to’,’encode’) copyIndex(offset) listKeys(storageAccountResourceId, apiVersion) padLeft(stringToPad,targetLength,paddingCharacter) parameters(‘parameterName’) providers(namespace, resourceType) reference(resourceId,apiVersion) resourceGroup() resourceId(‘namespace/resourceType', ‘resourceName’) subscription() variables(‘variables’)

7 Možnosti šablón pre ARM
6/26/2019 Možnosti šablón pre ARM Jednoúrovňové šablóny Cykly zdrojov (viac kopií služby) Inline nasadenia (vnorené šablóny) Úpravy alokovaných služieb © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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 Microsoft Ignite 2015 6/26/2019 4:27 PM DEMO Provisioning kód založený na šablónach Infrastructure as code pre Azure VM v Visual Studio Team Services (projektová správa) © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

9 Microsoft Ignite 2015 6/26/2019 4:27 PM DEMO Ako vytvárať šablóny - exportovanie z Azure portálu - generovanie napr. pomocou pomocou Visual Studia - predpripravené šablóny © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

10 Microsoft Ignite 2015 6/26/2019 4:27 PM DEMO DSC v ARM šablóne na automatické vytvorenie Active Directory domény - pomocou Visual Studia © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

11 Azure Automation Process Automation Desired State Configuration (DSC)
Build 2014 6/26/2019 Azure Automation Process Automation Manuálne task-y Dlho bežiace úlohy Často opakované úlohy Desired State Configuration (DSC) Nasadenie zdrojov Kontrola konfigurácie zdrojov Infrastructure as a code DevOps © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

12 Process Automation – Runbook-y
Build 2014 6/26/2019 Process Automation – Runbook-y Graphický PowerShell PowerShell Workflow © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

13 Process Automation - Joby
Build 2014 6/26/2019 Process Automation - Joby Input Output Job Summary Status Exceptions © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

14 Tipy: Input, Output a Error-Handling
Definujte atribúty pre Input parametre ako Name, Type, Mandatory a Default Value Popisujte Input parametre Do Output dávajte užitočné informácie pre zistenie stavu runbook-u Používajte Try Catch bloky pre spracovanie chýb Nastavte $ErrorActionPreference premennú na prevzatie kontroly, keď cmdlets zlyhá

15 Process Automation - Assets
Build 2014 6/26/2019 Process Automation - Assets Čas.plány Moduly Certifikáty Spojenia Premenné Credentials © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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 Porovnanie typov Runbook-ov
Build 2014 6/26/2019 Porovnanie typov Runbook-ov Vlastnosť Grafický PowerShell Workflow PowerShell Vizualizácia X Checkpointy a pokračovanie po chybách Paralelné spracovanie Integrácia zdrojového kódu Podpora hybridného workera Webhook-y Spustenie runbooku potomka (Nesting) Graphical PowerShell Workflow Graphical PowerShell Workflow Spustenie runbooku potomka (cez Start-AzureAutomationRunbook) Akýkoľvek typ Tvorba runbook-ov Azure portál Azure portál alebo offline text. editor Čas naštartovania Dlhší, závislý od komplexnosti runbookov Krátky Implementácia komplexnej logiky Minimálna Úplná © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

17 Tipy pre tvorbu runbookov
PowerShell Workflow Runbook, ak máte dlho bežiacu úlohu Použite checkpointy, ak vytvárate PowerShell Workflow Runbook PowerShell runbook, ak máte menšiu úlohu, ktorá má byť spustená rýchlo Grafický runbook, ak neovládate PowerShell

18 Demo Vypnutie Azure VM Preškálovanie Azure SQL Database

19 Doporučenia pre Azure VM

20 Azure VM Používajte iba model Resource Manager (nie Classic)
Dátové centrum vyberajte podľa ceny VM, latencie siete, dostupných služieb Nedávajte transakčné súčasti aplikácií do rôznych dátových centier (cena bandwidth, latencia siete) Aj keď chcete A sizing, vytvorte najskôr VM v sizing D Využívajte Managed Disk-y HDD vás pri databázovom servri vyjde drahšie (zložitejšia správa zväzkov, obnova, zálohovanie,...) HDD max 60MB/s, 500 IOPS vs SSD max 200 MB/s 5000 IOPS Ak sa VM nedá naštartovať, skúste Boot Diagnostics, Redeploy Vopred rozdeľte sieť na subnety a VM s statickými IP adresami dávajte do subnetu výlučne len určeného pre VM s statickými IP adresami

21 Azure VM – roly serverov
Zvážte, aký workload beží na VM windows-sizes-general Napr. FileServer na A1 síce nepotrebuje pamäť a CPU, ale malý sizing znamená limitovanie NIC priepustnosti ADDS kontrolér -> 2x sizing A1v2 v Availability Set-e Webový server -> iba frontend (A2v2+, D1v2+ farmy), vrátane aplikačného middleware (D2v2+, F sada) Databázový server -> Sizing s SSD/Managed disks a väčšou porciou pamäte (DS11v2 – DS15v2, L, G)

22 Doporučenia pre SQL Server v Azure VM

23 Doporučenia pre SQL Server v Azure VM Konektivita
6/26/2019 Doporučenia pre SQL Server v Azure VM Konektivita SQL : TCP Client Protocol DNS Servery >1 Bezpečnosť Windows Firewall Azure Network Security Groups Inbound / Outbound / Bez internetového prístupu Limitovanie extreného prístupu Klientský Connection String (.Net 4.5 SQLClient) MULTISUBNETFAILOVER = TRUE Windows Update  © 2015 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

24 Doporučenia pre SQL Server v Azure VM
6/26/2019 Doporučenia pre SQL Server v Azure VM Always On : Ako to pracuje v Azure? © 2015 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

25 Doporučenia pre SQL Server v Azure VM Vysoká dostupnosť
Microsoft Consumer Channels and Central Marketing Group 6/26/2019 Doporučenia pre SQL Server v Azure VM Vysoká dostupnosť Update Domains / Fault Domains Availability Set-y Všetky nody klastra v jednom Availability Set-e Storage účty Jeden na SQL Server LRS vs GRS © 2013 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.

26 Doporučenia pre SQL Server v Azure VM Výkon
Microsoft Consumer Channels and Central Marketing Group 6/26/2019 Doporučenia pre SQL Server v Azure VM Výkon Použite DS sériu a Premium Storage/Managed disky (min.DS3) Použite separátne disky pre log a dáta Kešovanie disku Premium Storage Data / Tempdb : Read Log : None Standard : None Umiestnenie TempDB A séria = Attached VHD D\DS\GS séria= Attached VHD © 2013 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.

27 Doporučenia pre SQL Server v Azure VM Výkon
Microsoft Consumer Channels and Central Marketing Group 6/26/2019 Doporučenia pre SQL Server v Azure VM Výkon Nevsádzajte iba na zvyšovanie systémových zdrojov Zvážte to, čo pri „domácej“ prevádzke SQL Servera InMemory tables Column Store Index Pravidelne vyhodnocujte Query Store (SQL 2016) “Top Consumed queries” a doporučenia indexov © 2013 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.

28 Doporučenia pre SQL Server v Azure VM Výkon
Microsoft Consumer Channels and Central Marketing Group 6/26/2019 Doporučenia pre SQL Server v Azure VM Výkon Ak treba, použite Storage Pools pre viac IOPs Nastavte špecifické nastavenia pool-u pre SQL workload (PowerShell) Interleave Počet stĺpcov Zvážte konfiguráciu / počet diskov a ich veľkosti Storage účet limituje 20K IOPS © 2013 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.

29 6/26/2019 SQL XI (Xstore integrácia) Od verzie SQL Server 2014 Data/log súbory priamo v Azure Storage Blobs (namiesto VM diskov) Umožňuje ukladať viac dát ako je limit úložiska VM storage Stripovanie databáz naprieč viac Azure Storage blobmi Ukladanie väčšieho počtu databáz Nižšie poplatky ak nepotrebujete viac cores/pamäte Trošku rýchlejšie I/O (~15%) Priamy I/O cez REST API volania © 2015 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

30 Zdroje informácií ARM dokumentácia príklady SQL Server v Azure VM
SQL Server v Azure VM

31 6/26/2019 © 2015 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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. © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.


Stiahnuť ppt "Tvorba a správa Azure VM s následnou optimalizáciou"

Podobné prezentácie


Reklamy od Google