Skip to content

Commit

Permalink
Add additional step to parse resource factors from config file to sto…
Browse files Browse the repository at this point in the history
…red config
  • Loading branch information
deadlycoconuts committed Jan 19, 2024
1 parent 99c321f commit f8a256a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions api/config/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,16 @@ func ParseDeploymentConfig(envCfg *EnvironmentConfig, cfg *Config) DeploymentCon
CPURequest: resource.MustParse(envCfg.DefaultTransformerConfig.CPURequest),
MemoryRequest: resource.MustParse(envCfg.DefaultTransformerConfig.MemoryRequest),
},
MaxCPU: resource.MustParse(envCfg.MaxCPU),
MaxMemory: resource.MustParse(envCfg.MaxMemory),
TopologySpreadConstraints: envCfg.TopologySpreadConstraints,
QueueResourcePercentage: envCfg.QueueResourcePercentage,
PyfuncGRPCOptions: cfg.PyfuncGRPCOptions,
PodDisruptionBudget: envCfg.PodDisruptionBudget,
GPUs: envCfg.GPUs,
StandardTransformer: cfg.StandardTransformerConfig,
PyFuncPublisher: cfg.PyFuncPublisherConfig,
MaxCPU: resource.MustParse(envCfg.MaxCPU),
MaxMemory: resource.MustParse(envCfg.MaxMemory),
TopologySpreadConstraints: envCfg.TopologySpreadConstraints,
QueueResourcePercentage: envCfg.QueueResourcePercentage,
PyfuncGRPCOptions: cfg.PyfuncGRPCOptions,
PodDisruptionBudget: envCfg.PodDisruptionBudget,
GPUs: envCfg.GPUs,
StandardTransformer: cfg.StandardTransformerConfig,
PyFuncPublisher: cfg.PyFuncPublisherConfig,
UserContainerCPULimitRequestFactor: cfg.InferenceServiceDefaults.UserContainerCPULimitRequestFactor,
UserContainerMemoryLimitRequestFactor: cfg.InferenceServiceDefaults.UserContainerMemoryLimitRequestFactor,
}
}

0 comments on commit f8a256a

Please sign in to comment.