鼠兔:写入缓冲区超出警告 [英] Pika: Write buffer exceeded warning

查看:66
本文介绍了鼠兔:写入缓冲区超出警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的软件程序运行良好 5 个月,现在突然我们开始收到 Pika 警告,最终导致异常.

Our software program was working fine for 5 months and now suddenly we have started receiving Pika warnings which ultimately lead to an exception.

Pika 0.9.5 UserWarning:写入缓冲区超出警告阈值.

Pika 0.9.5 UserWarning: Write buffer exceeded warning threshold.

我搜索了很多论坛,但都不太满意.描述的一种解决方案是完全忽略这些警告,但我对此有点怀疑.在这方面的任何帮助将不胜感激.很紧急.

I have searched many forums, but to very little satisfaction. One solution described was to ignore these warnings altogether, but I am a little skeptical about that. Any help in this matter will be greatly appreciated. It is very urgent.

谢谢

推荐答案

这个:http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-April/012223.html很好地说明了问题.问题是你写的比从队列中消耗快得多.警告只是告诉你这一点.

This: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-April/012223.html explains the problem well. The problem is that you write much faster than consume from the queue. And the warning just tells you about that.

您可以调整:

connection.set_backpressure_multiplier(NNNN) 

但这并不能解决问题,只会将警告隐藏一段时间.

but this will not solve the problem, just will hide the warnings for some time.

取决于应用程序 - 您可能需要将一些代码附加到 add_backpressure_callback:http://pika.github.com/connecting.html#adapters.select_connection.SelectConnection.add_backpressure_callback

Depending on the application - you might need to attach some code to add_backpressure_callback: http://pika.github.com/connecting.html#adapters.select_connection.SelectConnection.add_backpressure_callback

并在遇到背压时进行一些清理或任何需要的操作.但首先 - 检查您的代码并找出导致过载的原因.

and to do some cleanup or whatever is needed when backpressure is being hit. But first of all - check your code and find what's causing the overload.

这篇关于鼠兔:写入缓冲区超出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