From 61998734a03e3f806fabc7b46203c6a00412ed57 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Wed, 22 Jan 2025 15:32:08 +0800 Subject: [PATCH] fix(apigateway): set GOMAXPROCS to 2 when executing climc (#22009) --- pkg/mcclient/modules/webconsole/mod_webconsole.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/mcclient/modules/webconsole/mod_webconsole.go b/pkg/mcclient/modules/webconsole/mod_webconsole.go index 01d0cd5cad7..90c72d1098b 100644 --- a/pkg/mcclient/modules/webconsole/mod_webconsole.go +++ b/pkg/mcclient/modules/webconsole/mod_webconsole.go @@ -216,6 +216,7 @@ func (m WebConsoleManager) doCloudShell(s *mcclient.ClientSession, info *webcons "OS_ACCESS_KEY": "", "OS_SECRET_KEY": "", "OS_TRY_TERM_WIDTH": "false", + "GOMAXPROCS": "2", } return m.doCloudSshShell(s, info, cmd, args, env) /*return m.doActionWithClimcPod(s, func(s *mcclient.ClientSession, clusterId string, pod jsonutils.JSONObject) (jsonutils.JSONObject, error) {