Skip to content

PMM-4648 Add flush slow logs. - #426

Merged
AlekSi merged 3 commits into
PMM-2.0from
PMM-4437-flush-slowlogs
Sep 10, 2019
Merged

AlekSi merged 3 commits into
PMM-2.0from
PMM-4437-flush-slowlogs

Conversation

@askomorokhov

@askomorokhov askomorokhov commented Sep 9, 2019 •

Copy link
Copy Markdown
Contributor

https://jira.percona.com/browse/PMM-4437

depends on:
#426
percona/pmm-agent#116
percona/pmm-admin#59
percona/pmm-managed#264

FB:
Percona-Lab/pmm-submodules#444

usage ex.:
pmm-admin add mysql --username=root --password=secret ps:3306 MySQLSlowLog --size-slow-logs=10MB

@askomorokhov
askomorokhov requested a review from AlekSi as a code owner September 9, 2019 17:07
@JNKPercona

Copy link
Copy Markdown
Collaborator

@JNKPercona

Copy link
Copy Markdown
Collaborator

Comment thread api/agentpb/agent.proto Outdated
string dsn = 2;
bool disable_query_examples = 3;
// Rotate slow log.
uint32 size_slow_logs = 4;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Max uint32 is 4GB. That may be too small. Changed to int64. It is also the same type Go os package functions return.

@AlekSi AlekSi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging (as it is not a breaking change) with changes:

  • Agent settings should be returned now;
  • Management API should implement default value.

@AlekSi
AlekSi merged commit f8fed45 into PMM-2.0 Sep 10, 2019
@AlekSi
AlekSi deleted the PMM-4437-flush-slowlogs branch September 10, 2019 07:43
@JNKPercona

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants