Skip to content

Commit a919c85

Browse files
committed
调整最大goroutine限制为50
1 parent 97d57fe commit a919c85

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

configs/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var (
4141

4242
const (
4343
maxRatelimit int = 30000
44-
maxRoutineNums int = 200
44+
maxRoutineNums int = 50
4545
)
4646

4747
// Configs struct save of all config

pkg/apis/tcrapis/tcrapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (ai *TCRAPIClient) GetAllNamespaceByName(secret map[string]configs.Secret,
7777
log.Errorf("DescribeNamespaces error, ", err)
7878
return nsList, tcrID, err
7979
}
80-
log.Infof("tcr namespace offset %d limit %d resp is %s", offset, limit, resp.ToJsonString())
80+
log.Debugf("tcr namespace offset %d limit %d resp is %s", offset, limit, resp.ToJsonString())
8181
namespaceCount := *resp.Response.TotalCount
8282
count += len(resp.Response.NamespaceList)
8383
for _, ns := range resp.Response.NamespaceList {

pkg/image-transfer/options/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (o *ConfigOptions) AddFlags(fs *pflag.FlagSet) {
6868
"default destinate namespace when destinate namespace is not" +
6969
" given in the config file, can also be set with DEFAULT_NAMESPACE environment value")
7070
fs.IntVar(&o.RoutineNums, "routines", 5,
71-
"number of goroutines, default value is 5, max routines is 200")
71+
"number of goroutines, default value is 5, max routines is 50")
7272
fs.IntVar(&o.RetryNums, "retry", 2,
7373
"number of retries, default value is 2")
7474
fs.IntVar(&o.QPS, "qps", 100,

0 commit comments

Comments
 (0)