You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Mohammad Hajjat <ha...@purdue.edu> on 2013/07/20 23:07:31 UTC
Socket buffer size
Hi,
What's the difference between: rpc_send_buff_size_in_bytes and
internode_send_buff_size_in_bytes?
I need to set my TCP socket buffer size (for both transmit/receive) to a
given value and I wasn't sure of the relation between these two
configurations. Is there any recommendation? Do they have to be equal, one
less than another, etc.?
The documentation here is not really helping much!
http://www.datastax.com/docs/1.2/configuration/node_configuration#rpc-send-buff-size-in-bytes
Thanks!
--
*Mohammad Hajjat*
*Ph.D. Student*
*Electrical and Computer Engineering*
*Purdue University*
Re: Socket buffer size
Posted by aaron morton <aa...@thelastpickle.com>.
> Has anyone tried configuring the (internode_send_buff_size_in_bytes) parameter?
>
> Here is the Traceback (most recent call last):
Are you setting this on the client or the server ?
It's a server side setting from the cassandra.yaml file.
Cheers
-----------------
Aaron Morton
Cassandra Consultant
New Zealand
@aaronmorton
http://www.thelastpickle.com
On 22/07/2013, at 12:15 PM, Mohammad Hajjat <ha...@purdue.edu> wrote:
> For (rpc_send_buff_size_in_bytes), I was able to try many values of this parameter. However, whenever I tried to configure (internode_send_buff_size_in_bytes) Cassandra kept crashing. Has anyone tried configuring the (internode_send_buff_size_in_bytes) parameter?
>
> Here is the Traceback (most recent call last):
> File "/home/ubuntu/Twissandra_direct/twissandra/manage.py", line 11, in <module>
> execute_manager(settings)
> File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
> utility.execute()
> File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 379, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 191, in run_from_argv
> self.execute(*args, **options.__dict__)
> File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 220, in execute
> output = self.handle(*args, **options)
> File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 351, in handle
> return self.handle_noargs(**options)
> File "/home/ubuntu/Twissandra_direct/twissandra/tweets/management/commands/sync_cassandra.py", line 9, in handle_noargs
> sys = SystemManager(server='localhost:9160')
> File "/usr/local/lib/python2.7/dist-packages/pycassa/system_manager.py", line 70, in __init__
> self._conn = Connection(None, server, framed_transport, timeout, credentials)
> File "/usr/local/lib/python2.7/dist-packages/pycassa/connection.py", line 33, in __init__
> self.transport.open()
> File "/usr/local/lib/python2.7/dist-packages/thrift/transport/TTransport.py", line 261, in open
> return self.__trans.open()
> File "/usr/local/lib/python2.7/dist-packages/thrift/transport/TSocket.py", line 99, in open
> message=message)
>
>
>
>
> On Sat, Jul 20, 2013 at 6:31 PM, Shahab Yunus <sh...@gmail.com> wrote:
> I think the former is for client communication to the nodes and the latter for communication between nodes themselves as evident by the name of the property. Please feel free to correct me if I am wrong.
>
> Regards,
> Shahab
>
>
> On Saturday, July 20, 2013, Mohammad Hajjat wrote:
> Hi,
>
> What's the difference between: rpc_send_buff_size_in_bytes and internode_send_buff_size_in_bytes?
>
> I need to set my TCP socket buffer size (for both transmit/receive) to a given value and I wasn't sure of the relation between these two configurations. Is there any recommendation? Do they have to be equal, one less than another, etc.?
>
> The documentation here is not really helping much! http://www.datastax.com/docs/1.2/configuration/node_configuration#rpc-send-buff-size-in-bytes
>
> Thanks!
> --
> Mohammad Hajjat
> Ph.D. Student
> Electrical and Computer Engineering
> Purdue University
>
>
>
> --
> Mohammad Hajjat
> Ph.D. Student
> Electrical and Computer Engineering
> Purdue University
Re: Socket buffer size
Posted by Mohammad Hajjat <ha...@purdue.edu>.
For (rpc_send_buff_size_in_bytes), I was able to try many values of this
parameter. However, whenever I tried to configure (
internode_send_buff_size_in_bytes) Cassandra kept crashing. Has anyone
tried configuring the (internode_send_buff_size_in_bytes) parameter?
Here is the Traceback (most recent call last):
File "/home/ubuntu/Twissandra_direct/twissandra/manage.py", line 11, in
<module>
execute_manager(settings)
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 438, in execute_manager
utility.execute()
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 220, in execute
output = self.handle(*args, **options)
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 351, in handle
return self.handle_noargs(**options)
File
"/home/ubuntu/Twissandra_direct/twissandra/tweets/management/commands/sync_cassandra.py",
line 9, in handle_noargs
sys = SystemManager(server='localhost:9160')
File "/usr/local/lib/python2.7/dist-packages/pycassa/system_manager.py",
line 70, in __init__
self._conn = Connection(None, server, framed_transport, timeout,
credentials)
File "/usr/local/lib/python2.7/dist-packages/pycassa/connection.py", line
33, in __init__
self.transport.open()
File
"/usr/local/lib/python2.7/dist-packages/thrift/transport/TTransport.py",
line 261, in open
return self.__trans.open()
File
"/usr/local/lib/python2.7/dist-packages/thrift/transport/TSocket.py", line
99, in open
message=message)
On Sat, Jul 20, 2013 at 6:31 PM, Shahab Yunus <sh...@gmail.com>wrote:
> I think the former is for client communication to the nodes and the latter
> for communication between nodes themselves as evident by the name of the
> property. Please feel free to correct me if I am wrong.
>
> Regards,
> Shahab
>
>
> On Saturday, July 20, 2013, Mohammad Hajjat wrote:
>
>> Hi,
>>
>> What's the difference between: rpc_send_buff_size_in_bytes and
>> internode_send_buff_size_in_bytes?
>>
>> I need to set my TCP socket buffer size (for both transmit/receive) to a
>> given value and I wasn't sure of the relation between these two
>> configurations. Is there any recommendation? Do they have to be equal, one
>> less than another, etc.?
>>
>> The documentation here is not really helping much!
>> http://www.datastax.com/docs/1.2/configuration/node_configuration#rpc-send-buff-size-in-bytes
>>
>> Thanks!
>> --
>> *Mohammad Hajjat*
>> *Ph.D. Student*
>> *Electrical and Computer Engineering*
>> *Purdue University*
>>
>
--
*Mohammad Hajjat*
*Ph.D. Student*
*Electrical and Computer Engineering*
*Purdue University*
Re: Socket buffer size
Posted by Shahab Yunus <sh...@gmail.com>.
I think the former is for client communication to the nodes and the latter
for communication between nodes themselves as evident by the name of the
property. Please feel free to correct me if I am wrong.
Regards,
Shahab
On Saturday, July 20, 2013, Mohammad Hajjat wrote:
> Hi,
>
> What's the difference between: rpc_send_buff_size_in_bytes and
> internode_send_buff_size_in_bytes?
>
> I need to set my TCP socket buffer size (for both transmit/receive) to a
> given value and I wasn't sure of the relation between these two
> configurations. Is there any recommendation? Do they have to be equal, one
> less than another, etc.?
>
> The documentation here is not really helping much!
> http://www.datastax.com/docs/1.2/configuration/node_configuration#rpc-send-buff-size-in-bytes
>
> Thanks!
> --
> *Mohammad Hajjat*
> *Ph.D. Student*
> *Electrical and Computer Engineering*
> *Purdue University*
>