-
Notifications
You must be signed in to change notification settings - Fork 20
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
powa_kcache_metrics_current grows enormously #42
Comments
What I found on my powa repository DB `CREATE OR REPLACE FUNCTION public.powa_kcache_aggregate(_srvid integer)
` |
Hi, Do you have some monitoring to see how is the growth factor like? If it's a constant and regular growth then it's likely due to inadequate autovacuum tuning. For the ON CONFLICT, it's a workaround for a bug. So sure for now you can keep it as is, but it's a sign that there's something wrong going on here, and the root problem should be fixed instead. That being said I have no clue how that could be happening. It seems that the function is aggregating the same data twice, but that shouldn't be possible because the function removes the data it just aggregated. As the function is atomic, you should either have both aggregated the data and remove the source OR done nothing. Ideally what should be done is removing the ON CONFLICT cause, wait to see if the error happens again and if it does check if the problematic record exists in powa_kcache_metrics table. |
Unfortunately, I don't have any monitoring in place.. Thank you for support. |
What does those values actually mean? But even if there's always one or multiple powa_take_snapshot() running, it shouldn't prevent autovacuum from working. It only means that you'll have an amount of bloat equal to the maximum number of snapshot being performed between two autovacuum runs. It can be a bit high, but it should stay relatively constant. And I don't think that it should represent 120GB. Note also that if you have pg_qualstats setup and a lot of databases and/or users and/or different normalized queries, the aggregation can be quite expensive. We have a fix for that (682b753) but it's not released yet. If you have pg_stat_statements enabled (and maybe a local powa) on your repository server you could check if you could benefit from this patch. |
Thank you.
My plan is:
- try that patch (I have pg_stat_statements enabled and one of my
cluster has ~200+ Dbs)
- monitor database size
чт, 18 бер. 2021 о 20:28 Julien Rouhaud ***@***.***> пише:
… What does those values actually mean?
But even if there's always one or multiple powa_take_snapshot() running,
it shouldn't prevent autovacuum from working. It only means that you'll
have an amount of bloat equal to the maximum number of snapshot being
performed between two autovacuum runs. It can be a bit high, but it should
stay relatively constant. And I don't think that it should represent 120GB.
Note also that if you have pg_qualstats setup and a lot of databases
and/or users and/or different normalized queries, the aggregation can be
quite expensive. We have a fix for that (682b753
<682b753>)
but it's not released yet. If you have pg_stat_statements enabled (and
maybe a local powa) on your repository server you could check if you could
benefit from this patch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIHWEYGGGO77SWBIATN6ZT3TELAE3ANCNFSM4ZLNAHSA>
.
|
Hi @banlex73, any news on this issue? |
It was ok but let me recheck it once I'm back from vacation
…On Wed, 31 Aug 2022, 02:09 Julien Rouhaud, ***@***.***> wrote:
Hi @banlex73 <https://github.com/banlex73>, any news on this issue?
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIHWEYCQJ6DTJML4QFCMIULV34ONXANCNFSM4ZLNAHSA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ok, thanks! |
All good now, thank you |
All good now, thank you |
Thanks a lot for the confirmation! |
No description provided.
The text was updated successfully, but these errors were encountered: