Re: Catch and modify OS conection

2010-12-10 Thread Victor Lucero
already working in HostDB.cc figuring a way to manually manage the hosts in the rr table, but for a good and homogeneous way for LB i think it need to be implemented somewhere near HttpSM.cc(after we got a dns response or even w/o a dns response at all (like haproxy)). (i know my english is bad

Re: Catch and modify OS conection

2010-12-09 Thread Victor Lucero
looking thought the code i found this. (HttpSM:4197) Action *pvc_action_handle = t->connect_re(this); the values like t_state.current.server->name t_state.current.server->ip got what i need . so now i need a way to configure this elements and do some scheduled health check, there is a way to a

Re: Catch and modify OS conection

2010-12-09 Thread Victor Lucero
may i suggest just add a new hook before OS conection (post cache miss and previous to pick address (http://trafficserver.apache.org/docs/v2/sdk/HTTPHooksAndTransactions.html) if there's no health servers just send to the first (so it will fail)or just send back a error. in another part of th

Re: Catch and modify OS conection

2010-12-08 Thread ming....@gmail.com
we are thinking of L7 service health checking in connection manager to OS, still investing. if you want do full balance, that is hard, I think we have many checkpoints: 1, HostDB strict RR, proxy.config.hostdb.strict_round_robin, that may make all HostDB response strict RR. 2, need a strict RR con

Re: Catch and modify OS conection

2010-12-08 Thread Victor Lucero
El 09-12-2010, a las 0:56, Leif Hedstrom escribió: > On 12/08/2010 08:45 PM, Leif Hedstrom wrote: >> On 12/08/2010 08:36 PM, Victor Lucero wrote: >>> Hi. >>> Im writing a plugin to implement Load balancing. im facing some problem >>> doing it with a remap plugin because its looks like when i al

Re: Catch and modify OS conection

2010-12-08 Thread Leif Hedstrom
On 12/08/2010 08:45 PM, Leif Hedstrom wrote: On 12/08/2010 08:36 PM, Victor Lucero wrote: Hi. Im writing a plugin to implement Load balancing. im facing some problem doing it with a remap plugin because its looks like when i alter new_host its also alter the "host" header in the http petitio

Re: Catch and modify OS conection

2010-12-08 Thread Leif Hedstrom
On 12/08/2010 08:36 PM, Victor Lucero wrote: Hi. Im writing a plugin to implement Load balancing. im facing some problem doing it with a remap plugin because its looks like when i alter new_host its also alter the "host" header in the http petition (and i dont want that) I need a way to alter

Catch and modify OS conection

2010-12-08 Thread Victor Lucero
Hi. Im writing a plugin to implement Load balancing. im facing some problem doing it with a remap plugin because its looks like when i alter new_host its also alter the "host" header in the http petition (and i dont want that) I need a way to alter the conection to Original Server and change the