diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2022-02-18 13:10:38 +0300 |
---|---|---|
committer | Igor Drozdov <idrozdov@gitlab.com> | 2022-03-07 16:54:15 +0300 |
commit | e1ddbdd161a28ff53ca4d3b3f0fc4fa19687d80b (patch) | |
tree | 9427a8f7add05d0eece7df0c48638209bea88d8d /cmd/gitlab-shell | |
parent | ede95ae77b591fdffab6ea1f7b1c01e4402af2e1 (diff) | |
download | gitlab-shell-e1ddbdd161a28ff53ca4d3b3f0fc4fa19687d80b.tar.gz |
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.
Diffstat (limited to 'cmd/gitlab-shell')
-rw-r--r-- | cmd/gitlab-shell/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
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") |