Files
deploy-sourcegraph-docker/deploy-frontend-internal.sh
T
Stephen Gutekanst a3b7d35c24 all: update resource constraints
1. `frontend`: 3 replicas + 4 CPU (old: 1 replica + 2 CPU).
2. `frontend-internal`: 1 replicas + 4 CPU (old: 1 replica + 2 CPU).
3. `zoekt-webserver`: 8 CPU (old: 4 CPU).
4. `zoekt-indexserver`: 6GB memory (old: 8GB memory).
5. `pgsql`: 4 CPU + 2G memory (old: 2 CPU + 1G memory).
2019-04-11 11:36:32 -07:00

30 lines
957 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Description: Serves the internal Sourcegraph frontend API.
#
# Disk: 128GB / non-persistent SSD
# Network: 100mbps
# Liveness probe: n/a
# Ports exposed to other Sourcegraph services: 3090/TCP 6060/TCP
# Ports exposed to the public internet: none
#
docker run --detach \
--name=sourcegraph-frontend-internal \
--network=sourcegraph \
--restart=always \
--cpus=4 \
--memory=4g \
-e PGHOST=pgsql \
-e SRC_GIT_SERVERS=gitserver-0:3178 \
-e SRC_SYNTECT_SERVER=http://syntect-server:9238 \
-e SEARCHER_URL=http://searcher-0:3181 \
-e SYMBOLS_URL=http://symbols-0:3184 \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e REPO_UPDATER_URL=http://repo-updater:3182 \
-e ZOEKT_HOST=zoekt-webserver:6070 \
-v ~/sourcegraph-docker/sourcegraph-frontend-internal-0-disk:/mnt/cache \
sourcegraph/frontend:3.2.1
echo "Deployed sourcegraph-frontend-internal service"