

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 작업 정의 리소스 요구 사항을 재정의할 수 없음
<a name="override-resource-requirements"></a>

[SubmitJob](https://docs.aws.amazon.com/batch/latest/APIReference/API_SubmitJob.html)으로 전달된 [containerOverrides](https://docs.aws.amazon.com/batch/latest/APIReference/API_ContainerOverrides.html) 구조의 `memory` 및 `vcpus` 멤버에 지정된 메모리 및 vCPU 재정의는 작업 정의의 [resourceRequirements](https://docs.aws.amazon.com/batch/latest/APIReference/API_ContainerProperties.html#Batch-Type-ContainerProperties-resourceRequirements) 구조에 지정된 메모리 및 vCPU 요구 사항을 재정의할 수 없습니다.

이러한 리소스 요구 사항을 재정의하려고 하면 다음 오류 메시지가 표시될 수 있습니다.

“이 값은 더 이상 사용되지 않는 키로 제출되었으며 작업 정의의 리소스 요구 사항에서 제공하는 값과 충돌할 수 있습니다.”

이 문제를 해결하려면 [containerOverrides](https://docs.aws.amazon.com/batch/latest/APIReference/API_ContainerOverrides.html)의 [resourceRequirements](https://docs.aws.amazon.com/batch/latest/APIReference/API_ContainerOverrides.html#Batch-Type-ContainerOverrides-resourceRequirements) 멤버에 메모리 및 vCPU 요구 사항을 지정합니다. 메모리 및 vCPU 재정의가 다음 줄에 지정된 경우를 예로 들어보겠습니다.

```
"containerOverrides": {
   "memory": {{8192}},
   "vcpus": {{4}}
}
```

다음과 같이 변경합니다.

```
"containerOverrides": {
   "resourceRequirements": [
      {
         "type": "MEMORY",
         "value": "{{8192}}"
      },
      {
         "type": "VCPU",
         "value": "{{4}}"
      }
   ],
}
```

작업 정의의 [containerProperties](https://docs.aws.amazon.com/batch/latest/APIReference/API_ContainerProperties.html) 객체에 지정된 메모리 및 vCPU 요구 사항도 동일하게 변경합니다. 메모리 및 vCPU 요구 사항이 다음 줄에 지정된 경우를 예로 들어보겠습니다.

```
{
   "containerProperties": {
      "memory": {{4096}},
      "vcpus": {{2}},
}
```

다음과 같이 변경합니다.

```
"containerProperties": {
   "resourceRequirements": [
      {
         "type": "MEMORY",
         "value": "{{4096}}"
      },
      {
         "type": "VCPU",
         "value": "{{2}}"
      }
   ],
}
```