Skip to content
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

[question] How to verify if profiler is running? How to disable profiling if connection is lost? #10

Closed
markosutic opened this issue May 20, 2022 · 11 comments

Comments

@markosutic
Copy link

Hello,

It is mentioned in the docs:
"As with any database maintenance operations, this should only be done in a connection loss safe environment as losing the connection in the middle of the monitoring would leave those settings behind permanently."

In case profiling was running when connection was lost, can we verify somehow that profiling is active on the database?
How can we disable profiling if connection is lost in the middle of the monitoring?

Sorry for asking duplicate question if this is already mentioned somewhere. I couldn't find this information.

Thank you for the info.

@luss
Copy link
Contributor

luss commented May 20, 2022 via email

@markosutic
Copy link
Author

Thank you @luss for the advice, I am aware that running profiler on the live production is not recommended and should be avoided.

But still, is it possible to disable global profiling if connection is lost? Maybe running ALTER SYSTEM and pg_reload_conf() manually?

Or can I check somehow that profilling is enabled and that diagnostic info is being collected?

Thanks

@luss
Copy link
Contributor

luss commented May 21, 2022 via email

@wieck
Copy link
Collaborator

wieck commented May 21, 2022 via email

@markosutic
Copy link
Author

@wieck thank you very much for the info.

Best regards,
Marko

@markosutic
Copy link
Author

@wieck, sorry, one more question.
Using Global Profiling is risky and it should be avoided on the production system due to noted reasons.

Is session-level local profiling safe enough to be used on the production system?

@wieck
Copy link
Collaborator

wieck commented May 23, 2022 via email

@markosutic
Copy link
Author

Thank you Jan for the info.

@wieck wieck closed this as completed Jun 2, 2022
@luss
Copy link
Contributor

luss commented Oct 11, 2022 via email

@luss
Copy link
Contributor

luss commented Oct 11, 2022 via email

@wieck
Copy link
Collaborator

wieck commented Oct 11, 2022 via email

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

No branches or pull requests

3 participants