starrocks-kubernetes-operator icon indicating copy to clipboard operation
starrocks-kubernetes-operator copied to clipboard

Enable Datadog profiler for Starrocks FE/BE deployment

Open dengliu opened this issue 1 year ago • 3 comments

Ideally, we can use a init container to download the ddprofile binary. and share it with the main container via emptydir. The version can be configurable in values.yaml as well as the boolean for enabling ddprofile

ddprofile:
  enabled: true
  version: [0.14.1](https://github.com/DataDog/ddprof/releases/tag/v0.14.1)

https://docs.datadoghq.com/profiler/enabling/ddprof/?tab=environmentvariables

https://docs.datadoghq.com/profiler/enabling/java/?tab=datadogprofiler

dengliu avatar Oct 11 '23 03:10 dengliu

what's the size of the binary? is it possible to mount the binary into container with configmap?

kevincai avatar Oct 11 '23 03:10 kevincai

ddprof is 13MB. It's a common practice to use initContainers to share binaries to main container. E.g. the dd-java-agent.jar is already available from https://hub.docker.com/r/datadog/dd-lib-java-init

dengliu avatar Oct 11 '23 03:10 dengliu

We will add a field preStartScriptLocation, and you can down load the binary before container process start. see https://github.com/StarRocks/starrocks-kubernetes-operator/pull/355

yandongxiao avatar Dec 14 '23 08:12 yandongxiao