Repository navigation
Make host status persistent across restarts - #5252
Merged
Merged
Conversation
accross restarts.
vmamidi
requested changes
Apr 9, 2019
vmamidi
left a comment
Contributor
There was a problem hiding this comment.
- Stats should be read while reading the parent.config.
- RecData from RecRecord should be used to get value of stat.
- Stats data should be merged with parents from parents.config.
vmamidi
requested changes
Apr 9, 2019
jrushford
force-pushed
the
host_status_persistence
branch
from
April 9, 2019 18:35
8af233a to
a301948
Compare
HostStatus stats after a restart of trafficserver.
jrushford
force-pushed
the
host_status_persistence
branch
from
April 9, 2019 18:51
a301948 to
b69ff6e
Compare
jrushford
marked this pull request as ready for review
April 9, 2019 19:58
vmamidi
approved these changes
Apr 9, 2019
Member
|
The PR breaks SocksProxy. The defaults socks server is set to UP (status: 2) during The defaults socks server is set to DOWN (status: 1) by @jrushford Does the HostStatus persistent data have to be loaded before the records ? |
Contributor
|
This has merge conflicts, and we'll need a new 8.1.x PR. Also, feel free to recommend / suggest other PRs that this depends on, such that it makes the back porting easier. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Traffic Server doesn't retain the host status ( up/down) across Traffic Server restarts. This PR uses stats(records.snap) to retain the host status. Although stats is not the right place to store this information as HostDB is the process of being rewritten, records.snap seems to be a temporary alternative. This is a PR to fix issue #5248.