Compute: App Service, State configuration Flashcards
Web App Scaling: Scale Up
You scale up by changing the pricing tier of the App Service plan that your app belongs to.
Get more CPU, memory, disk space, and extra features like dedicated virtual machines (VMs), custom domains and certificates, staging slots, autoscaling, and more.
Web App Scaling : Scale Out
Increase the number of VM instances that run your app. You can scale out to as many as 30 instances, depending on your pricing tier.
The scale instance count can be configured manually or automatically (autoscale). Autoscale is based on predefined rules and schedules.
App Service Plan Scaling: Metric-Based
Metric-based rules measure application load and add or remove VMs based on that load.
For example, do this action when CPU usage is above 50%. Examples of metrics are CPU time, Average response time, and Requests.
App Service Plan Scaling: Time-based.
Time-based (schedule-based) rules allow you to scale when you see time patterns in your load and want to scale before a possible load increase or decrease occurs.
For example, trigger a webhook every 8am on Saturday in a given time zone.
Creating an App Service: config choices
Requires a resource group and service plan.
Name: Must be unique Publish: Host code or a docker container Runtime stack: The stack to run the app (language, SDK) Operating System: Linux or Windows Region: ...
App Service: Deployment Slots
Deployment slots are live apps with their own hostnames. App content and configurations elements can be swapped between two deployment slots, including the production slot.
App Service: Application Insights
A feature of Azure Monitor that monitors your live applications.
(request rates, response times, failure rates, dependency rates, page views, load counts, user and session counts, performance counters)
Azure Automation State Configuration
Azure Automation State Configuration is an Azure service built on PowerShell.
Used to make sure that the virtual machines (VMs) in a cluster are in a consistent state, with the same software installed and the same configurations.
PowerShell DSC
Is a declarative management platform that Azure Automation State Configuration uses to configure, deploy, and control systems.
You specify the desired state and let DSC do the work to get there.
The local configuration manager (LCM)
…is a component of the Windows Management Framework (WMF) on a Windows operating system.
The LCM is responsible for updating the state of a node, like a VM, to match the desired state.
Every time the The local configuration manager (LCM) runs, it completes the following steps:
Get: Get the current state of the node.
Test: Compare the current state of a node against the desired state by using a compiled DSC script (.mof file).
Set: Update the node to match the desired state described in the .mof file.
You configure the LCM when you register a VM with Azure Automation.
The local configuration manager (LCM) - Push mode:
Push mode: An administrator manually sends, or pushes, the configurations to one or more nodes. The LCM makes sure that the state on each node matches what the configuration specifies.
The local configuration manager (LCM) - Pull mode
Pull mode: A pull server holds the configuration information.
The LCM on each node polls the pull server at regular intervals, by default every 15 minutes, to get the latest configuration details.