Skip to content

Commit

Permalink
Bigger (cleaner) VM
Browse files Browse the repository at this point in the history
  • Loading branch information
i3arnon committed Jul 13, 2019
1 parent e53582f commit 288a67b
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 121 deletions.
12 changes: 2 additions & 10 deletions src/CloudService/CloudService.ccproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,10 @@
<Folder Include="ServiceWorkerRoleContent\" />
</ItemGroup>
<ItemGroup>
<Content Include="ServiceWorkerRoleContent\diagnostics.wadcfg">
<SubType>Content</SubType>
</Content>
<Content Include="ServiceWorkerRoleContent\install.cmd">
<SubType>Content</SubType>
</Content>
<Content Include="ServiceWorkerRoleContent\NDP461-KB3102438-Web.exe">
<SubType>Content</SubType>
</Content>
<PublishProfile Include="Profiles\YouCastProduction.azurePubxml" />
</ItemGroup>
<ItemGroup>
<PublishProfile Include="Profiles\YouCastProduction.azurePubxml" />
<DiagnosticsConfiguration Include="ServiceWorkerRoleContent\diagnostics.wadcfgx" />
</ItemGroup>
<!-- Import the target files for this project template -->
<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/CloudService/Profiles/YouCastProduction.azurePubxml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<AzureStorageAccountName>youcast</AzureStorageAccountName>
<AzureAppendTimestampToDeploymentLabel>True</AzureAppendTimestampToDeploymentLabel>
<AzureHostedServiceResourceGroup />
<EnableApplicationInsights>False</EnableApplicationInsights>
<EnableApplicationInsights>True</EnableApplicationInsights>
</PropertyGroup>
</Project>
4 changes: 3 additions & 1 deletion src/CloudService/ServiceConfiguration.Cloud.cscfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<ServiceConfiguration serviceName="CloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="6" osVersion="*" schemaVersion="2015-04.2.6">
<Role name="ServiceWorkerRole">
<Instances count="1" />
<ConfigurationSettings></ConfigurationSettings>
<ConfigurationSettings>
<Setting name="APPINSIGHTS_INSTRUMENTATIONKEY" value="0578f9e6-9a71-4493-8b6b-cef5243312ec" />
</ConfigurationSettings>
</Role>
</ServiceConfiguration>
4 changes: 3 additions & 1 deletion src/CloudService/ServiceConfiguration.Local.cscfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<ServiceConfiguration serviceName="CloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="6" osVersion="*" schemaVersion="2015-04.2.6">
<Role name="ServiceWorkerRole">
<Instances count="1" />
<ConfigurationSettings></ConfigurationSettings>
<ConfigurationSettings>
<Setting name="APPINSIGHTS_INSTRUMENTATIONKEY" value="0578f9e6-9a71-4493-8b6b-cef5243312ec" />
</ConfigurationSettings>
</Role>
</ServiceConfiguration>
21 changes: 4 additions & 17 deletions src/CloudService/ServiceDefinition.csdef
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="CloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2015-04.2.6">
<WorkerRole name="ServiceWorkerRole" vmsize="ExtraSmall">
<WorkerRole name="ServiceWorkerRole" vmsize="Standard_D1_v2">
<Runtime executionContext="elevated" />
<Imports></Imports>
<Endpoints>
<InputEndpoint name="SyndicationEndpoint" protocol="http" port="80" />
</Endpoints>
<LocalResources>
<LocalStorage name="NETFXInstall" sizeInMB="1024" cleanOnRoleRecycle="false" />
</LocalResources>
<Startup>
<Task commandLine="install.cmd" executionContext="elevated" taskType="simple">
<Environment>
<Variable name="PathToNETFXInstall">
<RoleInstanceValue xpath="/RoleEnvironment/CurrentInstance/LocalResources/LocalResource[@name='NETFXInstall']/@path" />
</Variable>
<Variable name="ComputeEmulatorRunning">
<RoleInstanceValue xpath="/RoleEnvironment/Deployment/@emulated" />
</Variable>
</Environment>
</Task>
</Startup>
<ConfigurationSettings>
<Setting name="APPINSIGHTS_INSTRUMENTATIONKEY" />
</ConfigurationSettings>
</WorkerRole>
</ServiceDefinition>
Binary file not shown.
21 changes: 0 additions & 21 deletions src/CloudService/ServiceWorkerRoleContent/diagnostics.wadcfg

This file was deleted.

50 changes: 50 additions & 0 deletions src/CloudService/ServiceWorkerRoleContent/diagnostics.wadcfgx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<DiagnosticsConfiguration xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<PublicConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<WadCfg>
<DiagnosticMonitorConfiguration overallQuotaInMB="4096" sinks="applicationInsights.errors">
<DiagnosticInfrastructureLogs scheduledTransferLogLevelFilter="Verbose" />
<Directories scheduledTransferPeriod="PT1M">
<IISLogs containerName="wad-iis-logfiles" />
<FailedRequestLogs containerName="wad-failedrequestlogs" />
</Directories>
<PerformanceCounters scheduledTransferPeriod="PT1M">
<PerformanceCounterConfiguration counterSpecifier="\Memory\Available MBytes" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\ISAPI Extension Requests/sec" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\Bytes Total/Sec" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Requests/Sec" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Errors Total/Sec" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Queued" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Rejected" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Processor Time" sampleRate="PT3M" />
</PerformanceCounters>
<WindowsEventLog scheduledTransferPeriod="PT1M">
<DataSource name="Application!*[System[(Level=1 or Level=2 or Level=3)]]" />
<DataSource name="Windows Azure!*[System[(Level=1 or Level=2 or Level=3 or Level=4)]]" />
</WindowsEventLog>
<CrashDumps dumpType="Full">
<CrashDumpConfiguration processName="WaAppAgent.exe" />
<CrashDumpConfiguration processName="WaIISHost.exe" />
<CrashDumpConfiguration processName="WindowsAzureGuestAgent.exe" />
<CrashDumpConfiguration processName="WaWorkerHost.exe" />
<CrashDumpConfiguration processName="DiagnosticsAgent.exe" />
<CrashDumpConfiguration processName="w3wp.exe" />
</CrashDumps>
<Logs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Verbose" />
</DiagnosticMonitorConfiguration>
<SinksConfig>
<Sink name="applicationInsights">
<ApplicationInsights />
<Channels>
<Channel logLevel="Error" name="errors" />
</Channels>
</Sink>
</SinksConfig>
</WadCfg>
<StorageAccount>youcast</StorageAccount>
</PublicConfig>
<PrivateConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<StorageAccount name="youcast" endpoint="https://core.windows.net/" />
</PrivateConfig>
<IsEnabled>true</IsEnabled>
</DiagnosticsConfiguration>
70 changes: 0 additions & 70 deletions src/CloudService/ServiceWorkerRoleContent/install.cmd

This file was deleted.

0 comments on commit 288a67b

Please sign in to comment.