-
Notifications
You must be signed in to change notification settings - Fork 19
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
Hasura log size #11
Comments
I found this https://unix.stackexchange.com/questions/17209/how-to-limit-log-file-size-using which might help! Or control the size by hasura-metric-adapter code? 😃 |
Hi @hongbo-miao, I wasn't really happy with the current solution, the first thing that comes to my mind is to use a named pipe. The containers in the pod need to share a process namespace in this case. So in the spec of the deployment we need the command should than can become:
The file size should there be 0, since the actual log data is only hold in a shared memory in the named pipe. The disadvantage of this is, that if only the metric adapter dies for whatever reason, it can't recover the correct metrics for open websocket connections etc. because it can't replay the log. Let me know what you think. :) |
I am not an expert, however I feel better than current approach. 😊 |
@hongbo-miao I created the PR #12 to explain the named pipe approach in the Readme, the adapter doesn't need any adaption to work with a named pipe. :) |
Thanks for bringing this up in the first place! 😄 |
I just tried, works perfect! 😄 |
Hi @afitzek if I understand correctly, based on this approach by using
The
/tmp/log/stdout.log
file will become bigger and bigger until the Hasura container dies or redeploys.Need somehow limit the log size.
The text was updated successfully, but these errors were encountered: