-
Notifications
You must be signed in to change notification settings - Fork 42
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
Error logs when using experiments: "Error publishing event to queue" #472
Comments
The problem is located between the EventStore and the notification (SSE, WebHook):
Once the event is stored in the EventStore, it is consumed to be sent to client. To limit the problem, the size of the buffer is configurable in next release (i hope this week). To summarize :
The ultimate solution would be to use Redis streams (#483). |
Thanks @pierrebruninmaif that will be very useful in fixing this issue. Can you take a quess as to where the bottleneck is that causes the buffer to not empty in time? |
Buffer is full when :
|
There is another case, when no one client are subscribed |
Improve cacheable queue (#472)
That might be the case for us. |
If you reproduce the issue with 1.8.3, you can increase (progressively) a buffer with envvar REDIS_BACKPRESSURE_BUFFER_SIZE. |
Since we started using experiments in our izanami cluster, we started getting spammed by the logs attached below.
We are running izanami 1.8.2 in a cluster of two izanami servers with Redis as data- and eventstore. We are running only one experiment at a time, always with 2 variants and we are using the scala client.
I believe this occurs either when we mark variants as displayed or when we mark variants as won. Maybe both.
It comes in waves on a daily basis and sometimes lasts for hours.
In the last month, our izanami cluster got ~10M requests, out of those ~235K requests logged that error. I dont know how many of the ~10M requests were to the mark variant displayed and mark variant won endpoints.
Should I consider all these events as not tracked in our experiements statistics?
The text was updated successfully, but these errors were encountered: