forked from apache/trafficserver
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request apache#476 from solidwallofcode/edge-hostdb-restru…
…cture HostDB restructure
- Loading branch information
Showing
38 changed files
with
2,260 additions
and
1,929 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<HTML> | ||
<HEAD> | ||
<TITLE>No Valid Host</TITLE> | ||
</HEAD> | ||
|
||
<BODY BGCOLOR="white" FGCOLOR="black"> | ||
<H1>No Valid Host</H1> | ||
<HR> | ||
|
||
<FONT FACE="Helvetica,Arial"><B> | ||
Description: Unable to find a valid target host. | ||
|
||
The server was found but all of the addresses are marked dead and so there is | ||
no valid target address to which to connect. Please try again after a few minutes. | ||
</B></FONT> | ||
<HR> | ||
</BODY> |
This file contains 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.. Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
.. include:: ../../common.defs | ||
|
||
.. highlight:: cpp | ||
.. default-domain:: cpp | ||
|
||
.. _developer-doc-hostdb: | ||
|
||
HostDB | ||
****** | ||
|
||
HostDB is a cache of DNS results. It is used to increase performance by aggregating address | ||
resolution across transactions. | ||
|
||
Runtime Structure | ||
================= | ||
|
||
DNS results are stored in a global hash table as instances of ``HostDBRecord``. Each instance | ||
stores the results of a single query. These records are not updated with new DNS results. Instead | ||
a new record instance is created and replaces the previous instance in the table. Some specific | ||
dynamic data is migrated from the old record to the new one, such as the failure status of the | ||
upstreams in the record. | ||
|
||
|
This file contains 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
' SPDX-License-Identifier: Apache-2.0 | ||
' Licensed under the Apache License, Version 2.0 (the "License"); | ||
' you may not use this file except in compliance with the License. | ||
' You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
' Unless required by applicable law or agreed to in writing, software distributed under the License is distributed | ||
' on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
' See the License for the specific language governing permissions and limitations under the License. | ||
|
||
@startuml | ||
|
||
hide empty description | ||
|
||
state HttpSM { | ||
state do_http_server_open { | ||
} | ||
} | ||
|
||
state HandleRequest #cyan | ||
state CallOSDNSLookup #cyan | ||
|
||
CallOSDNSLookup -> OSDNSLookup | ||
|
||
@enduml | ||
|
This file contains 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 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 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 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 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 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 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 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 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 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.