[SERVER-74845] Create mechanism to ignore ignore fork option with systemd Created: 14/Mar/23 Updated: 29/Oct/23 Resolved: 23/Mar/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0-rc0, 4.4.20, 5.0.16, 6.0.6 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Ryan Egesdahl (Inactive) | Assignee: | Ryan Egesdahl (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||||||
| Backport Requested: |
v6.0, v5.0, v4.4
|
||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
As an alternative to |
| Comments |
| Comment by Githook User [ 25/Mar/23 ] |
|
Author: {'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}Message: (cherry picked from commit 26b4106ddaac866c5b4b9f630e462fd7c7e9b53d) |
| Comment by Githook User [ 25/Mar/23 ] |
|
Author: {'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}Message: (cherry picked from commit 7a722b6621d900e9f9a81fdea27160104dce2055) |
| Comment by Githook User [ 25/Mar/23 ] |
|
Author: {'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}Message: (cherry picked from commit 7a722b6621d900e9f9a81fdea27160104dce2055) |
| Comment by Githook User [ 25/Mar/23 ] |
|
Author: {'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}Message: (cherry picked from commit 26b4106ddaac866c5b4b9f630e462fd7c7e9b53d) |
| Comment by Githook User [ 24/Mar/23 ] |
|
Author: {'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}Message: (cherry picked from commit 7a722b6621d900e9f9a81fdea27160104dce2055) |
| Comment by Githook User [ 24/Mar/23 ] |
|
Author: {'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}Message: (cherry picked from commit 26b4106ddaac866c5b4b9f630e462fd7c7e9b53d) |
| Comment by Githook User [ 23/Mar/23 ] |
|
Author: {'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}Message: |
| Comment by Githook User [ 23/Mar/23 ] |
|
Author: {'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}Message: |
| Comment by Ryan Egesdahl (Inactive) [ 23/Mar/23 ] |
|
For later archaeologists, what we went with is an environment variable which causes processManagement.fork to be false regardless of what's in mongod.conf. The environment variable is set in mongod.service distributed in our packages, so anyone using our packages will always get a non-forking process. |
| Comment by Billy Donahue [ 15/Mar/23 ] |
|
Update: this didn't turn out to be the case: > That is, a --fork would be synonymous with --fork=true A "Bool" type needs an argument. You can't just give it without one. |
| Comment by Billy Donahue [ 15/Mar/23 ] |
|
New idea: Change --fork from a "Switch" type to a "Bool" type. That is, a --fork would be synonymous with --fork=true, but we'd gain the ability to say --fork=false on the command line, and the command line overrides the config file by design! So 1-line change at that point. Verifying all of this. |