@@ -37,6 +37,7 @@ type ClusterConfig struct {
3737 Region string `json:"region" yaml:"region"`
3838 Bucket string `json:"bucket" yaml:"bucket"`
3939 LogGroup string `json:"log_group" yaml:"log_group"`
40+ InstanceVolumeSize int64 `json:"instance_volume_size" yaml:"instance_volume_size"`
4041 Telemetry bool `json:"telemetry" yaml:"telemetry"`
4142 ImagePredictorServe string `json:"image_predictor_serve" yaml:"image_predictor_serve"`
4243 ImagePredictorServeGPU string `json:"image_predictor_serve_gpu" yaml:"image_predictor_serve_gpu"`
@@ -111,6 +112,14 @@ var Validation = &cr.StructValidation{
111112 Default : "cortex" ,
112113 },
113114 },
115+ {
116+ StructField : "InstanceVolumeSize" ,
117+ Int64Validation : & cr.Int64Validation {
118+ Default : 50 ,
119+ GreaterThanOrEqualTo : pointer .Int64 (20 ), // large enough to fit docker images and any other overhead
120+ LessThanOrEqualTo : pointer .Int64 (16384 ),
121+ },
122+ },
114123 {
115124 StructField : "Telemetry" ,
116125 BoolValidation : & cr.BoolValidation {
@@ -373,6 +382,7 @@ func (cc *InternalClusterConfig) String() string {
373382 items = append (items , table.KV {K : "region" , V : cc .Region })
374383 items = append (items , table.KV {K : "bucket" , V : cc .Bucket })
375384 items = append (items , table.KV {K : "log group" , V : cc .LogGroup })
385+ items = append (items , table.KV {K : "instance volume size" , V : cc .InstanceVolumeSize })
376386 items = append (items , table.KV {K : "telemetry" , V : cc .Telemetry })
377387 items = append (items , table.KV {K : "image_predictor_serve" , V : cc .ImagePredictorServe })
378388 items = append (items , table.KV {K : "image_predictor_serve_gpu" , V : cc .ImagePredictorServeGPU })
0 commit comments