remove "replacer" service (#126)

This PR removes the `replacer` service, which is no longer used in Sourcegraph.
See https://github.com/sourcegraph/sourcegraph/pull/12480

Note:

This PR cannot yet be merged, it is blocked on:

- https://github.com/sourcegraph/sourcegraph/issues/12544 being fixed
- `replacer` being removed again from our app.
This commit is contained in:
Stephen Gutekanst authored and GitHub committed 2020-08-07 14:01:13 -07:00
1 parent 70d367a5ef
commit 748667da2d
7 files changed
-59

No files matched your search

-1
View File
@@ -28,7 +28,6 @@ docker run --detach \
-e INDEXED_SEARCH_SERVERS="$(addresses "zoekt-webserver-" $NUM_INDEXED_SEARCH ":6070")" \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e REPO_UPDATER_URL=http://repo-updater:3182 \
-e REPLACER_URL=http://replacer:3185 \
-e PRECISE_CODE_INTEL_BUNDLE_MANAGER_URL=http://precise-code-intel-bundle-manager:3187 \
-e GRAFANA_SERVER_URL=http://grafana:3000 \
-e JAEGER_SERVER_URL=http://jaeger:16686 \
-1
View File
@@ -29,7 +29,6 @@ docker run --detach \
-e INDEXED_SEARCH_SERVERS="$(addresses "zoekt-webserver-" $NUM_INDEXED_SEARCH ":6070")" \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e REPO_UPDATER_URL=http://repo-updater:3182 \
-e REPLACER_URL=http://replacer:3185 \
-e PRECISE_CODE_INTEL_BUNDLE_MANAGER_URL=http://precise-code-intel-bundle-manager:3187 \
-e GRAFANA_SERVER_URL=http://grafana:3370 \
-e JAEGER_SERVER_URL=http://jaeger:16686 \
-26
View File
@@ -1,26 +0,0 @@
#!/usr/bin/env bash
set -e
source ./replicas.sh
# Description: Backend for replace operations.
#
# Disk: 128GB / non-persistent SSD
# Network: 100mbps
# Liveness probe: GET http://replacer:3185/healthz
# Ports exposed to other Sourcegraph services: 3185/TCP 6060/TCP
# Ports exposed to the public internet: none
#
VOLUME="$HOME/sourcegraph-docker/replacer-disk"
./ensure-volume.sh $VOLUME 100
docker run --detach \
--name=replacer \
--network=sourcegraph \
--restart=always \
--cpus=1 \
--memory=512m \
-e GOMAXPROCS=1 \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-v $VOLUME:/mnt/cache \
index.docker.io/sourcegraph/replacer:3.18.0@sha256:bc9652f578c93b6602d109844602ef36d9460e8c9612c417f5298e839380cbc8
echo "Deployed replacer service"
-1
View File
@@ -18,7 +18,6 @@ for i in $(seq 0 $(($NUM_GITSERVER - 1))); do (./deploy-gitserver.sh $i &); done
./deploy-query-runner.sh &
./deploy-redis-cache.sh &
./deploy-redis-store.sh &
./deploy-replacer.sh &
./deploy-repo-updater.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
-28
View File
@@ -84,7 +84,6 @@ services:
- 'INDEXED_SEARCH_SERVERS=zoekt-webserver-0:6070'
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
- 'REPO_UPDATER_URL=http://repo-updater:3182'
- 'REPLACER_URL=http://replacer:3185'
- 'PRECISE_CODE_INTEL_BUNDLE_MANAGER_URL=http://precise-code-intel-bundle-manager:3187'
- 'GRAFANA_SERVER_URL=http://grafana:3370'
- 'JAEGER_SERVER_URL=http://jaeger:16686'
@@ -124,7 +123,6 @@ services:
- 'INDEXED_SEARCH_SERVERS=zoekt-webserver-0:6070'
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
- 'REPO_UPDATER_URL=http://repo-updater:3182'
- 'REPLACER_URL=http://replacer:3185'
- 'PRECISE_CODE_INTEL_BUNDLE_MANAGER_URL=http://precise-code-intel-bundle-manager:3187'
- 'GRAFANA_SERVER_URL=http://grafana:3000'
- 'JAEGER_SERVER_URL=http://jaeger:16686'
@@ -321,31 +319,6 @@ services:
- sourcegraph
restart: always
# Description: Backend for replace operations.
#
# Disk: 128GB / non-persistent SSD
# Ports exposed to other Sourcegraph services: 3185/TCP 6060/TCP
# Ports exposed to the public internet: none
#
replacer:
container_name: replacer
image: 'index.docker.io/sourcegraph/replacer:3.18.0@sha256:bc9652f578c93b6602d109844602ef36d9460e8c9612c417f5298e839380cbc8'
cpus: 1
mem_limit: '512m'
environment:
- GOMAXPROCS=1
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
healthcheck:
test: "wget -q 'http://127.0.0.1:3185/healthz' -O /dev/null || exit 1"
interval: 1s
timeout: 10s
retries: 1
volumes:
- 'replacer:/mnt/cache'
networks:
- sourcegraph
restart: always
# Description: Handles repository metadata (not Git data) lookups and updates from external code hosts and other similar services.
#
# Disk: 128GB / non-persistent SSD
@@ -579,7 +552,6 @@ volumes:
prometheus-v2:
redis-cache:
redis-store:
replacer:
repo-updater:
searcher-0:
sourcegraph-frontend-0:
-1
View File
@@ -16,7 +16,6 @@
- precise-code-intel-worker:6060
# Add new entries here for every searcher/symbol/gitserver replica.
- zoekt-indexserver-0:6072
- replacer-0:6060
- sourcegraph-frontend-0:6060
- gitserver-0:6060
- searcher-0:6060
-1
View File
@@ -17,7 +17,6 @@ docker rm -f prometheus &> /dev/null || true
docker rm -f query-runner &> /dev/null || true &
docker rm -f redis-cache &> /dev/null || true &
docker rm -f redis-store &> /dev/null || true &
docker rm -f replacer &> /dev/null || true &
docker rm -f repo-updater &> /dev/null || true &
docker rm -f $(addresses "searcher-" $NUM_SEARCHER "") &> /dev/null || true &
docker rm -f $(addresses "symbols-" $NUM_SYMBOLS "") &> /dev/null || true &