Pika: Write buffer exceeded warning

隐身守侯 提交于 2019-12-12 12:13:12

问题


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: 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.

Thanks


回答1:


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.

You can tune:

connection.set_backpressure_multiplier(NNNN) 

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

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.



来源:https://stackoverflow.com/questions/11210693/pika-write-buffer-exceeded-warning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!