[SERVER-50866] systemd unit mongod.service should use "After=network-online.target" Created: 10/Sep/20 Updated: 29/Oct/23 Resolved: 29/Sep/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Stability |
| Affects Version/s: | None |
| Fix Version/s: | 4.8.0, 4.4.2 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Spencer Brown | 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: | Minor Change | ||||||||||||||||||||
| Backport Requested: |
v4.7, v4.4
|
||||||||||||||||||||
| Sprint: | Dev Platform 2020-09-21, Dev Platform 2020-10-05 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||
| Description |
|
Currently the systemd unil file mongod.service waits for the network.target to be reached, via the line After=network.target. However, most Linux distributions with systemd support network-online.target, which is a better indicator that the network is up and available for MongoDB. When only waiting on network.target, it is possible that the mongod service fails to start upon system reboot. See this systemd documentation page for a more detailed explanation. We suggest changing the mongod.service file to specify:
|
| Comments |
| Comment by Githook User [ 07/Oct/20 ] |
|
Author: {'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}Message: We were previously waiting for network.target, which does not actually (cherry picked from commit 3dc3db0d78d4d8851ad50dd52ee51fed84ecc7e0) |
| Comment by Githook User [ 29/Sep/20 ] |
|
Author: {'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}Message: We were previously waiting for network.target, which does not actually |