Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 1 addition & 32 deletions docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ services:
# Ports exposed to other Sourcegraph services: 6060/TCP, 3080 (HTTP), and/or 3443 (HTTPS)
# Ports exposed to the public internet: none
#
# Note: SRC_GIT_SERVERS, SEARCHER_URL, and SYMBOLS_URL are space-separated
# Note: SRC_GIT_SERVERS, and SEARCHER_URL are space-separated
# lists which each allow you to specify more container instances for scaling
# purposes. Be sure to also apply such a change here to the frontend-internal
# service.
Expand All @@ -136,7 +136,6 @@ services:
- 'SRC_GIT_SERVERS=gitserver-0:3178'
- 'SRC_SYNTECT_SERVER=http://syntect-server:9238'
- 'SEARCHER_URL=http://searcher-0:3181'
- 'SYMBOLS_URL=http://symbols-0:3184'
- 'INDEXED_SEARCH_SERVERS=zoekt-webserver-0:6070'
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
- 'GRAFANA_SERVER_URL=http://grafana:3370'
Expand All @@ -150,7 +149,6 @@ services:
{ "Name": "frontend-internal-0", "Host": "sourcegraph-frontend-internal:6060" },
{ "Name": "gitserver-0", "Host": "gitserver-0:6060" },
{ "Name": "searcher-0", "Host": "searcher-0:6060" },
{ "Name": "symbols-0", "Host": "symbols-0:6060" },
{ "Name": "worker", "Host": "worker:6060" },
{ "Name": "zoekt-indexserver-0", "Host": "zoekt-indexserver-0:6072" },
{ "Name": "zoekt-webserver-0", "Host": "zoekt-webserver-0:6070", "DefaultPath": "/debug/requests/" }
Expand Down Expand Up @@ -189,7 +187,6 @@ services:
- 'SRC_GIT_SERVERS=gitserver-0:3178'
- 'SRC_SYNTECT_SERVER=http://syntect-server:9238'
- 'SEARCHER_URL=http://searcher-0:3181'
- 'SYMBOLS_URL=http://symbols-0:3184'
- 'INDEXED_SEARCH_SERVERS=zoekt-webserver-0:6070'
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
- 'GRAFANA_SERVER_URL=http://grafana:3370'
Expand Down Expand Up @@ -355,7 +352,6 @@ services:
- 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317'
- 'SRC_GIT_SERVERS=gitserver-0:3178'
- 'SEARCHER_URL=http://searcher-0:3181'
- 'SYMBOLS_URL=http://symbols-0:3184'
- 'INDEXED_SEARCH_SERVERS=zoekt-webserver-0:6070'
- 'PRECISE_CODE_INTEL_UPLOAD_BACKEND=blobstore'
- 'PRECISE_CODE_INTEL_UPLOAD_AWS_ENDPOINT=http://blobstore:9000'
Expand Down Expand Up @@ -413,32 +409,6 @@ services:
- sourcegraph
restart: always

# Description: Backend for symbols operations.
#
# Disk: 128GB / non-persistent SSD
# Ports exposed to other Sourcegraph services: 3184/TCP 6060/TCP
# Ports exposed to the public internet: none
#
symbols-0:
container_name: symbols-0
image: 'index.docker.io/sourcegraph/symbols:6.1.2889@sha256:0ffea2e2d7641decf87587a2c0fbcedb172d876f71a10da4cd3e72b566ce12b4'
cpus: 2
mem_limit: '4g'
environment:
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
- 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317'
healthcheck:
test: "wget -q 'http://127.0.0.1:3184/healthz' -O /dev/null || exit 1"
interval: 5s
timeout: 5s
retries: 3
start_period: 60s
volumes:
- 'symbols-0:/mnt/cache'
networks:
- sourcegraph
restart: always

# Description: Prometheus collects metrics and aggregates them into graphs.
#
# Disk: 200GB / persistent SSD
Expand Down Expand Up @@ -781,7 +751,6 @@ volumes:
searcher-0:
sourcegraph-frontend-0:
sourcegraph-frontend-internal-0:
symbols-0:
zoekt-0-shared:
networks:
sourcegraph:
5 changes: 0 additions & 5 deletions prometheus/prometheus_targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
job: searcher
targets:
- searcher-0:6060
- labels:
nodename: "sourcegraph-docker-compose-host"
job: symbols
targets:
- symbols-0:6060
- labels:
nodename: "sourcegraph-docker-compose-host"
job: pgsql
Expand Down
1 change: 0 additions & 1 deletion pure-docker/deploy-frontend-internal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ docker run --detach \
-e SRC_GIT_SERVERS="$(addresses "gitserver-" $NUM_GITSERVER ":3178")" \
-e SRC_SYNTECT_SERVER=http://syntect-server:9238 \
-e SEARCHER_URL="$(addresses "http://searcher-" $NUM_SEARCHER ":3181")" \
-e SYMBOLS_URL="$(addresses "http://symbols-" $NUM_SYMBOLS ":3184")" \
-e INDEXED_SEARCH_SERVERS="$(addresses "zoekt-webserver-" $NUM_INDEXED_SEARCH ":6070")" \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e GRAFANA_SERVER_URL=http://grafana:3000 \
Expand Down
3 changes: 1 addition & 2 deletions pure-docker/deploy-frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ docker run --detach \
-e SRC_GIT_SERVERS="$(addresses "gitserver-" $NUM_GITSERVER ":3178")" \
-e SRC_SYNTECT_SERVER=http://syntect-server:9238 \
-e SEARCHER_URL="$(addresses "http://searcher-" $NUM_SEARCHER ":3181")" \
-e SYMBOLS_URL="$(addresses "http://symbols-" $NUM_SYMBOLS ":3184")" \
-e INDEXED_SEARCH_SERVERS="$(addresses "zoekt-webserver-" $NUM_INDEXED_SEARCH ":6070")" \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e GRAFANA_SERVER_URL=http://grafana:3370 \
Expand All @@ -43,7 +42,7 @@ docker run --detach \
-p 0.0.0.0:$((3080 + $1)):3080 \
index.docker.io/sourcegraph/frontend:187572_2022-12-06_cbecc5321c7d@sha256:73e64a8636e70ebbaf7f4a3300479529294f67e8cf644cdaea02435915aec869

