[Gluster-devel] using 'option transport.socket.own-thread on'

John Smith lbalbalba at gmail.com
Thu May 30 17:25:16 UTC 2013


Hi,


Im trying to run the prove test suite with setting 'option
transport.socket.own-thread on' for each vol file. Ive added a
function to include.rc that adds that to each vol file, and then
modified the individual tests to call that function after each 'volume
create' in the tests *.t files.

It looks like this :

function enable-multi-thread-vol ()
{
$CLI volume stop $V0 force >/dev/null 2>&1
service glusterd stop >/dev/null 2>&1
sync
find /var/lib/glusterd/ -name \*.vol | xargs sed -i 's/.*type
protocol.*/&\n    option transport.socket.own-thread on/'
service glusterd start >/dev/null 2>&1
$CLI volume start $V0 force >/dev/null 2>&1
}

So I stop the volume, stop glusterd services, modify the files, and
then restart glusterd and the volumes after each 'volume create'.

However, the modification 'option transport.socket.own-thread on'
doesnt always get added to the vol files.

I have no idea why this is not working. Any help would be appreciated.


Thanks,


Regards,


John Smith




More information about the Gluster-devel mailing list