중요합니다
이 페이지에는 미리 보기 상태인 Kubernetes 배포 매니페스트를 사용하여 Azure IoT 작업 구성 요소를 관리하는 방법에 대한 지침이 포함되어 있습니다. 이 기능은 여러 제한 사항을 가지고 있으므로 프로덕션 워크로드에는 사용하면 안 됩니다.
베타, 미리 보기로 제공되거나 아직 일반 공급으로 릴리스되지 않은 Azure 기능에 적용되는 약관은 Microsoft Azure 미리 보기에 대한 추가 사용 약관을 참조하세요.
데이터 흐름 프로필을 사용하면 데이터 흐름을 그룹화하여 동일한 구성을 공유할 수 있습니다. 여러 개의 데이터 흐름 프로필을 만들어 다양한 데이터 흐름 구성 집합을 관리할 수 있습니다.
가장 중요한 설정은 인스턴스 수입니다. 지정된 데이터 흐름의 경우 인스턴스 수는 클러스터에서 실행되는 복사본 수를 결정합니다. 예를 들어, 개발 및 테스트를 위한 단일 인스턴스가 있는 데이터 흐름 프로필과, 프로덕션을 위한 여러 인스턴스가 있는 다른 프로필이 있을 수 있습니다. 또는 처리량이 낮은 데이터 흐름에는 인스턴스 수가 적은 데이터 흐름 프로필을 사용하고 처리량이 높은 데이터 흐름에는 인스턴스 수가 많은 프로필을 사용할 수 있습니다. 마찬가지로 디버깅 목적으로 다양한 진단 설정을 사용하여 데이터 흐름 프로필을 만들 수 있습니다.
너무 많은 데이터 흐름을 단일 데이터 흐름 프로필과 연결하지 않아야 합니다. 많은 수의 데이터 흐름이 있는 경우 여러 데이터 흐름 프로필을 만들어 데이터 흐름 프로필 구성 크기 제한을 초과할 위험을 줄입니다.
기본 데이터 흐름 프로필
기본값이라는 데이터 흐름 프로필은 Azure IoT Operations를 배포할 때 만들어집니다. 이 데이터 흐름 프로필을 사용하여 Azure IoT 작업을 시작할 수 있습니다.
기본 데이터 흐름 프로필을 보려면 Azure Portal에서 IoT Operations 인스턴스로 이동합니다.
구성 요소 아래의 왼쪽 창에서 데이터 흐름 프로필을 선택합니다.
기본 데이터 흐름 프로필을 선택합니다.
az iot operations dataflow profile show 명령을 사용하여 기본 데이터 흐름 프로필을 봅니다.
az iot operations dataflow profile show --resource-group <ResourceGroupName> --instance <AioInstanceName> --name default
기본 데이터 흐름 프로필을 보는 예제 명령은 다음과 같습니다.
az iot operations dataflow profile show --resource-group myResourceGroup --instance myAioInstance --name default
param aioInstanceName string = '<AIO_INSTANCE_NAME>'
param customLocationName string = '<CUSTOM_LOCATION_NAME>'
// Pointer to the Azure IoT Operations instance
resource aioInstance 'Microsoft.IoTOperations/instances@2024-11-01' existing = {
name: aioInstanceName
}
// Pointer to your custom ___location where AIO is deployed
resource customLocation 'Microsoft.ExtendedLocation/customLocations@2021-08-31-preview' existing = {
name: customLocationName
}
// Pointer to the default data flow profile
resource defaultDataflowProfile 'Microsoft.IoTOperations/instances/dataflowProfiles@2024-11-01' = {
parent: aioInstance
name: 'default'
extendedLocation: {
name: customLocation.id
type: 'CustomLocation'
}
properties: {
instanceCount: 1
}
}
apiVersion: connectivity.iotoperations.azure.com/v1
kind: DataflowProfile
metadata:
name: default
namespace: azure-iot-operations
spec:
instanceCount: 1
추가 처리량이나 중복도가 필요하지 않으면 데이터 흐름에 대해 기본 데이터 흐름 프로필을 사용할 수 있습니다. 인스턴스 수나 기타 설정을 조정해야 하는 경우 새로운 데이터 흐름 프로필을 만들 수 있습니다.
새로운 데이터 흐름 프로필 만들기
새로운 데이터 흐름 프로필을 만들려면 프로필 이름과 인스턴스 수를 지정합니다.
중요합니다
데이터 프로필 이름 길이는 1자에서 39자 사이여야 합니다.
Azure Portal에서 IoT Operations 인스턴스로 이동합니다.
구성 요소 아래의 왼쪽 창에서 데이터 흐름 프로필을 선택합니다.
+ 데이터 흐름 프로필을 선택하여 새 데이터 흐름 프로필을 만듭니다.
데이터 흐름 프로필 만들기 창에서 데이터 흐름 프로필의 이름을 입력하고 인스턴스 수를 설정합니다. 진단 설정과 같은 다른 설정을 설정할 수도 있습니다.
az iot operations dataflow profile create 명령을 사용하여 새 데이터 흐름 프로필을 만듭니다.
az iot operations dataflow profile create --resource-group <ResourceGroupName> --instance <AioInstanceName> --name <ProfileName>
다음은 다음과 같은 이름의 새 데이터 흐름 프로필을 만드는 예제 명령입니다 myDataFlowProfile
.
az iot operations dataflow profile create --resource-group myResourceGroup --instance myAioInstance --name myDataFlowProfile
resource dataflowProfile 'Microsoft.IoTOperations/instances/dataflowProfiles@2024-11-01' = {
parent: aioInstance
name: '<NAME>'
properties: {
instanceCount: <COUNT>
}
}
apiVersion: connectivity.iotoperations.azure.com/v1
kind: DataflowProfile
metadata:
name: '<NAME>'
namespace: azure-iot-operations
spec:
instanceCount: <COUNT>
확장
데이터 흐름 프로필의 크기를 조정하여 데이터 흐름을 실행하는 인스턴스 수를 조정할 수 있습니다. 지정된 데이터 흐름의 경우 인스턴스 수는 클러스터에서 실행되는 복사본 수입니다. 인스턴스 수를 늘리면 데이터를 처리하는 여러 클라이언트를 만들어 데이터 흐름의 처리량을 개선할 수 있습니다. 클라이언트당 속도 제한이 있는 클라우드 서비스에서 데이터 흐름을 사용하는 경우, 인스턴스 수를 늘리면 속도 제한 내에 머무르는 데 도움이 될 수 있습니다.
크기 조정을 통해 장애 발생 시 중복도를 제공하여 데이터 흐름의 복원력을 개선할 수도 있습니다.
데이터 흐름 프로필을 수동으로 크기 조정하려면 실행하려는 인스턴스 수를 지정합니다. 예를 들어, 인스턴스 수를 3으로 설정하려면 다음을 실행합니다.
Azure Portal에서 IoT Operations 인스턴스로 이동합니다.
구성 요소 아래의 왼쪽 창에서 데이터 흐름 프로필을 선택합니다.
구성하려는 데이터 흐름 프로필을 선택합니다.
슬라이더를 사용하여 인스턴스 수를 설정합니다.
az iot operations dataflow profile update 명령을 사용하여 데이터 흐름 프로필의 인스턴스 수를 업데이트합니다.
az iot operations dataflow profile update --resource-group <ResourceGroupName> --instance <AioInstanceName> --name <ProfileName> --profile-instance <InstanceCount>
다음은 데이터 흐름 프로필 myDataFlowProfile
에 대한 인스턴스 수를 3으로 설정하는 예제 명령입니다.
az iot operations dataflow profile update --resource-group myResourceGroup --instance myAioInstance --name myDataFlowProfile --profile-instances 3
properties: {
instanceCount: 3
}
진단 설정
로그 수준과 같은 데이터 흐름 프로필에 대한 다른 진단 설정을 구성할 수 있습니다.
대부분의 경우 기본 설정으로 충분합니다. 하지만 디버깅을 위해 로그 수준이나 다른 설정을 재정의할 수 있습니다.
이러한 진단 설정을 구성하는 방법을 알아보려면 ProfileDiagnostics를 참조하세요.
Azure Portal에서 IoT Operations 인스턴스로 이동합니다.
구성 요소에서 데이터 흐름 프로필을 선택합니다.
구성하려는 데이터 흐름 프로필을 선택합니다.
az iot operations dataflow profile update 명령을 사용하여 데이터 흐름 프로필의 진단 설정을 업데이트합니다.
az iot operations dataflow profile update --resource-group <ResourceGroupName> --instance <AioInstanceName> --name <ProfileName> --log-level <level>
다음은 데이터 흐름 프로필debug
에 대한 로그 수준을 myDataFlowProfile
설정하는 예제 명령입니다.
az iot operations dataflow profile update --resource-group myResourceGroup --instance myAioInstance --name myDataFlowProfile --log-level debug
resource dataflowProfile 'Microsoft.IoTOperations/instances/dataflowProfiles@2024-11-01' = {
parent: aioInstance
name: '<NAME>'
properties: {
instanceCount: 1
diagnostics: {
{
logs: {
level: 'debug'
}
}
}
}
}
apiVersion: connectivity.iotoperations.azure.com/v1
kind: DataflowProfile
metadata:
name: '<NAME>'
namespace: azure-iot-operations
spec:
instanceCount: 1
diagnostics:
logs:
level: debug
다음 단계
데이터 흐름에 대해 자세히 알아보려면 데이터 흐름 만들기를 참조하세요.