[openstack-dev] About using python2.7-dbg by default

Jian Wen wenjianhn at gmail.com
Mon Nov 12 07:27:38 UTC 2012


It is painful for me to locate the problem of a running nova-compute
process, because I use python2.7 instead of python2.7-dbg. python2.7-dbg is
the debug build of the Python interpreter on Ubuntu.

Why not use python2.7-dbg by default?
I think its performance is acceptable, and it is easy to do the
troubleshooting.
At least we can do this in devstack.

The issue I met:
Delivering rpc.cast messages to a compute node fails without ERROR
log. It turns out that nova-compute doesn't consume TCP socket buffer
any more. Window size of 0 packets sent by the compute node keep
the related rabbitmq TCP connection alive.
The socket receive buffer is always full:
$ pid=`ps aux | grep -v grep | grep nova-compute | awk '{print $2}' `;
netstat -antp |grep -E "Recv-Q|$pid"
Proto Recv-Q Send-Q Local Address           Foreign Address
State       PID/Program name
tcp   794272      0 1.2.3.7:45190      1.2.3.10:5672      ESTABLISHED
14267/python
tcp        0      0 1.2.3.7:45191      1.2.3.10:5672      ESTABLISHED
14267/python
tcp        0      0 1.2.3.7:36333      1.2.3.10:3306      ESTABLISHED
14267/python


-- 
Best,

Jian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20121112/6af76a1a/attachment.html>


More information about the OpenStack-dev mailing list