[ 
https://issues.apache.org/jira/browse/TS-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

mohan_zl updated TS-654:
------------------------

    Attachment: Passive-L7-Health-Check.patch

Imitating the http state machine, we write a l7 health check module.
Trying our best not to change current codes, we create a directory named 
healthcheck in proxy/http, and implement the frame in this. 
Of course, we change or add some codes in exsiting files:
(1) In iocore/hostdb, we change files I_HostDBProcessor.h, P_HostDBProcessor.h, 
and HostDB.cc. We add some members in HostDBInfo, and add or change some 
functions in the three files for supporting health check
(2) In proxy/http, in order to implement a passive health check, we change the 
logic of function process_hostdb_info in HttpSM.cc
(3) Add info in relevant Makefile.am files

If you want to do health check for special origin server, you must write the 
relevant config information in healthcheck.config file, otherwise, 
traffic_server will not check health with that os. When you make install ts, 
the healthcheck.config file already exsits in the same place with 
records.config file, and some notes in this file tell you how to write config 
info for special origin server. 

When one client request is first coming and requesting info from the special 
origin server, http state machine will do dns resolve with the hostname of 
origin server and insert the result in hostdb, and immediately do health check 
with that origin server. Next time, because the hostname info is already in 
hostdb, the following client request will not cause immediate health check 
until the hostdb info is stale or bad in health, but periodically checking 
health with that os has been started.

> request for support of Layer7 http health checking for Origin Servers
> ---------------------------------------------------------------------
>
>                 Key: TS-654
>                 URL: https://issues.apache.org/jira/browse/TS-654
>             Project: Traffic Server
>          Issue Type: New Feature
>          Components: HTTP
>    Affects Versions: 2.1.5
>            Reporter: Zhao Yongming
>         Attachments: Passive-L7-Health-Check.patch
>
>
> this ticket is for the L7 health checking project: 
> https://cwiki.apache.org/confluence/display/TS/HttpHealthCheck

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to