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-sshd | |
| 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-sshd')
| -rw-r--r-- | cmd/gitlab-sshd/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/gitlab-sshd/main.go b/cmd/gitlab-sshd/main.go index 165c7a5..8040a54 100644 --- a/cmd/gitlab-sshd/main.go +++ b/cmd/gitlab-sshd/main.go @@ -69,6 +69,8 @@ func main() { ctx, finished := command.Setup("gitlab-sshd", cfg) defer finished() + cfg.GitalyClient.InitSidechannelRegistry(ctx) + server, err := sshd.NewServer(cfg) if err != nil { log.WithError(err).Fatal("Failed to start GitLab built-in sshd") |
