File tree 3 files changed +13
-13
lines changed
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,10 @@ var Gen4MachineHyperdiskAttachLimitMap = []struct {
67
67
max int64
68
68
value int64
69
69
}{
70
- {max : 4 , value : 16 },
71
- {max : 8 , value : 24 },
72
- {max : 16 , value : 32 },
73
- {max : 32 , value : 48 },
74
- {max : 64 , value : 64 },
75
- {max : 1024 , value : 128 },
70
+ {max : 4 , value : 15 },
71
+ {max : 8 , value : 23 },
72
+ {max : 16 , value : 31 },
73
+ {max : 32 , value : 49 },
74
+ {max : 64 , value : 63 },
75
+ {max : 1024 , value : 127 },
76
76
}
Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ const (
99
99
volumeLimitSmall int64 = 15
100
100
volumeLimitBig int64 = 127
101
101
// doc https://cloud.google.com/compute/docs/memory-optimized-machines#x4_disks
102
- x4HyperdiskLimit int64 = 40
102
+ x4HyperdiskLimit int64 = 39
103
103
// doc https://cloud.google.com/compute/docs/accelerator-optimized-machines#a4-disks
104
- a4HyperdiskLimit int64 = 128
104
+ a4HyperdiskLimit int64 = 127
105
105
defaultLinuxFsType = "ext4"
106
106
defaultWindowsFsType = "ntfs"
107
107
fsTypeExt3 = "ext3"
Original file line number Diff line number Diff line change @@ -271,27 +271,27 @@ func TestNodeGetVolumeLimits(t *testing.T) {
271
271
{
272
272
name : "c4-standard-192" ,
273
273
machineType : "c4-standard-192" ,
274
- expVolumeLimit : 128 ,
274
+ expVolumeLimit : 127 ,
275
275
},
276
276
{
277
277
name : "c4-standard-48" ,
278
278
machineType : "c4-standard-48" ,
279
- expVolumeLimit : 64 ,
279
+ expVolumeLimit : 63 ,
280
280
},
281
281
{
282
282
name : "c4a-standard-4" ,
283
283
machineType : "c4a-standard-4" ,
284
- expVolumeLimit : 16 ,
284
+ expVolumeLimit : 15 ,
285
285
},
286
286
{
287
287
name : "n4-standard-16" ,
288
288
machineType : "n4-standard-16" ,
289
- expVolumeLimit : 32 ,
289
+ expVolumeLimit : 31 ,
290
290
},
291
291
{
292
292
name : "n4-highcpu-4" ,
293
293
machineType : "n4-highcpu-4" ,
294
- expVolumeLimit : 16 ,
294
+ expVolumeLimit : 15 ,
295
295
},
296
296
{
297
297
name : "invalid gen4 machine type" ,
You can’t perform that action at this time.
0 commit comments