From 329e38ed5be9dd01d4284922b52af3230bc33cd9 Mon Sep 17 00:00:00 2001 From: Eric Fritz Date: Mon, 11 May 2020 15:13:51 -0500 Subject: [PATCH] Update precise-code-intel service definitions (#104) --- deploy-precise-code-intel-api-server.sh | 2 +- deploy-precise-code-intel-bundle-manager.sh | 2 +- deploy-precise-code-intel-worker.sh | 2 +- docker-compose/docker-compose.yaml | 12 ++++++------ prometheus/prometheus_targets.yml | 5 +++-- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/deploy-precise-code-intel-api-server.sh b/deploy-precise-code-intel-api-server.sh index 7f75347..8a91331 100755 --- a/deploy-precise-code-intel-api-server.sh +++ b/deploy-precise-code-intel-api-server.sh @@ -4,7 +4,7 @@ source ./replicas.sh # Description: Serves precise code intelligence requests. # -# Ports exposed to other Sourcegraph services: 3186/TCP (server) +# Ports exposed to other Sourcegraph services: 3186/TCP # Ports exposed to the public internet: none # docker run --detach \ diff --git a/deploy-precise-code-intel-bundle-manager.sh b/deploy-precise-code-intel-bundle-manager.sh index a40fde0..f8a4a4e 100755 --- a/deploy-precise-code-intel-bundle-manager.sh +++ b/deploy-precise-code-intel-bundle-manager.sh @@ -5,7 +5,7 @@ source ./replicas.sh # Description: Stores and manages precise code intelligence bundles. # # Disk: 200GB / persistent SSD -# Ports exposed to other Sourcegraph services: 3187/TCP (manager) +# Ports exposed to other Sourcegraph services: 3187/TCP # Ports exposed to the public internet: none # docker run --detach \ diff --git a/deploy-precise-code-intel-worker.sh b/deploy-precise-code-intel-worker.sh index b429673..c5bcb0d 100755 --- a/deploy-precise-code-intel-worker.sh +++ b/deploy-precise-code-intel-worker.sh @@ -4,7 +4,7 @@ source ./replicas.sh # Description: Handles conversion of uploaded precise code intelligence bundles. # -# Ports exposed to other Sourcegraph services: 3188/TCP (first worker), 9090 (prometheus) +# Ports exposed to other Sourcegraph services: 3188/TCP # Ports exposed to the public internet: none # docker run --detach \ diff --git a/docker-compose/docker-compose.yaml b/docker-compose/docker-compose.yaml index 7cec9ca..68e8c2c 100644 --- a/docker-compose/docker-compose.yaml +++ b/docker-compose/docker-compose.yaml @@ -248,7 +248,7 @@ services: # Description: Serves precise code intelligence requests. # - # Ports exposed to other Sourcegraph services: 3186/TCP (server) + # Ports exposed to other Sourcegraph services: 3186/TCP # Ports exposed to the public internet: none # precise-code-intel-api-server: @@ -260,7 +260,7 @@ services: - 'PRECISE_CODE_INTEL_BUNDLE_MANAGER_URL=http://precise-code-intel-bundle-manager:3187' - 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090' healthcheck: - test: "wget -q 'http://127.0.0.1:3186/ping' -O /dev/null || exit 1" + test: "wget -q 'http://127.0.0.1:3186/healthz' -O /dev/null || exit 1" interval: 5s timeout: 5s retries: 1 @@ -272,7 +272,7 @@ services: # Description: Stores and manages precise code intelligence bundles. # # Disk: 200GB / persistent SSD - # Ports exposed to other Sourcegraph services: 3187/TCP (manager) + # Ports exposed to other Sourcegraph services: 3187/TCP # Ports exposed to the public internet: none # precise-code-intel-bundle-manager: @@ -284,7 +284,7 @@ services: - 'PRECISE_CODE_INTEL_API_SERVER_URL=http://precise-code-intel-api-server:3186' - 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090' healthcheck: - test: "wget -q 'http://127.0.0.1:3187/ping' -O /dev/null || exit 1" + test: "wget -q 'http://127.0.0.1:3187/healthz' -O /dev/null || exit 1" interval: 5s timeout: 5s retries: 1 @@ -297,7 +297,7 @@ services: # Description: Handles conversion of uploaded precise code intelligence bundles. # - # Ports exposed to other Sourcegraph services: 3188/TCP (first worker), 9090 (prometheus) + # Ports exposed to other Sourcegraph services: 3188/TCP # Ports exposed to the public internet: none # precise-code-intel-worker: @@ -309,7 +309,7 @@ services: - 'PRECISE_CODE_INTEL_BUNDLE_MANAGER_URL=http://precise-code-intel-bundle-manager:3187' - 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090' healthcheck: - test: "wget -q 'http://127.0.0.1:3188/ping' -O /dev/null || exit 1" + test: "wget -q 'http://127.0.0.1:3188/healthz' -O /dev/null || exit 1" interval: 5s timeout: 5s retries: 1 diff --git a/prometheus/prometheus_targets.yml b/prometheus/prometheus_targets.yml index 4f9942b..92092f9 100644 --- a/prometheus/prometheus_targets.yml +++ b/prometheus/prometheus_targets.yml @@ -12,8 +12,9 @@ - query-runner:6060 - repo-updater:6060 - syntect-server:6060 - - precise-code-intel-api-server:3186 - - precise-code-intel-bundle-manager:3187 + - precise-code-intel-api-server:6060 + - precise-code-intel-bundle-manager:6060 + - precise-code-intel-worker:6060 # Add new entries here for every searcher/symbol/gitserver replica. - zoekt-indexserver-0:6072 - replacer-0:6060