mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 13:52:59 +00:00
* feat: add HTTP API to activate/deactivate heap profiling Signed-off-by: evenyag <realevenyag@gmail.com> * feat: add HTTP API to get profiling status Signed-off-by: evenyag <realevenyag@gmail.com> * feat: enable heap prof by default Signed-off-by: evenyag <realevenyag@gmail.com> * build: add "prof:true,prof_active:false" as default env to dockerfiles Signed-off-by: evenyag <realevenyag@gmail.com> * feat: activate heap profiling after log initialization Signed-off-by: evenyag <realevenyag@gmail.com> * feat: add memory options to control whether to activate profiling Signed-off-by: evenyag <realevenyag@gmail.com> * docs: update docs Signed-off-by: evenyag <realevenyag@gmail.com> * chore: fmt toml Signed-off-by: evenyag <realevenyag@gmail.com> * test: fix config test Signed-off-by: evenyag <realevenyag@gmail.com> * docs: usage of new api Signed-off-by: evenyag <realevenyag@gmail.com> * chore: log profile after version Signed-off-by: evenyag <realevenyag@gmail.com> * docs: update how to docs Signed-off-by: evenyag <realevenyag@gmail.com> * docs: fix how to docs Signed-off-by: evenyag <realevenyag@gmail.com> --------- Signed-off-by: evenyag <realevenyag@gmail.com>
24 lines
606 B
Docker
24 lines
606 B
Docker
FROM ubuntu:22.04
|
|
|
|
# The root path under which contains all the dependencies to build this Dockerfile.
|
|
ARG DOCKER_BUILD_ROOT=.
|
|
# The binary name of GreptimeDB executable.
|
|
# Defaults to "greptime", but sometimes in other projects it might be different.
|
|
ARG TARGET_BIN=greptime
|
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
ca-certificates \
|
|
curl
|
|
|
|
ARG TARGETARCH
|
|
|
|
ADD $TARGETARCH/$TARGET_BIN /greptime/bin/
|
|
|
|
ENV PATH /greptime/bin/:$PATH
|
|
|
|
ENV TARGET_BIN=$TARGET_BIN
|
|
|
|
ENV MALLOC_CONF="prof:true,prof_active:false"
|
|
|
|
ENTRYPOINT ["sh", "-c", "exec $TARGET_BIN \"$@\"", "--"]
|