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

API request log size growing quite large #609

Closed
mazzarito opened this issue Jun 18, 2024 · 3 comments
Closed

API request log size growing quite large #609

mazzarito opened this issue Jun 18, 2024 · 3 comments

Comments

@mazzarito
Copy link

Is there a way to limit the size of these tables? They've grown to over 30GB in the past week or so ... Is it safe to just truncate the rest_framework_tracking_apirequestlog and/or tracing-record tables or is there a better way to do this?

Thanks!

@danh91
Copy link
Member

danh91 commented Jun 18, 2024

Hi @mazzarito,
Out of curiosity,

  • Would you be comfortable sharing about your transaction volume? In let's say a week? (how many labels generated etc...)
  • Are you familiar with the https://[YOUR-KARRIO-API]/admin/constance/config/?
    Under the Data retention section, it is possible to reduce the data retention for API logs and tracing record API_LOGS_DATA_RETENTION

@mazzarito
Copy link
Author

Ah great, not sure how I missed that.

It's quite high, I'll have to check on the exact volume but quite a lot of time in transit type requests, not so many labels but maybe 20 a day. Probably thousands of time in transit/rate requests...

I noticed that in the admin menu it's impossible to save those settings, is that just not complete yet? Guessing I have to edit the env file to make those changes stick at the moment?

@danh91
Copy link
Member

danh91 commented Jun 19, 2024

The environment variable sets the default but once you set a value from the constance/config page and save, it take precedence over the environment variable value.

There is one save button all the way at the button for all the Constance values.

I would be curious if you see any changes or improvements with let's say 30 days log retention.

@danh91 danh91 closed this as completed Jun 19, 2024
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

2 participants