Sourcegraph resource estimator

Updating the form below will recalculate an estimate for the resources you can use to configure your Sourcegraph deployment.

Use the default values for services not listed below.

Limitations

  • The estimator does not support instances with more than:
    • 10,000 users
    • 50,000 repositories
    • 5TB size of all repositories
    • 10 monorepos

Additional information

How to update a resource in your deployment?

  • For docker-compose deployments, edit your docker-compose.yml file and set cpus and mem_limit to the limits shown above.
  • For Helm deployments, create an override file (or update your existing override file) with the new values shown above.
  • For non-Helm Kubernetes deployments, we recommend using Kustomize to generate manifests with the values shown above. Please refer to our Kustomize overlay for resources update for detail.

Default setup

  • Please use the default setup of your deployment choice if you have less than 2,000 users and repositories combined.

Please refer to our reference architecture docs (coming soon) or contact our team for large deployments.

What is engagement rate?

  • Engagement rate refers to the percentage of users who use Sourcegraph regularly. It is generally used for existing deployments to estimate resources.

If you plan to enforce repository permissions on Sourcegraph

  • Repository permissions on Sourcegraph can have a noticeable impact on search performance if you have a large number of users and/or repositories on your code host. We suggest setting your authorization ttl values as high as you are comfortable setting it in order to reduce the chance of this (e.g. to 72h) in the repository permission configuration.

What kind of data can be regenerated without backup?

How does Sourcegraph scale?