You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configure.md
+25-4Lines changed: 25 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -298,22 +298,38 @@ We also have the following experimental language servers (please [read about the
298
298
299
299
## Configure gitserver replica count
300
300
301
-
Repository clones are consistently striped across all `gitserver` replicas. Other services need to be aware of how many `gitserver` replicas exist so they can resolve an individual repo.
301
+
**Note:** If you're creating a new cluster and would like to change `gitserver`'s replica count, do
302
+
so _before_ running `./kubectl-apply-all.sh`for the first time. Changing this after the cluster
303
+
configuration has been applied will require manually resizing the `indexed-search` volume.
304
+
305
+
Increasing the number of `gitserver` replicas can improve performance when your instance contains a large number of repositories. Repository clones are consistently striped across all `gitserver` replicas. Other services need to be aware of how many `gitserver` replicas exist so they can resolve an individual repo.
302
306
303
307
To change the number of `gitserver` replicas:
304
308
305
309
1. Update the `replicas` field in [gitserver.StatefulSet.yaml](../base/gitserver/gitserver.StatefulSet.yaml).
306
-
2. Update the `SRC_GIT_SERVERS` environment variable in all services to reflect the number of replicas.
310
+
1. Update the `SRC_GIT_SERVERS` environment variable in all services to reflect the number of replicas.
307
311
308
-
For example, if there are 2 gitservers then`SRC_GIT_SERVERS` should have the value `gitserver-0.gitserver:3178 gitserver-1.gitserver:3178`.
312
+
For example, if there are 2 gitservers then`SRC_GIT_SERVERS` should have the value `gitserver-0.gitserver:3178 gitserver-1.gitserver:3178`:
Here is a convenience script that performs both steps:
320
+
1. Update the requested `storage` capacity in [base/indexed-search/indexed-search.PersistentVolumeClaim.yaml](../base/indexed-search/indexed-search.PersistentVolumeClaim.yaml) to be `200Gi` multiplied by the number of `gitserver` replicas.
321
+
322
+
For example, if there are 2 `gitserver` replicas then the `storage` requested in [base/indexed-search/indexed-search.PersistentVolumeClaim.yaml](../base/indexed-search/indexed-search.PersistentVolumeClaim.yaml) should have the value `400Gi`.
1. If you want to add a large number of repositories to your instance, you should [configure the number of gitserver replicas](configure.md#configure-gitserver-replica-count) _before_ you continue with the next step.
34
+
33
35
1. Deploy the desired version of Sourcegraph to your cluster:
0 commit comments