Skip to content

Commit

Permalink
Modify common spec for virtual machine
Browse files Browse the repository at this point in the history
  • Loading branch information
yunkon-kim committed Feb 27, 2024
1 parent a13a5db commit 9bcebdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/core/recommendation/recommendation.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ func Recommend(source infra.Infra) (model.TbMcisDynamicReq, error) {
// (example) select the instance spec with the with similar or appropriate number of cores from a list of instance specs

// Sample code
if source.Compute.ComputeResource.CPU.Cores == 1 && source.Compute.ComputeResource.Memory.Size == 2 {
targetVM.CommonSpec = "aws-ap-northeast-2-t2-small"
}
// if source.Compute.ComputeResource.CPU.Cores == 1 && source.Compute.ComputeResource.Memory.Size == 2 {
targetVM.CommonSpec = "aws-ap-northeast-2-t3-small"
// }

// Instance with deafult values
targetInfra := model.TbMcisDynamicReq{
Expand Down

0 comments on commit 9bcebdb

Please sign in to comment.