Diagnostics and Service Management

Slides:



Advertisements
Similar presentations
Page 1 Ricardo Villalobos Windows Azure Architect Evangelist Microsoft Corporation Designing, Building, and Deploying Windows Azure applications.
Advertisements

Google App Engine Cloud B. Ramamurthy 7/11/2014CSE651, B. Ramamurthy1.
“It’s going to take a month to get a proof of concept going.” “I know VMM, but don’t know how it works with SPF and the Portal” “I know Azure, but.
Emmanuel Mesas Microsoft Western Europe Leverage Azure Services & Platform with Existing Application.
Overview Of Microsoft New Technology ENTER. Processing....
Integrate into existing systems with PowerShell integration modules Extend by building PS modules to enable integrating into other systems Optimize.
Joey Snow Technical Evanglist Microsoft Corporation SESSION CODE: WSV310.
Fraser Technical Solutions, LLC
VM Role (PaaS)Virtual Machine (IaaS) StorageNon-Persistent StoragePersistent Storage Easily add additional storage DeploymentBuild VHD offsite and upload.
Automate Microsoft Azure Ross Sponholtz Mark Ghazai.
4/20/2017 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Components of Windows Azure - more detail. Windows Azure Components Windows Azure PaaS ApplicationsWindows Azure Service Model Runtimes.NET 3.5/4, ASP.NET,
Worker Role Fault DomainFault Domain Worker Role Fault DomainFault Domain U/G Domain #1U/G Domain #1U/G Domain #2U/G Domain #2U/G Domain #1U/G.
Windows Azure Insights for the Enterprise IT Pro John Craddock Infrastructure and Identity Architect XTSeminars AZR301.
Your First Azure Application Michael Stiefel Reliable Software, Inc.
Module 7: Fundamentals of Administering Windows Server 2008.
Windows Azure Conference 2014 Deploy your Java workloads on Windows Azure.
Partner Practice Enablement - Overview This session will focus on integration strategies for applications deployed using Microsoft Azure Websites and Microsoft.
4/24/2017 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Grigori Melnik, Fernando Simonazzi Microsoft patterns & practices patterns & practices symposium 2013 Autoscaling in Windows Azure aka.ms/autoscaling.
Automating Operational and Management Tasks in Microsoft Operations Management Suite and Azure
Visual Studio Windows Azure Portal Rest APIs / PS Cmdlets US-North Central Region FC TOR PDU Servers TOR PDU Servers TOR PDU Servers TOR PDU.
Windows Azure Virtual Machines Anton Boyko. A Continuous Offering From Private to Public Cloud.
Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft.
Zvezdan Pavković. Storage Non-Persistent Storage Persistent Storage Easily add additional storage. Networking Internal and Input Endpoints configured.
Microsoft Confidential Automation Query, Manage and Configure Windows Azure resources (VMs, Cloud Services, Websites, Storage, Queues, Databases etc…)
 Mike Martin  Architect  MEET Member  Crew Member of Azug  Windows Azure Insider  Windows Azure MVP  
