Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-2990

Move SSH protocol from java implementation to native side

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Answered
    • None
    • Git Hosting, SSH
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      If you will perform git clone/git fetch/git push over SSH, then java process will take amount of CPU usage (~0.5 cpucore per request depending on network payload).

      To reduce this load on CPU, you may to rename repositories on disk to it natural naming in form <PROJECT_KEY>/<repo_name>.git, not a repositories/<some_number>.

      After it, system administrator may create symbolic link to this directory for user git to enable native SSH protocol to be used for access into repository.

      The SSH keys from web interace simple must be copied into /home/git/.ssh/authorized_keys file. Every time then users added it.

      To track changes from repositories every one bare must have pre-receve or post-receieve hook enabled with one send updates to Stash via REST or something other posible way.

      After this will be done, the load of CPU must be drammatically reduced on network traffic from/to Stash via SSH protocol.

      Offtopic. It very hard now to find a repository on disk to see whats wrong within it. Cos Stash even not added git config name, or something else identity to this bares.

              Unassigned Unassigned
              3652ed9ede2e Alexey Efimov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: