Skip to content

Commit

Permalink
Merge pull request #611 from vitessio/enable-pprof
Browse files Browse the repository at this point in the history
Fix ansible when no profile configure is given
  • Loading branch information
frouioui authored Oct 30, 2024
2 parents 67c056c + bb6d917 commit 59c9440
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/vtgate/templates/vtgate.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ EXTRA_VTGATE_FLAGS="\
--vschema_ddl_authorized_users \"%\" \
--vtgate-config-terse-errors \
--tablet_types_to_wait REPLICA \
{% if vitess_profile_binary == 'vtgate' %}\
{% if vitess_profile_binary is defined and vitess_profile_binary == 'vtgate' %}\
--pprof=\"{{vitess_profile_mode}},waitSig,path=/pprof/{{arewefastyet_exec_uuid}}/vtgate-{{ gateway.id }}\" \
{% endif %}\
{{gateway.extra_flags|default("")}} \
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/vttablet/templates/vttablet.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ EXTRA_VTTABLET_FLAGS="--alsologtostderr \
{% endif %}
--grpc_max_message_size=67108864 \
--db_charset=utf8 \
{% if vitess_profile_binary == 'vttablet' %}\
{% if vitess_profile_binary is defined and vitess_profile_binary == 'vttablet' %}\
--pprof=\"{{vitess_profile_mode}},waitSig,path=/pprof/{{arewefastyet_exec_uuid}}/vttablet-{{ tablet.id }}\" \
{% endif %}\
{{ tablet.extra_flags | default("") }} \
Expand Down

0 comments on commit 59c9440

Please sign in to comment.