-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Restore Graceful Restarting & Socket Activation #7274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 16 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
356de34
Prevent deadlock in indexer initialisation during graceful restart
zeripath a92957a
Move from gracehttp to our own service to add graceful ssh
zeripath e93af21
Add timeout for start of indexers and make hammer time configurable
zeripath ad42260
Fix issue with re-initialization in indexer during tests
zeripath 0365d4c
move the code to detect use of closed to graceful
zeripath d423c80
Handle logs gracefully - add a pid suffix just before restart
zeripath cfdf379
Merge branch 'master' into graceful
zeripath 1758cbe
Move to using a cond and a holder for indexers
zeripath 8de2d30
Merge branch 'master' into graceful
zeripath a7b2861
use time.Since
zeripath 64c7875
Merge branch 'master' into graceful
zeripath 802ad2f
Add some comments and attribution
zeripath 13f99bd
Merge branch 'master' into graceful
zeripath 383d208
Merge branch 'master' into graceful
zeripath 56efa30
Merge branch 'master' into graceful
zeripath c618a85
update modules.txt
zeripath 8bc6b50
Use zero to disable timeout
zeripath 13599bd
Move RestartProcess to its own file
zeripath 80f9aa0
Add cleanup routine
zeripath 20aaaed
Merge branch 'master' into graceful
zeripath 2da8092
Merge branch 'master' into graceful
zeripath 9ca21e4
Merge branch 'master' into graceful
lafriks 786d709
Merge branch 'master' into graceful
zeripath f42fd39
Merge branch 'master' into graceful
zeripath File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,6 +153,8 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`. | |
- `LETSENCRYPT_ACCEPTTOS`: **false**: This is an explicit check that you accept the terms of service for Let's Encrypt. | ||
- `LETSENCRYPT_DIRECTORY`: **https**: Directory that Letsencrypt will use to cache information such as certs and private keys. | ||
- `LETSENCRYPT_EMAIL`: **[email protected]**: Email used by Letsencrypt to notify about problems with issued certificates. (No default) | ||
- `ALLOW_GRACEFUL_RESTARTS`: **true**: Perform a graceful restart on SIGHUP | ||
- `GRACEFUL_HAMMER_TIME`: **60s**: After a restart the parent process will stop accepting new connections and will allow requests to finish before stopping. Shutdown will be forced if it takes longer than this time. | ||
|
||
## Database (`database`) | ||
|
||
|
@@ -185,6 +187,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`. | |
- `REPO_INDEXER_EXCLUDE`: **empty**: A comma separated list of glob patterns (see https://github.com/gobwas/glob) to **exclude** from the index. Files that match this list will not be indexed, even if they match in `REPO_INDEXER_INCLUDE`. | ||
- `UPDATE_BUFFER_LEN`: **20**: Buffer length of index request. | ||
- `MAX_FILE_SIZE`: **1048576**: Maximum size in bytes of files to be indexed. | ||
- `STARTUP_TIMEOUT`: **30s**: If the indexer takes longer than this timeout to start - fail. (This timeout will be added to the hammer time above for child processes - as bleve will not start until the previous parent is shutdown.) | ||
|
||
## Admin (`admin`) | ||
- `DEFAULT_EMAIL_NOTIFICATIONS`: **enabled**: Default configuration for email notifications for users (user configurable). Options: enabled, onmention, disabled | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.