# Note: SRC_GIT_SERVERS, SEARCHER_URL, and SYMBOLS_URL are space-separated
# Note: SRC_GIT_SERVERS, and SEARCHER_URL are space-separated
# lists which each allow you to specify more container instances for scaling
# purposes. Be sure to also apply such a change here to the frontend-internal
# service.
Expand Down
27 changes: 0 additions & 27 deletions pure-docker/deploy-symbols.sh

This file was deleted.

1 change: 0 additions & 1 deletion pure-docker/deploy-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ docker run --detach \
-e INDEXED_SEARCH_SERVERS="$(addresses "zoekt-webserver-" $NUM_INDEXED_SEARCH ":6070")" \
-e SEARCHER_URL="$(addresses "http://searcher-" $NUM_SEARCHER ":3181")" \
-e SRC_GIT_SERVERS="$(addresses "gitserver-" $NUM_GITSERVER ":3178")" \
-e SYMBOLS_URL="$(addresses "http://symbols-" $NUM_SYMBOLS ":3184")" \
-e PRECISE_CODE_INTEL_UPLOAD_BACKEND=blobstore \
-e PRECISE_CODE_INTEL_UPLOAD_AWS_ENDPOINT=http://blobstore:9000 \
-v $VOLUME:/mnt/cache \
Expand Down
1 change: 0 additions & 1 deletion pure-docker/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ for i in $(seq 0 $(($NUM_GITSERVER - 1))); do ./deploy-gitserver.sh $i; done
./deploy-worker.sh
./deploy-otel-collector.sh
for i in $(seq 0 $(($NUM_SEARCHER - 1))); do ./deploy-searcher.sh $i; done
for i in $(seq 0 $(($NUM_SYMBOLS - 1))); do ./deploy-symbols.sh $i; done
./deploy-syntect-server.sh
for i in $(seq 0 $(($NUM_INDEXED_SEARCH - 1))); do ./deploy-zoekt-indexserver.sh $i; done
for i in $(seq 0 $(($NUM_INDEXED_SEARCH - 1))); do ./deploy-zoekt-webserver.sh $i; done
Expand Down
3 changes: 1 addition & 2 deletions pure-docker/replicas.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Here you can specify the number of service replicas to deploy.
NUM_GITSERVER=1
NUM_SEARCHER=1
NUM_SYMBOLS=1
NUM_INDEXED_SEARCH=1
NUM_FRONTEND=3

addresses() { for i in $(seq 0 $(($2 - 1))); do echo -n "$1$i$3 "; done }
addresses() { for i in $(seq 0 $(($2 - 1))); do echo -n "$1$i$3 "; done; }
1 change: 0 additions & 1 deletion pure-docker/teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ docker rm -f redis-cache &>/dev/null || true &
docker rm -f redis-store &>/dev/null || true &
docker rm -f worker &>/dev/null || true &
docker rm -f $(addresses "searcher-" $NUM_SEARCHER "") &>/dev/null || true &
docker rm -f $(addresses "symbols-" $NUM_SYMBOLS "") &>/dev/null || true &
docker rm -f syntect-server &>/dev/null || true &
docker rm -f $(addresses "zoekt-indexserver-" $NUM_INDEXED_SEARCH "") &>/dev/null || true &
docker rm -f $(addresses "zoekt-webserver-" $NUM_INDEXED_SEARCH "") &>/dev/null || true &
Expand Down
4 changes: 2 additions & 2 deletions test/smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ deploy_sourcegraph() {
if [[ "$TEST_TYPE" == "pure-docker-test" ]]; then
./test/volume-config.sh
timeout 600s ./pure-docker/deploy.sh
expect_containers="24"
expect_containers="23"
elif [[ "$TEST_TYPE" == "docker-compose-test" ]]; then
docker-compose --file docker-compose/docker-compose.yaml up -d -t 600
expect_containers="26"
expect_containers="25"
fi

echo "Giving containers 90s to start..."
Expand Down
2 changes: 1 addition & 1 deletion test/volume-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ echo
echo "forcing static permissions on volume directories"
echo
pushd ~/sourcegraph-docker
chown -R 100:101 gitserver* prometheus-v2* worker* searcher* sourcegraph-frontend* symbols* zoekt* blobstore-disk
chown -R 100:101 gitserver* prometheus-v2* worker* searcher* sourcegraph-frontend* zoekt* blobstore-disk
chown -R 999:1000 redis-store-disk redis-cache-disk
chown -R 472:472 grafana-disk
chown -R 999:999 pgsql-disk codeintel-db-disk
Expand Down
Loading