Skip to content

Commit

Permalink
[Telemetry docker] add memory and memory swap limits (sonic-net#7062)
Browse files Browse the repository at this point in the history
#### Why I did it
Fix https://github.com/Azure/sonic-telemetry/issues/71

#### How I did it
Added memory limit for telemetry docker.
Historical docker memory usage shows telemetry docker consuming 150-200MB memory. Adding some extra buffer.
  • Loading branch information
pra-moh authored and Carl Keene committed Aug 7, 2021
1 parent 32ea399 commit 9a11cf2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rules/docker-telemetry.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ endif

$(DOCKER_TELEMETRY)_CONTAINER_NAME = telemetry
$(DOCKER_TELEMETRY)_RUN_OPT += --privileged -t
$(DOCKER_TELEMETRY)_RUN_OPT += --memory 500m
$(DOCKER_TELEMETRY)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
$(DOCKER_TELEMETRY)_RUN_OPT += -v /usr/share/sonic/scripts:/usr/share/sonic/scripts:ro
$(DOCKER_TELEMETRY)_RUN_OPT += -v /var/run/dbus:/var/run/dbus:rw
Expand Down

0 comments on commit 9a11cf2

Please sign in to comment.