[SERVER-6008] numactl in debian init script seems to be problematic Created: 05/Jun/12 Updated: 11/Jul/16 Resolved: 05/Aug/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 2.1.1, 2.2.5, 2.4.5, 2.5.1 |
| Fix Version/s: | 2.4.7, 2.5.2 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Michael A. Fiedler | Assignee: | Ernie Hershey |
| Resolution: | Done | Votes: | 4 |
| Labels: | initscript | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||
| Operating System: | Linux | ||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||
| Description |
|
Issue Status as of December 16th, 2013 ISSUE SUMMARY USER IMPACT SOLUTION WORKAROUNDS PATCHES Original DescriptionIt looks like the wrapper function for numactl here: https://github.com/mongodb/mongo/blob/master/debian/init.d#L67-74 doesn't work with the start-stop-daemon here: https://github.com/mongodb/mongo/blob/master/debian/init.d#L129-135 One solution could be to test for the existence of numa, and pass the full command to --exec. |
| Comments |
| Comment by auto [ 02/Oct/13 ] |
|
Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}Message: |
| Comment by auto [ 02/Oct/13 ] |
|
Author: {u'username': u'Aricg', u'name': u'Aricg', u'email': u'actual@aricgardner.com'}Message: I hope this is correct, I have signed the contributor's agreement. Signed-off-by: Ernie Hershey <ernie.hershey@10gen.com> |
| Comment by auto [ 31/Jul/13 ] |
|
Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}Message: |
| Comment by auto [ 31/Jul/13 ] |
|
Author: {u'username': u'Aricg', u'name': u'Aricg', u'email': u'actual@aricgardner.com'}Message: I hope this is correct, I have signed the contributor's agreement. Signed-off-by: Ernie Hershey <ernie.hershey@10gen.com> |
| Comment by Michael Loftis [ 14/Jun/13 ] |
|
Fixed init script that actually works, and behaves as intended and expected. |
| Comment by Michael Loftis [ 14/Jun/13 ] |
|
Really, you need to remove --exec altogether as it is most emphatically NOT doing what you think it is, or at the very least has side effects that are completely unintended in this case. What you want is to forget about --exec in the startup case (and in the stop case too!) as it will try to find other processes with the exe and not start (or stop them too) if they exist. Granted on a production node you shouldn't run into this but on development, it could be pretty annoying. Use --startas instead during the start case, and remove --exec from the stop case. When numactl is available use --startas $NUMACTL and when numactl isn't available, just use the daemon. I'll attach a fixed init script that works with and without numactl, and doesn't accidentally clobber other side by side mongo instances to this ticket. |
| Comment by Mario Splivalo [ 27/Feb/13 ] |
|
Currently, mongodb is uninstallable without manual intervention on Debian Squeeze. A patch provided is fixing that. |