[JAVA-339] Send/Recieve buffer limits on mongod server/java driver communication Created: 29/Apr/11 Updated: 11/Sep/19 Resolved: 10/Mar/12 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Performance |
| Affects Version/s: | 2.4 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | santosh kumar kancha | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Red Hat Linux |
||
| Description |
|
We have setup MongoD instance in replica set mode and java driver in on application server in the same Data Center. (Second set of application servers in another datacenter) Our payload between server and client is around 300K. With bigger payload (~300K) the client and server communication seems to be taking 16ms. The reason for this delay is due to multiple rounds of data transfer between them. In mysql, there is an option to increase the Send/Recieve buffer (So all the data is sent in one shot instead of waiting for the ACK from the client during the transfer everytime) Is there any such parameter available for MongoD ?? Thanks & Regards
|
| Comments |
| Comment by Jeffrey Yemin [ 10/Mar/12 ] |
|
Please re-open if you have any more feedback. |
| Comment by Jeffrey Yemin [ 15/Dec/11 ] |
|
Hi Santosh, Are we good to close this? Haven't heard back from you since Antoine's last comment. |
| Comment by Antoine Girbal [ 02/May/11 ] |
|
I dont know how to set it on windows, smthing tells me it's not as easy as linux. Often times setting this value higher will not speed up transfer much. There are different settings to try to get congestion window higher:
|
| Comment by santosh kumar kancha [ 02/May/11 ] |
|
Hi Antoine, Thanks for the comment. Thanks & Regards
|
| Comment by Antoine Girbal [ 02/May/11 ] |
|
Hi Santosh, You can set the buffer limits higher using some OS commands like You would need to set it higher on both client and server side for both wmem and rmem. |
| Comment by Scott Hernandez (Inactive) [ 29/Apr/11 ] |
|
The server will respond with a single packet (within your network's limits) unless you have specified a smaller batchSize. By default the server will return 4/16MB of data for a batch (in a query). Are you using a limit in your find? |