[SERVER-9897] PHP tests for write concern Created: 10/Jun/13 Updated: 13/Nov/14 Resolved: 08/Oct/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 2.2.2 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Minor - P4 |
| Reporter: | Albert Aguirre | Assignee: | Andrew Ryder (Inactive) |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
uname -a |
||
| Attachments: |
|
| Participants: |
| Description |
|
I created a PHP script that times how long an insert cursor takes to insert data per each write concern. See results below: (write concerns are based off of the PHP driver doc) ======================================= Write concern: 1 : Write acknowledged by the primary only Write concern: 2 : Write confirmed in 2 secondaries Write concern: 3 : Write confirmed in 3 secondaries Write concern: majority : Write confirmed in the majority of secondaries Write concern: j : write acknowledged by primary and the journal flushed to disk Do you know why I would see a much higher time in microseconds with write concern 1 (acknowledgement from the primary) compared to all others? |
| Comments |
| Comment by Andrew Ryder (Inactive) [ 19/Sep/13 ] |
|
Hi Albert, Haven't heard back about this and we still haven't been able to reproduce the issue. Have you had a chance to get the MongoDB setup we previously requested? If I haven't heard back within a couple days I will close this as "unable to reproduce". Thanks for your time. – Andrew |
| Comment by Andrew Ryder (Inactive) [ 30/Jul/13 ] |
|
Hi Albert, I've not been able to reproduce your results. Can you please confirm;
EDIT: sorry, I realised you gave the PHP and Client OS above. These are the results I get running your script from MacOS 10.8, PHP 5.5 interactive shell connecting to a Mongo cluster with 5 hosts (no shards).
Regards, |
| Comment by Albert Aguirre [ 17/Jun/13 ] |
|
Write concern php code snippet |
| Comment by Albert Aguirre [ 17/Jun/13 ] |
|
Of course... Mongo version: 2.2 Heres where I got my write concern PHP info: Code snippet attached |
| Comment by Stennie Steneker (Inactive) [ 16/Jun/13 ] |
|
Hi Albert, In order to help us try to reproduce your results, can you please:
Thanks, |