Skip to content

Commit

Permalink
implemented support for changing cpu and ram values
Browse files Browse the repository at this point in the history
  • Loading branch information
GiGurra committed Sep 15, 2023
1 parent 2530796 commit 276bfe2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/domain/deployment_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func runScaleVmPostDeployStep(input deployInput, deployedScales []model.ScaleSta
if err != nil {
return fmt.Errorf("error scaling app %s to %s with %d cores: %w", input.cfgTyped.App, cpuType, input.cfgTyped.Machines.CpuCores, err)
} else {
fmt.Printf("scaled app %s to %s with %d cores: %v\n", input.cfgTyped.App, cpuType, input.cfgTyped.Machines.CpuCores, err)
fmt.Printf("scaled app %s to %s with %d cores\n", input.cfgTyped.App, cpuType, input.cfgTyped.Machines.CpuCores)
}
} else {
fmt.Printf("No need to scale app %s to %s with %d cores, either already at that level, or 'app' process not found\n", input.cfgTyped.App, cpuType, input.cfgTyped.Machines.CpuCores)
Expand Down Expand Up @@ -417,7 +417,7 @@ func runScaleRamPostDeployStep(input deployInput, deployedScales []model.ScaleSt
if err != nil {
return fmt.Errorf("error scaling app %s to %d ram: %w", input.cfgTyped.App, input.cfgTyped.Machines.RamMB, err)
} else {
fmt.Printf("scaled app %s to %d ram: %v\n", input.cfgTyped.App, input.cfgTyped.Machines.RamMB, err)
fmt.Printf("scaled app %s to %d ram\n", input.cfgTyped.App, input.cfgTyped.Machines.RamMB)
}
} else {
fmt.Printf("No need to scale app %s to %d ram, either already at that level, or 'app' process not found\n", input.cfgTyped.App, input.cfgTyped.Machines.RamMB)
Expand Down
4 changes: 2 additions & 2 deletions test/scale-test/apps/my-funky-scaling-app/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ source:

machines:
count: 1
ram_mb: 512
cpu_cores: 2
ram_mb: 256
cpu_cores: 1
cpu_type: "shared"

0 comments on commit 276bfe2

Please sign in to comment.