@@ -283,14 +283,23 @@ message AllocationPolicy {
283
283
284
284
// Disk size in GB.
285
285
//
286
- // For persistent disk, this field is ignored if `data_source` is `image` or
287
- // `snapshot`.
288
- // For local SSD, size_gb should be a multiple of 375GB,
289
- // otherwise, the final size will be the next greater multiple of 375 GB.
290
- // For boot disk, Batch will calculate the boot disk size based on source
286
+ // **Non-Boot Disk**:
287
+ // If the `type` specifies a persistent disk, this field
288
+ // is ignored if `data_source` is set as `image` or `snapshot`.
289
+ // If the `type` specifies a local SSD, this field should be a multiple of
290
+ // 375 GB, otherwise, the final size will be the next greater multiple of
291
+ // 375 GB.
292
+ //
293
+ // **Boot Disk**:
294
+ // Batch will calculate the boot disk size based on source
291
295
// image and task requirements if you do not speicify the size.
292
- // If both this field and the boot_disk_mib field in task spec's
293
- // compute_resource are defined, Batch will only honor this field.
296
+ // If both this field and the `boot_disk_mib` field in task spec's
297
+ // `compute_resource` are defined, Batch will only honor this field.
298
+ // Also, this field should be no smaller than the source disk's
299
+ // size when the `data_source` is set as `snapshot` or `image`.
300
+ // For example, if you set an image as the `data_source` field and the
301
+ // image's default disk size 30 GB, you can only use this field to make the
302
+ // disk larger or equal to 30 GB.
294
303
int64 size_gb = 2 ;
295
304
296
305
// Local SSDs are available through both "SCSI" and "NVMe" interfaces.
0 commit comments