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

disable database logging #548

Closed
nosovk opened this issue Mar 9, 2023 · 4 comments · Fixed by #549
Closed

disable database logging #548

nosovk opened this issue Mar 9, 2023 · 4 comments · Fixed by #549
Assignees
Labels
🚀 enhancement New feature or request

Comments

@nosovk
Copy link

nosovk commented Mar 9, 2023

Is your feature request related to a problem? Please describe.
We started migration from PG_CRON, and moved our jobs to PG_TIMETABLE. After migration, we found that database produces more ten 10GB of WAL in a day.

Describe the solution you'd like
I would like to disable logging into PG database. It's good to fetch logs from std_out, but storing them in database is not ok.

Describe alternatives you've considered

ALTER TABLE timetable.log SET UNLOGGED; 
@pashagolub pashagolub self-assigned this Mar 9, 2023
@pashagolub pashagolub added the 🚀 enhancement New feature or request label Mar 9, 2023
@pashagolub
Copy link
Collaborator

Hello. Thanks for your request. Sounds good!

Out of curiosity, what kind of workload can produce 10Gb logs? :-)

@nosovk
Copy link
Author

nosovk commented Mar 9, 2023

We use Hasura as a backend for mobile application. And for some kinds of requests we do special cron-jobs, related to that action. And most of them are launched every second. Actually we have billing based on a cron. Every user that in a call or chat produces lots of cron jobs that added and deleted. And we store WAL for WAL-G backups.

@pashagolub
Copy link
Collaborator

Nice! It would be cool to know the results of your migration and maybe write a post about it.

Meanwhile, you can try a new option --log-database-level=none implemented in the assigned PR. Do you have an opportunity to build binaries from sources for tests?

@nosovk
Copy link
Author

nosovk commented Mar 10, 2023

Unfortunately can't build for now, but I'm not in a hurry. Temporary solution also works.

pashagolub added a commit that referenced this issue Mar 10, 2023
…-logging

[+] allow database logging disabling, closes #548
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants