-
Notifications
You must be signed in to change notification settings - Fork 716
v8.5.7: support logging session connect attrs to slow query log (#22547) (#22775) #23172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,7 +69,11 @@ Fields in the `SESSION_CONNECT_ATTRS` table are described as follows: | |
|
|
||
| ## Size limit and truncation | ||
|
|
||
| <<<<<<< HEAD | ||
| TiDB uses the [`performance_schema_session_connect_attrs_size`](/system-variables.md#performance_schema_session_connect_attrs_size-new-in-v900) global system variable to control the maximum total size of connection attributes per session. | ||
| ======= | ||
| TiDB uses the [`performance_schema_session_connect_attrs_size`](/system-variables.md#performance_schema_session_connect_attrs_size-new-in-v857) global system variable to control the maximum total size of connection attributes per session. | ||
| >>>>>>> 68bb5e64f0 (v8.5.7: support logging session connect attrs to slow query log (#22547) (#22775)) | ||
|
Comment on lines
+72
to
+76
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an unresolved merge conflict here. Please resolve it by keeping the v8.5.7 version and removing the v9.0.0 version and conflict markers: TiDB uses the performance_schema_session_connect_attrs_size global system variable to control the maximum total size of connection attributes per session. |
||
|
|
||
| - Default value: `4096` bytes | ||
| - Range: `[-1, 65536]` | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -605,7 +605,11 @@ Referenced in: | |
| Referenced in: | ||
|
|
||
| - [`SESSION_CONNECT_ATTRS`](/performance-schema/performance-schema-session-connect-attrs.md) | ||
| <<<<<<< HEAD | ||
| - [System Variables](/system-variables.md#performance_schema_session_connect_attrs_size-new-in-v900) | ||
| ======= | ||
| - [System Variables](/system-variables.md#performance_schema_session_connect_attrs_size-new-in-v857) | ||
| >>>>>>> 68bb5e64f0 (v8.5.7: support logging session connect attrs to slow query log (#22547) (#22775)) | ||
|
Comment on lines
+608
to
+612
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an unresolved merge conflict here. Please resolve it by keeping the v8.5.7 version and removing the v9.0.0 version and conflict markers: |
||
|
|
||
| ### plugin_dir | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -811,7 +811,11 @@ mysql> SHOW GLOBAL VARIABLES LIKE 'max_prepared_stmt_count'; | |||||||||||||
| * In a cluster with a large number of Regions, the PD leader experiences high CPU pressure due to the increased overhead of handling heartbeats and scheduling tasks. | ||||||||||||||
| * In a TiDB cluster with many TiDB instances, the PD leader experiences high CPU pressure due to a high concurrency of requests for Region information. | ||||||||||||||
|
|
||||||||||||||
| <<<<<<< HEAD | ||||||||||||||
| ### performance_schema_session_connect_attrs_size <span class="version-mark">New in v9.0.0</span> | ||||||||||||||
| ======= | ||||||||||||||
| ### performance_schema_session_connect_attrs_size <span class="version-mark">New in v8.5.7</span> | ||||||||||||||
| >>>>>>> 68bb5e64f0 (v8.5.7: support logging session connect attrs to slow query log (#22547) (#22775)) | ||||||||||||||
|
Comment on lines
+814
to
+818
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an unresolved merge conflict here. Please resolve it by keeping the v8.5.7 version and removing the v9.0.0 version and conflict markers.
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| - Scope: GLOBAL | ||||||||||||||
| - Persists to cluster: Yes | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an unresolved merge conflict here. Please resolve it by keeping the v8.5.7 version and removing the v9.0.0 version and conflict markers:
The Session_connect_attrs column stores session connection attributes in JSON format parsed from the slow log. TiDB controls the maximum payload size written to this field using performance_schema_session_connect_attrs_size.