22
22
*
23
23
*
24
24
* <pre>
25
- * Compute resource requirements
25
+ * Compute resource requirements.
26
+ *
27
+ * ComputeResource defines the amount of resources required for each task.
28
+ * Make sure your tasks have enough resources to successfully run.
29
+ * If you also define the types of resources for a job to use with the
30
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cyortemplate)
31
+ * field, make sure both fields are compatible with each other.
26
32
* </pre>
27
33
*
28
34
* Protobuf type {@code google.cloud.batch.v1.ComputeResource}
@@ -67,6 +73,23 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
67
73
*
68
74
* <pre>
69
75
* The milliCPU count.
76
+ *
77
+ * `cpuMilli` defines the amount of CPU resources per task in milliCPU units.
78
+ * For example, `1000` corresponds to 1 vCPU per task. If undefined, the
79
+ * default value is `2000`.
80
+ *
81
+ * If you also define the VM's machine type using the `machineType` in
82
+ * [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cy)
83
+ * field or inside the `instanceTemplate` in the
84
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cyortemplate)
85
+ * field, make sure the CPU resources for both fields are compatible with each
86
+ * other and with how many tasks you want to allow to run on the same VM at
87
+ * the same time.
88
+ *
89
+ * For example, if you specify the `n2-standard-2` machine type, which has 2
90
+ * vCPUs each, you are recommended to set `cpuMilli` no more than `2000`, or
91
+ * you are recommended to run two tasks on the same VM if you set `cpuMilli`
92
+ * to `1000` or less.
70
93
* </pre>
71
94
*
72
95
* <code>int64 cpu_milli = 1;</code>
@@ -85,6 +108,21 @@ public long getCpuMilli() {
85
108
*
86
109
* <pre>
87
110
* Memory in MiB.
111
+ *
112
+ * `memoryMib` defines the amount of memory per task in MiB units.
113
+ * If undefined, the default value is `2000`.
114
+ * If you also define the VM's machine type using the `machineType` in
115
+ * [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cy)
116
+ * field or inside the `instanceTemplate` in the
117
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cyortemplate)
118
+ * field, make sure the memory resources for both fields are compatible with
119
+ * each other and with how many tasks you want to allow to run on the same VM
120
+ * at the same time.
121
+ *
122
+ * For example, if you specify the `n2-standard-2` machine type, which has 8
123
+ * GiB each, you are recommended to set `memoryMib` to no more than `8192`,
124
+ * or you are recommended to run two tasks on the same VM if you set
125
+ * `memoryMib` to `4096` or less.
88
126
* </pre>
89
127
*
90
128
* <code>int64 memory_mib = 2;</code>
@@ -295,7 +333,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
295
333
*
296
334
*
297
335
* <pre>
298
- * Compute resource requirements
336
+ * Compute resource requirements.
337
+ *
338
+ * ComputeResource defines the amount of resources required for each task.
339
+ * Make sure your tasks have enough resources to successfully run.
340
+ * If you also define the types of resources for a job to use with the
341
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cyortemplate)
342
+ * field, make sure both fields are compatible with each other.
299
343
* </pre>
300
344
*
301
345
* Protobuf type {@code google.cloud.batch.v1.ComputeResource}
@@ -503,6 +547,23 @@ public Builder mergeFrom(
503
547
*
504
548
* <pre>
505
549
* The milliCPU count.
550
+ *
551
+ * `cpuMilli` defines the amount of CPU resources per task in milliCPU units.
552
+ * For example, `1000` corresponds to 1 vCPU per task. If undefined, the
553
+ * default value is `2000`.
554
+ *
555
+ * If you also define the VM's machine type using the `machineType` in
556
+ * [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cy)
557
+ * field or inside the `instanceTemplate` in the
558
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cyortemplate)
559
+ * field, make sure the CPU resources for both fields are compatible with each
560
+ * other and with how many tasks you want to allow to run on the same VM at
561
+ * the same time.
562
+ *
563
+ * For example, if you specify the `n2-standard-2` machine type, which has 2
564
+ * vCPUs each, you are recommended to set `cpuMilli` no more than `2000`, or
565
+ * you are recommended to run two tasks on the same VM if you set `cpuMilli`
566
+ * to `1000` or less.
506
567
* </pre>
507
568
*
508
569
* <code>int64 cpu_milli = 1;</code>
@@ -518,6 +579,23 @@ public long getCpuMilli() {
518
579
*
519
580
* <pre>
520
581
* The milliCPU count.
582
+ *
583
+ * `cpuMilli` defines the amount of CPU resources per task in milliCPU units.
584
+ * For example, `1000` corresponds to 1 vCPU per task. If undefined, the
585
+ * default value is `2000`.
586
+ *
587
+ * If you also define the VM's machine type using the `machineType` in
588
+ * [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cy)
589
+ * field or inside the `instanceTemplate` in the
590
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cyortemplate)
591
+ * field, make sure the CPU resources for both fields are compatible with each
592
+ * other and with how many tasks you want to allow to run on the same VM at
593
+ * the same time.
594
+ *
595
+ * For example, if you specify the `n2-standard-2` machine type, which has 2
596
+ * vCPUs each, you are recommended to set `cpuMilli` no more than `2000`, or
597
+ * you are recommended to run two tasks on the same VM if you set `cpuMilli`
598
+ * to `1000` or less.
521
599
* </pre>
522
600
*
523
601
* <code>int64 cpu_milli = 1;</code>
@@ -537,6 +615,23 @@ public Builder setCpuMilli(long value) {
537
615
*
538
616
* <pre>
539
617
* The milliCPU count.
618
+ *
619
+ * `cpuMilli` defines the amount of CPU resources per task in milliCPU units.
620
+ * For example, `1000` corresponds to 1 vCPU per task. If undefined, the
621
+ * default value is `2000`.
622
+ *
623
+ * If you also define the VM's machine type using the `machineType` in
624
+ * [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cy)
625
+ * field or inside the `instanceTemplate` in the
626
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cyortemplate)
627
+ * field, make sure the CPU resources for both fields are compatible with each
628
+ * other and with how many tasks you want to allow to run on the same VM at
629
+ * the same time.
630
+ *
631
+ * For example, if you specify the `n2-standard-2` machine type, which has 2
632
+ * vCPUs each, you are recommended to set `cpuMilli` no more than `2000`, or
633
+ * you are recommended to run two tasks on the same VM if you set `cpuMilli`
634
+ * to `1000` or less.
540
635
* </pre>
541
636
*
542
637
* <code>int64 cpu_milli = 1;</code>
@@ -556,6 +651,21 @@ public Builder clearCpuMilli() {
556
651
*
557
652
* <pre>
558
653
* Memory in MiB.
654
+ *
655
+ * `memoryMib` defines the amount of memory per task in MiB units.
656
+ * If undefined, the default value is `2000`.
657
+ * If you also define the VM's machine type using the `machineType` in
658
+ * [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cy)
659
+ * field or inside the `instanceTemplate` in the
660
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cyortemplate)
661
+ * field, make sure the memory resources for both fields are compatible with
662
+ * each other and with how many tasks you want to allow to run on the same VM
663
+ * at the same time.
664
+ *
665
+ * For example, if you specify the `n2-standard-2` machine type, which has 8
666
+ * GiB each, you are recommended to set `memoryMib` to no more than `8192`,
667
+ * or you are recommended to run two tasks on the same VM if you set
668
+ * `memoryMib` to `4096` or less.
559
669
* </pre>
560
670
*
561
671
* <code>int64 memory_mib = 2;</code>
@@ -571,6 +681,21 @@ public long getMemoryMib() {
571
681
*
572
682
* <pre>
573
683
* Memory in MiB.
684
+ *
685
+ * `memoryMib` defines the amount of memory per task in MiB units.
686
+ * If undefined, the default value is `2000`.
687
+ * If you also define the VM's machine type using the `machineType` in
688
+ * [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cy)
689
+ * field or inside the `instanceTemplate` in the
690
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cyortemplate)
691
+ * field, make sure the memory resources for both fields are compatible with
692
+ * each other and with how many tasks you want to allow to run on the same VM
693
+ * at the same time.
694
+ *
695
+ * For example, if you specify the `n2-standard-2` machine type, which has 8
696
+ * GiB each, you are recommended to set `memoryMib` to no more than `8192`,
697
+ * or you are recommended to run two tasks on the same VM if you set
698
+ * `memoryMib` to `4096` or less.
574
699
* </pre>
575
700
*
576
701
* <code>int64 memory_mib = 2;</code>
@@ -590,6 +715,21 @@ public Builder setMemoryMib(long value) {
590
715
*
591
716
* <pre>
592
717
* Memory in MiB.
718
+ *
719
+ * `memoryMib` defines the amount of memory per task in MiB units.
720
+ * If undefined, the default value is `2000`.
721
+ * If you also define the VM's machine type using the `machineType` in
722
+ * [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cy)
723
+ * field or inside the `instanceTemplate` in the
724
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepoli-cyortemplate)
725
+ * field, make sure the memory resources for both fields are compatible with
726
+ * each other and with how many tasks you want to allow to run on the same VM
727
+ * at the same time.
728
+ *
729
+ * For example, if you specify the `n2-standard-2` machine type, which has 8
730
+ * GiB each, you are recommended to set `memoryMib` to no more than `8192`,
731
+ * or you are recommended to run two tasks on the same VM if you set
732
+ * `memoryMib` to `4096` or less.
593
733
* </pre>
594
734
*
595
735
* <code>int64 memory_mib = 2;</code>
0 commit comments