amoghyermalkar123 commented on issue #8789:
URL: https://github.com/apache/trafficserver/issues/8789#issuecomment-1097911107

   Update, I realized this later that we have an option for debug logs to watch 
parent selection in action, I'll provide a trimmed down sequence of logs for 
the aforementioned issue, please help me in understanding the activity.
   
   ```
   [ET_NET 5] DEBUG: <HttpTransact.cc:3009 (HandleCacheOpenReadMiss)> 
(http_trans) [1] [HandleCacheOpenReadMiss] --- MISS
   [ET_NET 5] DEBUG: <HttpTransact.cc:3010 (HandleCacheOpenReadMiss)> 
(http_seq) [1] [HttpTransact::HandleCacheOpenReadMiss] Miss in cache
   [ET_NET 5] DEBUG: <HttpTransact.cc:4957 (get_ka_info_from_config)> 
(http_trans) [1] get_ka_info_from_config, server_info->http_version 65537, 
check_hostdb 0
   [ET_NET 5] DEBUG: <ParentSelection.cc:117 (findParent)> (parent_select) In 
ParentConfigParams::findParent(): parent_table: 0x556d29afbe90.
   [ET_NET 5] DEBUG: <ParentSelection.cc:121 (findParent)> (parent_select) 
policy.ParentEnable: 1
   [ET_NET 5] DEBUG: <ParentSelection.cc:840 (UpdateMatch)> (parent_select) 
Matched with 0x556d29a2b7a8 parent node from line 1
   [ET_NET 5] DEBUG: <ParentConsistentHash.cc:146 (selectParent)> 
(parent_select) ParentConsistentHash::selectParent(): Using a consistent hash 
parent selection strategy.
   [ET_NET 5] DEBUG: <ParentConsistentHash.cc:210 (selectParent)> 
(parent_select) Initial parent lookups: 1
   [ET_NET 5] DEBUG: <ParentConsistentHash.cc:309 (selectParent)> 
(parent_select) Additional parent lookups: 1
   [ET_NET 5] DEBUG: <ParentConsistentHash.cc:334 (selectParent)> 
(parent_select) Chosen parent: parent1.com.443.com.443
   [ET_NET 5] DEBUG: <ParentSelection.cc:181 (findParent)> (parent_select) 
PARENT_SPECIFIED
   [ET_NET 5] DEBUG: <ParentSelection.cc:182 (findParent)> (parent_select) 
Result for request-domain was parent parent1.com.443:443
   
   .....
   
   [ET_NET 0] DEBUG: <DNS.cc:1503 (dns_process)> (dns) Got 1 DNS records for 
[parent1.com]
   [ET_NET 0] DEBUG: <DNS.cc:1721 (dns_process)> (dns) received A name = 
parent1.com
   [ET_NET 0] DEBUG: <DNS.cc:1737 (dns_process)> (dns) received A = parent1-ip
   
   
   DEBUG: <HttpSM.cc:4685 (do_http_server_open)> (http) [1] open connection to 
parent1.com: parent1-ip:443
   DEBUG: <HttpSM.cc:4698 (do_http_server_open)> (http_seq) 
[HttpSM::do_http_server_open] Sending request to server
   DEBUG: <HttpTransact.cc:3385 (handle_response_from_parent)> (http_trans) [1] 
[1] failed to connect to parent 
   
   [ET_NET 5] DEBUG: <HttpTransact.cc:3413 (handle_response_from_parent)> 
(http_trans) [1] [handle_response_from_parent] 3 per parent attempts exhausted
   [ET_NET 5] NOTE: Parent initially marked as down parent1.com:443
   
   [ET_NET 5] DEBUG: <ParentSelection.cc:196 (nextParent)> (parent_select) 
ParentConfigParams::nextParent(): parent_table: 0x556d29afbe90, result->rec: 
0x556d29a2b7a8
   [ET_NET 5] DEBUG: <ParentSelection.cc:212 (nextParent)> (parent_select) 
ParentConfigParams::nextParent(): result->r: 2, tablePtr: 0x556d29afbe90
   [ET_NET 5] DEBUG: <ParentSelection.cc:215 (nextParent)> (parent_select) 
Calling selectParent() from nextParent
   [ET_NET 5] DEBUG: <ParentConsistentHash.cc:146 (selectParent)> 
(parent_select) ParentConsistentHash::selectParent(): Using a consistent hash 
parent selection strategy.
   [ET_NET 5] DEBUG: <ParentConsistentHash.cc:210 (selectParent)> 
(parent_select) Initial parent lookups: 1
   [ET_NET 5] DEBUG: <ParentConsistentHash.cc:309 (selectParent)> 
(parent_select) Additional parent lookups: 1
   [ET_NET 5] DEBUG: <ParentConsistentHash.cc:334 (selectParent)> 
(parent_select) Chosen parent: parent2.com.443
   [ET_NET 5] DEBUG: <ParentSelection.cc:234 (nextParent)> (parent_select) 
Retry result for request-domain was parent parent2.com:443
   
   ```
   The log says that it couldn't connect to the parent server or Response is 
not valid, while I see TCP_MISS 200 on both the parent servers.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to