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
+++++++++ Incoming Request +++++++++ | |
-- State Machine Id: 0 | |
GET http://dummy.com/obj0 HTTP/1.1 | |
Host: dummy.com | |
User-Agent: curl/7.66.0-DEV | |
Accept: */* | |
Proxy-Connection: Keep-Alive | |
[Jun 7 21:44:49.474] [ET_NET 3] DEBUG: <HttpTransact.cc:1013 (StartRemapRequest)> (http_trans) [0] END HttpTransact::StartRemapRequest | |
[Jun 7 21:44:49.475] [ET_NET 3] DEBUG: <HttpTransact.cc:1015 (StartRemapRequest)> (http_trans) [0] Checking if transaction wants to upgrade |
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
[Jun 4 18:50:35.675] traffic_server DEBUG: <HttpConfig.cc:129 (load_server_session_sharing_match)> (http_config) enum mask value both | |
[Jun 4 18:50:35.675] traffic_server DEBUG: <HttpConfig.cc:82 (http_config_enum_search)> (http_config) enum element both | |
[Jun 4 18:50:35.676] traffic_server DEBUG: <HttpConfig.cc:82 (http_config_enum_search)> (http_config) enum element thread | |
[Jun 4 18:50:35.685] traffic_server DEBUG: <DNS.cc:1863 (ink_dns_init)> (dns) ink_dns_init: called with init_called = 0 | |
[Jun 4 18:50:35.704] traffic_server DEBUG: <DNS.cc:289 (dns_init)> (dns) localhost=d761696b8abf | |
[Jun 4 18:50:35.705] traffic_server DEBUG: <DNS.cc:290 (dns_init)> (dns) Round-robin nameservers = 1 | |
[Jun 4 18:50:35.705] traffic_server DEBUG: <DNS.cc:296 (dns_init)> (dns) Nameserver list specified "127.0.0.1:61001" | |
[Jun 4 18:50:35.705] traffic_server DEBUG: <DNS.cc:303 (dns_init)> (dns) Nameserver list - parsing "127.0.0.1:61001" | |
[Jun 4 18:50:35.706] traffic_server DEBUG: <DNS.cc:343 (dns_init)> (dns) Adding nameserv |
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
Basline 9.1, without my changes (debug.enabled = 0): | |
| ATS Client traffic avg resp Origin traffic | |
Time req/s cons req/con mbps ms req/s cons req/con mbps | |
05/19-21:01 3998.0 58730 3.6 698.1 123.7 3031.3 1752 3.5 306.5 | |
05/19-21:02 4170.6 61763 3.8 707.7 108.5 3184.2 1974 3.6 316.7 | |
05/19-21:03 4247.9 62890 3.9 709.4 111.0 3291.3 1570 3.6 315.6 | |
05/19-21:04 4367.1 64041 4.0 712.6 118.8 3356.0 1729 3.6 320.8 | |
05/19-21:05 4307.5 65072 3.9 682.5 116.7 3332.9 1758 3.6 325.8 | |
05/19-21:06 4342.0 66189 4.0 624.5 121.4 3437.3 1748 3.6 338.3 |
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
[May 12 18:49:21.363] traffic_server DEBUG: <HttpConfig.cc:129 (load_server_session_sharing_match)> (http_config) enum mask value both | |
[May 12 18:49:21.363] traffic_server DEBUG: <HttpConfig.cc:82 (http_config_enum_search)> (http_config) enum element both | |
[May 12 18:49:21.363] traffic_server DEBUG: <HttpConfig.cc:82 (http_config_enum_search)> (http_config) enum element thread | |
[May 12 18:49:21.374] traffic_server DEBUG: <DNS.cc:1810 (ink_dns_init)> (dns) ink_dns_init: called with init_called = 0 | |
[May 12 18:49:21.403] traffic_server DEBUG: <DNS.cc:287 (dns_init)> (dns) localhost=d761696b8abf | |
[May 12 18:49:21.403] traffic_server DEBUG: <DNS.cc:288 (dns_init)> (dns) Round-robin nameservers = 1 | |
[May 12 18:49:21.403] traffic_server DEBUG: <DNS.cc:294 (dns_init)> (dns) Nameserver list specified "127.0.0.1:61001" | |
[May 12 18:49:21.403] traffic_server DEBUG: <DNS.cc:301 (dns_init)> (dns) Nameserver list - parsing "127.0.0.1:61001" | |
[May 12 18:49:21.404] traffic_server DEBUG: <DNS.cc:341 (dns_init)> (dns) Adding nameserv |
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
[May 5 18:47:12.284] traffic_server DEBUG: <HttpConfig.cc:129 (load_server_session_sharing_match)> (http_config) enum mask value both | |
[May 5 18:47:12.284] traffic_server DEBUG: <HttpConfig.cc:82 (http_config_enum_search)> (http_config) enum element both | |
[May 5 18:47:12.284] traffic_server DEBUG: <HttpConfig.cc:82 (http_config_enum_search)> (http_config) enum element thread | |
[May 5 18:47:12.295] traffic_server DEBUG: <DNS.cc:1810 (ink_dns_init)> (dns) ink_dns_init: called with init_called = 0 | |
[May 5 18:47:12.324] traffic_server DEBUG: <DNS.cc:287 (dns_init)> (dns) localhost=d761696b8abf | |
[May 5 18:47:12.324] traffic_server DEBUG: <DNS.cc:288 (dns_init)> (dns) Round-robin nameservers = 1 | |
[May 5 18:47:12.324] traffic_server DEBUG: <DNS.cc:294 (dns_init)> (dns) Nameserver list specified "127.0.0.1:61001" | |
[May 5 18:47:12.324] traffic_server DEBUG: <DNS.cc:301 (dns_init)> (dns) Nameserver list - parsing "127.0.0.1:61001" | |
[May 5 18:47:12.324] traffic_server DEBUG: <DNS.cc:341 (dns_init)> (dns) Adding nameserv |
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
[May 5 18:26:07.206] traffic_server DEBUG: <HttpConfig.cc:129 (load_server_session_sharing_match)> (http_config) enum mask value both | |
[May 5 18:26:07.207] traffic_server DEBUG: <HttpConfig.cc:82 (http_config_enum_search)> (http_config) enum element both | |
[May 5 18:26:07.207] traffic_server DEBUG: <HttpConfig.cc:82 (http_config_enum_search)> (http_config) enum element thread | |
[May 5 18:26:07.215] traffic_server DEBUG: <DNS.cc:1810 (ink_dns_init)> (dns) ink_dns_init: called with init_called = 0 | |
[May 5 18:26:07.235] traffic_server DEBUG: <DNS.cc:287 (dns_init)> (dns) localhost=d761696b8abf | |
[May 5 18:26:07.235] traffic_server DEBUG: <DNS.cc:288 (dns_init)> (dns) Round-robin nameservers = 1 | |
[May 5 18:26:07.235] traffic_server DEBUG: <DNS.cc:294 (dns_init)> (dns) Nameserver list specified "127.0.0.1:61001" | |
[May 5 18:26:07.235] traffic_server DEBUG: <DNS.cc:301 (dns_init)> (dns) Nameserver list - parsing "127.0.0.1:61001" | |
[May 5 18:26:07.235] traffic_server DEBUG: <DNS.cc:341 (dns_init)> (dns) Adding nameserv |
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
I tested on an x64 machine with 64 logical cores (Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz, | |
CentOS Linux release 7.6.1810 (Core) ). | |
records.config: | |
CONFIG proxy.config.url_remap.remap_required INT 0 | |
CONFIG proxy.config.http.cache.required_headers INT 0 | |
CONFIG proxy.config.http.push_method_enabled INT 1 | |
CONFIG proxy.config.http.server_ports STRING 8080 8081 | |
CONFIG proxy.config.diags.debug.enabled INT 0 |
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
In src/traffic_server/traffic_server.cc , at start of main(), add these lines: | |
{ | |
static volatile bool wait = true; | |
volatile int dummy = 0; | |
while (wait) | |
static_cast<void>(dummy); | |
} | |
Make and install traffic_server with --enable-debug configure script option. |
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
PIDS='' | |
REQ='GET http://127.0.0.1:61988/HOOKS HTTP/1.0\r\n' | |
REQ="${REQ}X-Request-ID: 1\r\n" | |
printf "$REQ\r\n" | nc --source-port 61999 127.0.0.1 61998 > HOOKS.out & | |
PIDS="$PIDS $!" | |
REQ='GET http://127.0.0.1:61988/CACHE HTTP/1.0\r\n' | |
REQ="${REQ}X-Request-ID: 2\r\n" | |
printf "$REQ\r\n" | nc 127.0.0.1 61997 > CACHE.out & |
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
DEBUG_LOG("IMS Cached header time %" PRId64 " vs IMS %" PRId64, static_cast<std::int64_t>(ch_time), static_cast<std::int64_t>(txn_state->ims_time)); | |
Because: | |
DEBUG_LOG("IMS Cached header time %" PRId64 " vs IMS %" PRId64, std::int64_t(ch_time), std::int64_t(txn_state->ims_time)); | |
(constructor-style casts) is not Leif-legal. |