Windows Azure Fundamentals Services Storage. Table of contents Overview Cloud service basics Managing cloud services Cloud storage basics Table storage.
Windows Azure Custom Software Development Mobile Middleware Windows Azure Compute Dipl.-Ing. Damir Dobric Lead Architect daenet
Inside Azure Diagnostics 17 COLUMBUS, OHOCTOBER 17, 2014CLOUDDEVELOP.ORG.
Azure in a Day Training: Windows Azure Module 1: Windows Azure Overview Module 2: Development Environment / Portal – DEMO: Signing up for Windows Azure.
Enabling the Cloud OS Today  New high-density Web Sites with elastic cloud scaling and complete dev-ops experiences  New rich IaaS experience for self-service.
Microsoft Cloud Computing. Topics to be covered 1.Environmental Features of windows azure 2.What is Cloud Computing 3.Roles in Cloud Computing 4.Benefits.
Module 14: Advanced Topics and Troubleshooting. Microsoft ® Windows ® Small Business Server (SBS) 2008 Management Console (Advanced Mode) Managing Windows.
Building Cloud Solutions Presenter Name Position or role Microsoft Azure.
Windows Azure Boot CampWindowsAzureBootCamp.com. Windows Azure Boot CampWindowsAzureBootCamp.com.
Building web applications with the Windows Azure Platform Ido Flatow | Senior Architect | Sela | This session.
Bellevue College Cloud Seminars Learn: Cloud services Friday, March 4, 2016 Azure Virtual Machines Fawad Khan.
Copyright © New Signature Who we are: Focused on consistently delivering great customer experiences. What we do: We help you transform your business.
Inspirirani ljudima. Ugasite mobitele. Hvala.. Paolo Pialorsi Senior Consultant PiaSys ( Publishing apps for SharePoint 2013 on Microsoft.
 Cloud Computing technology basics Platform Evolution Advantages  Microsoft Windows Azure technology basics Windows Azure – A Lap around the platform.
WINDOWS AZURE AND THE HYBRID CLOUD. Hybrid Concepts and Cloud Services.
COS312. CLOUD COMPUTING IT as a Service On-PremisesStorageStorage ServersServers NetworkingNetworking O/SO/S MiddlewareMiddleware VirtualizationVirtualization.
Stress Free Deployments with Octopus Deploy
Deploying Web Application
Tulika Chaudharie / Harikharan Krishnaraju
Logo here Module 3 Microsoft Azure Web App. Logo here Module Overview Introduction to App Service Overview of Web Apps Hosting Web Applications in Azure.
Deploying and Configuring SSIS Packages
Acutelearn Azure Administration Training in Hyderabad Classroom Training Instructor led trainings at Acutelearn premises Corporate Training Custom tailored.
Overview of Managing Apps, Services & VM in Windows Azure
11/11/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Monitoring and troubleshooting Windows Azure apps
Обзор Windows Azure Connect
Introduction to Building Applications with Windows Azure
12/9/2018 9:10 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Managing Services with VMM and App Controller
More Virtual Machines 2.
Migrating your applications to Azure
On the wire Getting Started with Windows Azure
Developing for Windows Azure
5 Azure Services Every .NET Developer Needs to Know
Building global and highly-available services using Windows Azure
02 – Cloud Services Bret Stateham | Senior Technical Evangelist​
A - E Cloud Enterprise Symbols
Day 2, Session 2 Connecting System Center to the Public Cloud
System Center Configuration Manager Cloud Services – Cloud Distribution Point Presented By: Ginu Tausif.
SCCM in hybrid world Predrag Jelesijević Microsoft 7/6/ :17 AM
Making Windows Azure Relevant to IT Professionals
Presentation transcript:

Diagnostics and Service Management In this module- Learn how to find out what is going on Do something about it

How do you do diagnostics today How do you do diagnostics today? How do you manage your applications and services today?

Challenges with diagnostics in the cloud Many instances They move around Massive amount of data Can’t remote desktop in No remote tools

The Diag engine brings all of the sources together for you. MonAgentHost.exe is started automatically by default. Listener wired up in app/web.config Need to define a storage account connection string

How does it work (in a nutshell)? Role Instance Role Instance Starts Diagnostic Monitor Starts** Monitor is configured Imperatively at Start time Remotely any time Monitor buffers data locally User can set a quota (FIFO) User initiates transfer to storage Scheduled or On Demand Role Diagnostic Monitor Local directory storage

Sources: Data Source Default Destination Trace Logs Enabled Azure Table Diagnostic Infrastructure Logs IIS Logs Blob Performance Counters Disabled Windows Event Logs IIS Failed Request Logs Crash Dumps Arbitrary Files

The Escape Hatch Allows you to collect any file that is in a defined directory Can be used for: Collecting custom audit files Any source of data Usage data for billing

Loading the Diagnostic Agent The agent is loaded as an Azure module in the ServiceDefinition.csdef The module expects a connection string named: A production connection string must be HTTPS.

Write to Trace Output

Common Patterns Get Config Make a change to the config From default Current running Make a change to the config Start the Diag agent with new config

Changing Config Can change from within the instance Affects only that instance Then start the agent immediately Can change from outside for all roles Change the central file Agent notices a change and reloads Affects all instances of that role

Local directory storage Remote Configuration Poll Interval Role Role Instance Diagnostic Monitor Local directory storage

Get the Current Configuration First create a cloud storage account that points to the storage account used for diag data Call createroleisntancediagnosticmanager off of that, passing in the isntance info Then call getcurrentconfiguration

Make changes to the config Create a perfcounter config object Add the counter specifier Change the sample rate Add the config object to the datasources collection Adjust the scheduled transfer period

Commit the change Then commit the change by passing in the config object from above

Sample Results

Log Filters Does not filter data collected Only filters what is transferred transferOptions.LogLevelFilter = LogLevel.Error;

Visualizing the data Cerebrata’s Azure Diagnostics Manager

Visualizing the data

Visualizing the data Configuring counters remotely…

Schedule Transfers Each source is assigned its own schedule Data is transferred at the right time Set interval to 0 to disable transfer

On Demand Transfers Handy for responding to events Handled like an external config change Requests are handled asynchronously Returns a request id when submitted Can report success to a queue

Service Management API Allows us to do almost anything the portal can do Limitations No billing data Creating a subscription Creating a storage or compute service Cannot deploy management certificates Free Don’t be stupid – may get throttled

API Authentication All API calls must be signed with a registered administrative certificate X509 certificates are used You can register up to five certificates You can revoke at any time Can be self signed Upload .cer through portal

Deploying Services Delete/Create Deployment Visual Studio does this. VIP will change Service Model Updates don’t matter VIP Swap Bring up another environment in Staging and swap Only Input Endpoints (external ports) matter In-Place Upgrade Rolling upgrade across roles Most restrictive on changes (no size, endpoints, roles, etc.) Web Deploy*

Configuring VS2010

Deployment Environments Two Environments to choose from Nearly Identical… <servicename>.cloudapp.net <deploymentID>.cloudapp.net VIP Swap between them

If the cube is Gray, You’re OK. If the cube is Blue, a bill is due. Even when you ‘suspend’ your service, you will still be charged. Suspend only disables inbound traffic. The code is actually still running.

Worried about leaving something running? Download the Grey Box Application GreyBox.CodePlex.com Open source, originally written by Strategic Data Systems and Mike Wood Reminds you if you have apps running, and helps you stop them Avoids overrun of MSDN allocation

Grey Box

MOCP will notify you MOCP will send an email to the Live ID of the subscriber when compute reaches: 75% 100% 125% Only works for committed hours, not for pay as you grow hours

VIP Swap Upgrades Swap Virtual IPs between the two slots Production becomes Staging Staging becomes Production Instances are not affected DNS and LB remains intact Happens very fast Can only use when the service model hasn’t changed

VIP Swap Deployment VM VM VM VM Prod Prod Deployment Stage Stage VM VM Web Role Worker Role VM VM VM VM Load Balancer: Prod Prod Deployment Stage Stage Web Role Worker Role VM VM VM VM

In-Place Upgrades Rolling upgrades are IT Nirvana Difficult to do in traditional IT Leverages Upgrade Domains Service model must be identical (ie. No new roles, no changes in .csdef, etc.) For Each Upgrade Domain Stop instances Update Start instances

In Place Upgrade #1 #2 #1 #2 Rack Rack VM VM Prod VM VM VM VM VM VM Web Role Web Role Load Balancer: #1 VM VM Prod #2 VM VM Worker Role Worker Role #1 VM VM #2 VM VM

Fault and Upgrade Domains Fault Domains Represent groups of resources anticipated to fail together i.e. Same rack, same server Fabric spreads instances across fault domains Default of 2 Upgrade Domains Represents groups of resources that will be upgraded together Specified by upgradeDomainCount in ServiceDefinition Default of 5 Fabric splits Upgrade Domains across Fault Domains and Across Roles

Upgrade Domains Defined in .csdef Instances evenly distributed Isolated Hardware Isolated Hardware Isolated Hardware Fault Domain 1 Fault Domain 2 Fault Domain 3 Upgrade Domain 1 Role A Instance 1 Role B Instance 2 Role C Instance 3 Upgrade Domain 2 Role B Instance 1 Role C Instance 2 Role A Instance 3 Upgrade Domain 3 Role C Instance 1 Role A Instance 2 Role B Instance 3

How? Can be done via portal or the management API Upgrade Mode: Automatic or Manual Manual waits for human intervention to confirm upgrade is ok before proceeding

Changing Configuration Change any setting in .cscfg Change the number of instances running Three approaches: Edit on portal Upload new file in portal Upload new file with management API By default, changing the number of instances does not affect running instances. Any other config restarts the instances.

Deployment and Management Tools Visual Studio* CSManage.exe Windows Azure MMC Windows Azure Service Management (WASM) cmdlets 3rd Party tools

Windows Azure Service Management Cmdlets Set of PowerShell cmdlets Wraps Management REST API and Diagnostics API Enables building of sophisticated deployment scripts Works with rest of .NET CLR

Windows Azure MMC MMC Snapin providing graphical view of services, diagnostics, and storage Built on top of WASM Cmdlets Plugin-based, extensible Remotely configure diagnostics Download and view diagnostics

Monitoring Windows Azure Diagnostics Windows Azure Monitoring MP for SCOM Available as RC now! Monitors Health, Scales, and more

Autoscaling Azure does not autoscale Azure gives you the tools What is ‘busy’ for your app is different than someone else Azure gives you the tools Not an easy problem to crack Define inputs Define rules to determine busy or stagnant state Make adjustments Don’t run amok, put a human in somewhere

Deploying Applications in Windows Azure Lab Exercises Deploying via the Management Portal Deployment via PowerShell Deployment via Visual Studio Securing Azure with SSL* Labs Location C:\WAPTK\Labs\WindowsAzureDeploymentVS2010