File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ var Gen4MachineHyperdiskAttachLimitMap = []struct {
39
39
max int64
40
40
value int64
41
41
}{
42
- {max : 4 , value : 16 },
43
- {max : 8 , value : 24 },
44
- {max : 16 , value : 32 },
45
- {max : 32 , value : 48 },
46
- {max : 64 , value : 64 },
47
- {max : 1024 , value : 128 },
42
+ {max : 4 , value : 15 },
43
+ {max : 8 , value : 23 },
44
+ {max : 16 , value : 31 },
45
+ {max : 32 , value : 49 },
46
+ {max : 64 , value : 63 },
47
+ {max : 1024 , value : 127 },
48
48
}
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ const (
74
74
volumeLimitSmall int64 = 15
75
75
volumeLimitBig int64 = 127
76
76
// doc https://cloud.google.com/compute/docs/memory-optimized-machines#x4_disks
77
- x4HyperdiskLimit int64 = 40
77
+ x4HyperdiskLimit int64 = 39
78
78
// doc https://cloud.google.com/compute/docs/accelerator-optimized-machines#a4-disks
79
- a4HyperdiskLimit int64 = 128
79
+ a4HyperdiskLimit int64 = 127
80
80
defaultLinuxFsType = "ext4"
81
81
defaultWindowsFsType = "ntfs"
82
82
fsTypeExt3 = "ext3"
Original file line number Diff line number Diff line change @@ -239,27 +239,27 @@ func TestNodeGetVolumeLimits(t *testing.T) {
239
239
{
240
240
name : "c4-standard-192" ,
241
241
machineType : "c4-standard-192" ,
242
- expVolumeLimit : 128 ,
242
+ expVolumeLimit : 127 ,
243
243
},
244
244
{
245
245
name : "c4-standard-48" ,
246
246
machineType : "c4-standard-48" ,
247
- expVolumeLimit : 64 ,
247
+ expVolumeLimit : 63 ,
248
248
},
249
249
{
250
250
name : "c4a-standard-4" ,
251
251
machineType : "c4a-standard-4" ,
252
- expVolumeLimit : 16 ,
252
+ expVolumeLimit : 15 ,
253
253
},
254
254
{
255
255
name : "n4-standard-16" ,
256
256
machineType : "n4-standard-16" ,
257
- expVolumeLimit : 32 ,
257
+ expVolumeLimit : 31 ,
258
258
},
259
259
{
260
260
name : "n4-highcpu-4" ,
261
261
machineType : "n4-highcpu-4" ,
262
- expVolumeLimit : 16 ,
262
+ expVolumeLimit : 15 ,
263
263
},
264
264
{
265
265
name : "invalid gen4 machine type" ,
You can’t perform that action at this time.
0 commit comments