Improve message queue logging
Logging the pipe buffer size on startup will tell how large it was at the time when MaxScale read it. If there are some abnormalities in it, this will make it visible. Logging the worker ID when the posting of a message fails will tell which particular worker it was. For example, if the worker in question is the main worker (i.e. ID 0), we know there's something that's blocking the processing.
This commit is contained in:
@ -334,6 +334,16 @@ public:
|
||||
|
||||
virtual ~Worker();
|
||||
|
||||
/**
|
||||
* Returns the id of the worker
|
||||
*
|
||||
* @return The address of the worker cast to an int
|
||||
*/
|
||||
virtual int id() const
|
||||
{
|
||||
return (intptr_t)this;
|
||||
}
|
||||
|
||||
int load(Load::counter_t counter)
|
||||
{
|
||||
return m_load.percentage(counter);
|
||||
|
Reference in New Issue
Block a user