From 15b6f37526ebb6bc7f096beb7519c99df207cb95 Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Fri, 9 Apr 2021 16:46:44 +0200 Subject: [PATCH] Addition of waitSig for vtgate/vttablet profiling Signed-off-by: Florent Poinsard --- ansible/roles/vtgate/templates/vtgate.conf.j2 | 2 +- ansible/roles/vttablet/templates/vttablet.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/vtgate/templates/vtgate.conf.j2 b/ansible/roles/vtgate/templates/vtgate.conf.j2 index 7f1e0ccf0..c033443d0 100644 --- a/ansible/roles/vtgate/templates/vtgate.conf.j2 +++ b/ansible/roles/vtgate/templates/vtgate.conf.j2 @@ -22,7 +22,7 @@ EXTRA_VTGATE_FLAGS="-vschema_ddl_authorized_users \"%\" \ -gate_query_cache_size {{ vtgate_query_cache_size }} \ {% if pprof_targets is defined %} {% for target in pprof_targets if target == "vtgate" %} - -pprof {{ pprof_args }},path=/tmp/pprof/vtgate-{{ gateway.id }} + -pprof {{ pprof_args }},path=/tmp/pprof/vtgate-{{ gateway.id }},waitSig {%- endfor %} {% endif %} {{gateway.extra_flags|default("")}} \ diff --git a/ansible/roles/vttablet/templates/vttablet.conf.j2 b/ansible/roles/vttablet/templates/vttablet.conf.j2 index ceb1be80b..24ef1b5be 100644 --- a/ansible/roles/vttablet/templates/vttablet.conf.j2 +++ b/ansible/roles/vttablet/templates/vttablet.conf.j2 @@ -39,7 +39,7 @@ EXTRA_VTTABLET_FLAGS="-alsologtostderr \ --binlog_use_v3_resharding_mode=true \ {% if pprof_targets is defined %} {% for target in pprof_targets if target == "vttablet" %} - -pprof {{ pprof_args }},path=/tmp/pprof/vttablet-{{ tablet.id }} + -pprof {{ pprof_args }},path=/tmp/pprof/vttablet-{{ tablet.id }},waitSig {%- endfor %} {% endif %} {{ tablet.extra_flags | default("") }} \