Title: beaver dramatically falls behind watched logfile · Issue #432 · python-beaver/python-beaver · GitHub
Open Graph Title: beaver dramatically falls behind watched logfile · Issue #432 · python-beaver/python-beaver
X Title: beaver dramatically falls behind watched logfile · Issue #432 · python-beaver/python-beaver
Description: I have a log file that is updated about 60 times per second with big lines, about 160 KB per line. I increased read chunk size from 4096 to 40960 (10 times, file tail.py, method _run_pass), beaver read new lines faster, but not enough. T...
Open Graph Description: I have a log file that is updated about 60 times per second with big lines, about 160 KB per line. I increased read chunk size from 4096 to 40960 (10 times, file tail.py, method _run_pass), beaver ...
X Description: I have a log file that is updated about 60 times per second with big lines, about 160 KB per line. I increased read chunk size from 4096 to 40960 (10 times, file tail.py, method _run_pass), beaver ...
Opengraph URL: https://github.com/python-beaver/python-beaver/issues/432
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"beaver dramatically falls behind watched logfile ","articleBody":"I have a log file that is updated about 60 times per second with big lines, about 160 KB per line. I increased read chunk size from 4096 to 40960 (10 times, file tail.py, method _run_pass), beaver read new lines faster, but not enough. The lag between last log entry and line processing by beaver increases - 10 seconds delay per minute of working. \r\nI've tested with tranport type = stdout, format: raw\r\n\r\nIncreasing number_of_consumer_processes to 2 or 4 doesn't help.\r\nIncreasing reading chunk size to 500 KB doesn't help.\r\n\r\nIt is not a disk issue (SSDin this server and some stat about IO operations in Grafana looks good).\r\n\r\nWhy beaver reading lines from log can be so slow?\r\nAny hints how speed it up?\r\nCan increasing discover_interval help?","author":{"url":"https://github.com/nburunova","@type":"Person","name":"nburunova"},"datePublished":"2018-11-09T10:34:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/432/python-beaver/issues/432"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:81023011-3e2b-e866-e63a-f66a5fa07164 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB8A:236F3C:23AAE1C:30B1A0F:696AD1C3 |
| html-safe-nonce | 93fad7fad00960ee9cb976c354c8576ab34acca13a33576a97674d2d918b2a97 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjhBOjIzNkYzQzoyM0FBRTFDOjMwQjFBMEY6Njk2QUQxQzMiLCJ2aXNpdG9yX2lkIjoiNzc5NTA5OTEyNDEwODAyMjIxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 894e1524b86424c774501f2efc1d1900d35caeed267971d974483aeea687dfba |
| hovercard-subject-tag | issue:379107920 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-beaver/python-beaver/432/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f39be6ed76bb1183ade349a2c499c3231b3419abd498b53efcea2f9f73574c53/python-beaver/python-beaver/issues/432 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f39be6ed76bb1183ade349a2c499c3231b3419abd498b53efcea2f9f73574c53/python-beaver/python-beaver/issues/432 |
| og:image:alt | I have a log file that is updated about 60 times per second with big lines, about 160 KB per line. I increased read chunk size from 4096 to 40960 (10 times, file tail.py, method _run_pass), beaver ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nburunova |
| hostname | github.com |
| expected-hostname | github.com |
| None | c785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-beaver/python-beaver git https://github.com/python-beaver/python-beaver.git |
| octolytics-dimension-user_id | 16486652 |
| octolytics-dimension-user_login | python-beaver |
| octolytics-dimension-repository_id | 5171841 |
| octolytics-dimension-repository_nwo | python-beaver/python-beaver |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5171841 |
| octolytics-dimension-repository_network_root_nwo | python-beaver/python-beaver |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c718a376fcf780eb22089171adb84a543f660bf7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width