컴퓨팅에 대한 FinOps 모범 사례
이 문서에서는 컴퓨팅 서비스에 대해 입증된 FinOps 사례 컬렉션을 간략하게 설명합니다. Azure에서 비용을 최적화하고, 효율성을 향상시키고, 컴퓨팅 리소스에 대한 인사이트를 얻는 방법에 대한 지침을 제공합니다. 이러한 사례는 VM(가상 머신), AKS(Azure Kubernetes Service) 및 Azure Functions와 같은 컴퓨팅 서비스 유형에 따라 분류됩니다.
Azure Kubernetes Service
다음 섹션에서는 AKS 클러스터에 대한 ARG(Azure Resource Graph) 쿼리를 제공합니다. 이 쿼리는 VM에 대한 인사이트를 얻는 데 도움이 됩니다.
쿼리 - AKS 클러스터
이 ARG 쿼리는 Azure 환경의 AKS 클러스터에 대한 자세한 정보를 검색합니다.
범주
리소스 관리
쿼리
resources
| where type == "microsoft.containerservice/managedclusters"
| extend AgentPoolProfiles = properties.agentPoolProfiles
| mvexpand AgentPoolProfiles
| project
id,
ProfileName = tostring(AgentPoolProfiles.name),
Sku = tostring(sku.name),
Tier = tostring(sku.tier),
mode = AgentPoolProfiles.mode,
AutoScaleEnabled = AgentPoolProfiles.enableAutoScaling,
SpotVM = AgentPoolProfiles.scaleSetPriority,
VMSize = tostring(AgentPoolProfiles.vmSize),
nodeCount = tostring(AgentPoolProfiles.['count']),
minCount = tostring(AgentPoolProfiles.minCount),
maxCount = tostring(AgentPoolProfiles.maxCount),
location,
resourceGroup,
subscriptionId,
AKSname = name
가상 머신
다음 섹션에서는 VM에 대한 ARG 쿼리를 제공합니다. 이러한 쿼리는 비용을 최적화하고, 효율성을 개선하며, VM에 대한 인사이트를 얻는 데 도움이 됩니다.
쿼리 - 중지된 가상 머신 나열(할당 취소되지 않음)
이 ARG 쿼리는 상태가 없는 VM을 deallocated
running
식별합니다. 전원 상태, 위치, 리소스 그룹 및 구독 ID에 대한 세부 정보를 검색합니다.
범주
폐기물 감소
쿼리
resources
| where type =~ 'microsoft.compute/virtualmachines'
and tostring(properties.extended.instanceView.powerState.displayStatus) != 'VM deallocated'
and tostring(properties.extended.instanceView.powerState.displayStatus) != 'VM running'
| extend PowerState = tostring(properties.extended.instanceView.powerState.displayStatus)
| extend VMLocation = location
| extend resourceGroup = strcat('/subscriptions/', subscriptionId, '/resourceGroups/', resourceGroup)
| order by id asc
| project id, PowerState, VMLocation, resourceGroup, subscriptionId
쿼리 - 가상 머신 확장 집합 세부 정보
이 쿼리는 SKU, 스폿 VM 우선 순위 및 우선 순위 혼합 정책에 따라 Azure 환경에서 Virtual Machine Scale Sets를 분석합니다. 비용 최적화 및 리소스 관리 전략에 대한 인사이트를 제공합니다.
범주
리소스 관리
쿼리
resources
| where type =~ 'microsoft.compute/virtualmachinescalesets'
| extend SpotVMs = tostring(properties.virtualMachineProfile.priority)
| extend SpotPriorityMix = tostring(properties.priorityMixPolicy)
| extend SKU = tostring(sku.name)
| extend resourceGroup = strcat('/subscriptions/', subscriptionId, '/resourceGroups/', resourceGroup)
| project id, SKU, SpotVMs, SpotPriorityMix, subscriptionId, resourceGroup, location
쿼리 - 가상 머신 프로세서 유형 분석
이 쿼리는 Azure 환경의 VM에서 사용하는 프로세서 유형(ARM, AMD 또는 Intel)을 식별합니다. 워크로드 성능 및 비용 효율성을 최적화하는 데 유용한 다양한 프로세서 아키텍처에서 VM의 배포를 이해하는 데 도움이 됩니다.
범주
리소스 관리
쿼리
resources
| where type == 'microsoft.compute/virtualmachines'
| extend vmSize = properties.hardwareProfile.vmSize
| extend processorType = case(
// ARM Processors
vmSize has "Epsv5"
or vmSize has "Epdsv5"
or vmSize has "Dpsv5"
or vmSize has "Dpdsv", "ARM",
// AMD Processors
vmSize has "Standard_D2a"
or vmSize has "Standard_D4a"
or vmSize has "Standard_D8a"
or vmSize has "Standard_D16a"
or vmSize has "Standard_D32a"
or vmSize has "Standard_D48a"
or vmSize has "Standard_D64a"
or vmSize has "Standard_D96a"
or vmSize has "Standard_D2as"
or vmSize has "Standard_D4as"
or vmSize has "Standard_D8as"
or vmSize has "Standard_D16as"
or vmSize has "Standard_D32as"
or vmSize has "Standard_D48as"
or vmSize has "Standard_D64as"
or vmSize has "Standard_D96as", "AMD",
"Intel"
)
| project vmName = name, processorType, vmSize, resourceGroup
더 많은 것을 찾고 계신가요?
우리는 아무것도 놓쳤습니까? 추가된 항목을 보시겠습니까? 여기서 설명한 질문, 문제 또는 해결 방법에 대해 듣고 싶습니다. 여기에 포함된 세부 정보를 사용하여 새 문제를 만듭니다.
관련 콘텐츠
관련 리소스:
관련 제품:
관련 솔루션: