Skip to content

Commit

Permalink
[dbnode] Use madvdontneed=1 for GODEBUG flags (#2242)
Browse files Browse the repository at this point in the history
  • Loading branch information
robskillington authored Apr 2, 2020
1 parent 7b073b4 commit 8d40fbd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/m3dbnode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ COPY --from=builder /go/src/github.com/m3db/m3/bin/m3dbnode \
/go/src/github.com/m3db/m3/scripts/m3dbnode_bootstrapped.sh \
/bin/

ENV GODEBUG madvdontneed=1

ENTRYPOINT [ "/bin/m3dbnode" ]
CMD [ "-f", "/etc/m3dbnode/m3dbnode.yml" ]
2 changes: 2 additions & 0 deletions docker/m3dbnode/Dockerfile-setcap
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ COPY --from=builder /go/src/github.com/m3db/m3/bin/m3dbnode \
RUN apk add --no-cache curl jq libcap && \
setcap cap_sys_resource=+ep /bin/m3dbnode

ENV GODEBUG madvdontneed=1

ENTRYPOINT [ "/bin/m3dbnode" ]
CMD [ "-f", "/etc/m3dbnode/m3dbnode.yml" ]
2 changes: 2 additions & 0 deletions docker/m3dbnode/development.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ ADD ./config/m3dbnode-local-etcd.yml /etc/m3dbnode/m3dbnode.yml

EXPOSE 2379/tcp 2380/tcp 7201/tcp 7203/tcp 9000-9004/tcp

ENV GODEBUG madvdontneed=1

ENTRYPOINT [ "/bin/m3dbnode" ]
CMD [ "-f", "/etc/m3dbnode/m3dbnode.yml" ]

0 comments on commit 8d40fbd

Please sign in to comment.