기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
스토리지 프로파일에서 경로 매핑 규칙 도출
경로 매핑 규칙은 작업에서 작업자 호스트의 경로 실제 위치로 경로를 다시 매핑하는 방법을 설명합니다. 작업이 작업자에서 실행 중이면 작업의 스토리지 프로파일을 작업자 플릿의 스토리지 프로파일과 비교하여 작업에 대한 경로 매핑 규칙을 도출합니다.
Deadline Cloud는 대기열 구성의 각 필수 파일 시스템 위치에 대한 매핑 규칙을 생성합니다. 예를 들어 대기열에 WSAll
스토리지 프로파일과 함께 제출된 작업에는 경로 매핑 규칙Q1
이 있습니다.
-
FSComm
:/shared/common -> /mnt/common
-
FS1
:/shared/projects/project1 -> /mnt/projects/project1
Deadline Cloud는 FSComm
및 FS1
파일 시스템 위치에 대한 규칙을 생성하지만 WSAll
및 WorkerConfig
스토리지 프로파일이 모두를 정의하더라도 FS2
파일 시스템 위치에 대한 규칙은 생성하지 않습니다FS2
. 이는 대기열 Q1
의 필수 파일 시스템 위치 목록이 이기 때문입니다["FSComm", "FS1"]
.
# Change the value of FARM_ID to your farm's identifier FARM_ID=farm-
00112233445566778899aabbccddeeff
# Change the value of QUEUE1_ID to queue Q1's identifier QUEUE1_ID=queue-00112233445566778899aabbccddeeff
# Change the value of WSALL_ID to the identifier of the WSALL storage profile WSALL_ID=sp-00112233445566778899aabbccddeeff
aws deadline create-job --farm-id $FARM_ID --queue-id $QUEUE1_ID \ --priority 50 \\ --storage-profile-id $WSALL_ID \ --template-type JSON --template \ '{ "specificationVersion": "jobtemplate-2023-09", "name": "DemoPathMapping", "steps": [ { "name": "ShowPathMappingRules", "script": { "actions": { "onRun": { "command": "/bin/cat", "args": [ "{{Session.PathMappingRulesFile}}" ] } } } } ] }'
Deadline Cloud CLIsettings.storage_profile_id
설정은 CLI로 제출된 작업의 스토리지 프로파일을 설정합니다. WSAll
스토리지 프로파일로 작업을 제출하려면 다음을 설정합니다.
deadline config set settings.storage_profile_id $WSALL_ID
샘플 인프라에서 실행 중인 것처럼 고객 관리형 작업자를 실행하려면 Deadline Cloud 사용 설명서의 작업자 에이전트 실행의 절차에 따라 작업자를 실행합니다 AWS CloudShell. 이전에 이러한 지침을 따랐다면 먼저 ~/demoenv-logs
및 ~/demoenv-persist
디렉터리를 삭제합니다. 또한 방향이 참조하는 DEV_FARM_ID
및 DEV_CMF_ID
환경 변수의 값을 다음과 같이 설정한 후 참조합니다.
DEV_FARM_ID=$FARM_ID DEV_CMF_ID=$FLEET_ID
작업이 실행되면 작업의 로그 파일에서 경로 매핑 규칙을 볼 수 있습니다.
cat demoenv-logs/${QUEUE1_ID}/*.log ... JJSON log results (see below) ...
로그에는 FS1
및 FSComm
파일 시스템에 대한 매핑이 포함되어 있습니다. 가독성을 위해 다시 포맷된 로그 항목은 다음과 같습니다.
{ "version": "pathmapping-1.0", "path_mapping_rules": [ { "source_path_format": "POSIX", "source_path": "/shared/projects/project1", "destination_path": "/mnt/projects/project1" }, { "source_path_format": "POSIX", "source_path": "/shared/common", "destination_path": "/mnt/common" } ]
스토리지 프로파일이 다른 작업을 제출하여 경로 매핑 규칙이 어떻게 변경되는지 확인할 수 있습니다.