Skip to content

Commit

Permalink
Enhance large scale mc-infra provisioning stability
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-github-robot authored Oct 23, 2024
2 parents e69ac01 + 736c125 commit 1d56aec
Show file tree
Hide file tree
Showing 4 changed files with 227 additions and 138 deletions.
8 changes: 4 additions & 4 deletions src/core/common/label/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func CreateOrUpdateLabel(labelType, uid string, resourceKey string, labels map[s
log.Error().Err(err).Msg("failed to get label data from kvstore")
}

log.Debug().Str("labelData", string(labelData)).Msg("Fetched label data")
// log.Debug().Str("labelData", string(labelData)).Msg("Fetched label data")

if len(labelData) == 0 {
log.Debug().Msg("labelData is empty")
}
// if len(labelData) == 0 {
// log.Debug().Msg("labelData is empty")
// }
var labelInfo model.LabelInfo

if err == nil && len(labelData) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion src/core/infra/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func ControlMciAsync(nsId string, mciId string, action string, force bool) error
wg.Add(1)

// Avoid concurrent requests to CSP.
time.Sleep(time.Duration(3) * time.Second)
time.Sleep(time.Millisecond * 1000)

go ControlVmAsync(&wg, nsId, mciId, vmId, action, results)
}
Expand Down
Loading

0 comments on commit 1d56aec

Please sign in to comment.