From e1ddbdd161a28ff53ca4d3b3f0fc4fa19687d80b Mon Sep 17 00:00:00 2001 From: Igor Drozdov Date: Fri, 18 Feb 2022 13:10:38 +0300 Subject: Reuse Gitaly conns and Sidechannel When gitlab-sshd has been introduced we've started running our own SSH server. In this case we're able to cache and reuse Gitaly connections and Registry. It helps to reduce memory usage. --- cmd/gitlab-shell/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/gitlab-shell/main.go') diff --git a/cmd/gitlab-shell/main.go b/cmd/gitlab-shell/main.go index 693140d..370dc2d 100644 --- a/cmd/gitlab-shell/main.go +++ b/cmd/gitlab-shell/main.go @@ -68,6 +68,8 @@ func main() { ctx, finished := command.Setup(executable.Name, config) defer finished() + config.GitalyClient.InitSidechannelRegistry(ctx) + cmdName := reflect.TypeOf(cmd).String() ctxlog := log.ContextLogger(ctx) ctxlog.WithFields(log.Fields{"env": env, "command": cmdName}).Info("gitlab-shell: main: executing command") -- cgit v1.2.1