Skip to content

Commit 5a80ef0

Browse files
authored
otel-collector: bump resources (#851)
1 parent 6d8ecf3 commit 5a80ef0

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

docker-compose/docker-compose.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ services:
1616
image: 'index.docker.io/sourcegraph/migrator:169594_2022-08-27_c479e442c579@sha256:c2c517a7bd59197bcabbebe7ea1e02a85dce3a69d5cab7dbbc8a021cbc231041'
1717
cpus: 0.5
1818
mem_limit: '500m'
19-
command:
20-
["up"]
19+
command: ['up']
2120
environment:
2221
- PGHOST=pgsql
2322
- PGPORT=5432
@@ -42,7 +41,7 @@ services:
4241
- CODEINSIGHTS_PGPASSWORD=password
4342
- CODEINSIGHTS_PGDATABASE=postgres
4443
- CODEINSIGHTS_PGSSLMODE=disable
45-
restart: "on-failure"
44+
restart: 'on-failure'
4645
networks:
4746
- sourcegraph
4847
depends_on:
@@ -87,7 +86,7 @@ services:
8786
#
8887
# IMPORTANT: if a customer uses a reverse proxy in front of Caddy
8988
# the configuration files below must be updated to include trusted_proxies
90-
#
89+
#
9190
# Comment out the following line when using HTTPS with either Let's Encrypt or custom certificates
9291
- '../caddy/builtins/http.Caddyfile:/etc/caddy/Caddyfile'
9392
#
@@ -733,8 +732,8 @@ services:
733732
otel-collector:
734733
container_name: otel-collector
735734
image: 'index.docker.io/sourcegraph/opentelemetry-collector:169594_2022-08-27_c479e442c579@sha256:d35ab95bba6604a9f0ba7edbdf209ba5e53c7ad918d7dcb084b8a4603b0e8257'
736-
cpus: 0.5
737-
mem_limit: '512m'
735+
cpus: 1
736+
mem_limit: '1g'
738737
networks:
739738
- sourcegraph
740739
restart: always

pure-docker/deploy-otel-collector.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ docker run --detach \
1111
--name=otel-collector \
1212
--network=sourcegraph \
1313
--restart=always \
14-
--cpus="0.5" \
15-
--memory=512m \
14+
--cpus="1" \
15+
--memory=1g \
1616
-e JAEGER_HOST=jaeger \
1717
-v $(pwd)/../otel-collector/config.yaml:/etc/otel-collector/config.yaml \
1818
index.docker.io/sourcegraph/opentelemetry-collector:169257_2022-08-25_bb67d3645e59@sha256:a10375336bc505767533b1ec2d32c319e379365e5d6809c1d1dcab1b7fb4798f \

0 commit comments

Comments
 (0)