Header and Transformation
Hello All, I am new to ATS, wrote small plugin for ATS, My Configuration is: Client ---> ATS ---> Origin Server I want to edit Origin Server Response along with Header. (In case of Header, irrespective of MAX Age set by Origin Server, I want to send 'Cache-Control" parameter as a "No-Cache"). I am using remap to forward incoming client request to Origin Server and Sending back response of Origin server to Client. I facing problem here, I am using transformation to edit Origin Server response and forwarding it to Client, when I edit (Origin Server Response) Header with "No-Cache", ATS does not Cache Request. I have few questions: 1. In Event READ_RESPONSE, I am hooking in transformation for HTTP Response Edit, which is working fine. However, it does not go to SEND_RESPONSE after this, is it problem in my code or it has been designed this way? 2. Can I edit Client Request Header in READ_RESPONSE event, I observed I can edit Server Response Header in this event and which is going to client but parameters like Cache-Control, In my case I am editing it to "No-Cache" and ATS does not cache this request, is it correct behavior? 3. Is it anyway possible to use transformation to edit HTTP response and edit Client Request Header as well for same request? Thank you & Regards, shekhar shekh...@aol.in
Re: [POLL] UTF-8
+1 Thanks, On Tue, Dec 4, 2012 at 4:19 PM, Igor Galić wrote: > > Hey folks, > > I was wondering how many of you use UTF-8 as your default > Character encoding and would like to see Traffic Server > use it by default as well. > > I have a tiny patchset which switches from the old default > latin1 to the utf-8 up on my github: > >https://github.com/igalic/trafficserver/tree/utf-8 > > I'll merge into trunk (not 3.2.x any time soon) if there's > appropriate interest. > > So long, > > -- i >
Re: [POLL] UTF-8
+1 On Wed, Dec 5, 2012 at 7:09 AM, Leif Hedstrom wrote: > On 12/4/12 2:19 AM, Igor Galić wrote: > >> Hey folks, >> >> I was wondering how many of you use UTF-8 as your default >> Character encoding and would like to see Traffic Server >> use it by default as well. >> >> > Just to be clear, this is for content generated by ATS itself, right ? > Such as, bodies as part of an error message. If so, +1. > > We clearly should not be changing encoding of proxied content :). > > -- Leif > > -- Eric Ahn Mobile : +82-10-9536-3338
Re: ATS raw disk problem
On 12/4/12 3:37 PM, Aleksandrs Andrijenko wrote: Hi, I think the problem is resolved, 3TB disks works also. The problem is in memory compression, the problem I faced first time and segmentation faults. If you enable CLFUS algorithm with or without compression (fastlz i tested with) it gives segmentation faults with raw drives pool bigger than 2x1TB I'm currently running LRU algorithm without compression and it works perfectly with any size and any amount of disks. Great! Can you please file a Jira ticket for this, in case you haven't yet? -- Leif
Re: ATS raw disk problem
Hi, I think the problem is resolved, 3TB disks works also. The problem is in memory compression, the problem I faced first time and segmentation faults. If you enable CLFUS algorithm with or without compression (fastlz i tested with) it gives segmentation faults with raw drives pool bigger than 2x1TB I'm currently running LRU algorithm without compression and it works perfectly with any size and any amount of disks. P.S. I use 3.3.1 dev from master trunk. On Dec 4, 2012, at 11:14 PM, Leif Hedstrom wrote: > On 12/4/12 9:19 AM, Aleksandrs Andrijekno wrote: >> >> Hi, >> >> I do have 2 setups of ATS now, one is 10x3TB another is 10x2TB >> >> So far with 2x10TB is good. >> >> I think could be 3TB disks problem, or enabled memory compression! >> >> > > I remember a fix related to >2TB disks, and also one for caches over 16TB > total. I believe the bugs were TS-1319 and TS-1163. Which version of ATS are > you running? > > Everyone has such powerful systems these days, except the devs... ;) > > Cheers, > > -- Leif >
Re: ATS raw disk problem
On 12/4/12 9:19 AM, Aleksandrs Andrijekno wrote: Hi, I do have 2 setups of ATS now, one is 10x3TB another is 10x2TB So far with 2x10TB is good. I think could be 3TB disks problem, or enabled memory compression! I remember a fix related to >2TB disks, and also one for caches over 16TB total. I believe the bugs were TS-1319 and TS-1163. Which version of ATS are you running? Everyone has such powerful systems these days, except the devs... ;) Cheers, -- Leif
Re: [POLL] UTF-8
On 12/4/12 2:19 AM, Igor Galić wrote: Hey folks, I was wondering how many of you use UTF-8 as your default Character encoding and would like to see Traffic Server use it by default as well. Just to be clear, this is for content generated by ATS itself, right ? Such as, bodies as part of an error message. If so, +1. We clearly should not be changing encoding of proxied content :). -- Leif
Re: Unable to load regex_remap.so ATS 3.3.1
On 12/3/12 11:29 PM, Vladyslav Bachynskyi wrote: Thank you Brad! It's working now. I was sure, that I need to load plugin first to make it work. Well, if you use the regex_map directive (which is built into the core), you don't need the regex_remap plugin. The plugin is there to do rules based on the path / query params of the request, whereas regex_map only works on the Host: header. -- Leif
Re: UTF-8
+1 :) On Tue, Dec 4, 2012 at 5:06 PM, Hung Nguyen wrote: > +1 > > > On Tue, Dec 4, 2012 at 7:30 PM, Aleksandrs Andrijekno > wrote: > >> +1 >> >> -Original Message- >> From: Luca Rea [mailto:luca@contactlab.com] >> Sent: dinsdag 4 december 2012 10:24 >> To: users@trafficserver.apache.org; d...@trafficserver.apache.org >> Subject: RE: UTF-8 >> >> +1 >> >> -Original Message- >> From: Igor Galić [mailto:iga...@apache.org] >> Sent: martedì 4 dicembre 2012 10:19 >> To: users@trafficserver.apache.org; dev >> Subject: [POLL] UTF-8 >> >> >> Hey folks, >> >> I was wondering how many of you use UTF-8 as your default Character >> encoding and would like to see Traffic Server use it by default as well. >> >> I have a tiny patchset which switches from the old default >> latin1 to the utf-8 up on my github: >> >>https://github.com/igalic/trafficserver/tree/utf-8 >> >> I'll merge into trunk (not 3.2.x any time soon) if there's appropriate >> interest. >> >> So long, >> >> -- i >> >> >> >> >> > > > -- > --- > Hung. Nguyen Van > Website: http://ethicconsultant.com > > >
Re: UTF-8
+1 On Tue, Dec 4, 2012 at 7:30 PM, Aleksandrs Andrijekno wrote: > +1 > > -Original Message- > From: Luca Rea [mailto:luca@contactlab.com] > Sent: dinsdag 4 december 2012 10:24 > To: users@trafficserver.apache.org; d...@trafficserver.apache.org > Subject: RE: UTF-8 > > +1 > > -Original Message- > From: Igor Galić [mailto:iga...@apache.org] > Sent: martedì 4 dicembre 2012 10:19 > To: users@trafficserver.apache.org; dev > Subject: [POLL] UTF-8 > > > Hey folks, > > I was wondering how many of you use UTF-8 as your default Character > encoding and would like to see Traffic Server use it by default as well. > > I have a tiny patchset which switches from the old default > latin1 to the utf-8 up on my github: > >https://github.com/igalic/trafficserver/tree/utf-8 > > I'll merge into trunk (not 3.2.x any time soon) if there's appropriate > interest. > > So long, > > -- i > > > > > -- --- Hung. Nguyen Van Website: http://ethicconsultant.com
RE: UTF-8
+1 -Original Message- From: Luca Rea [mailto:luca@contactlab.com] Sent: dinsdag 4 december 2012 10:24 To: users@trafficserver.apache.org; d...@trafficserver.apache.org Subject: RE: UTF-8 +1 -Original Message- From: Igor Galić [mailto:iga...@apache.org] Sent: martedì 4 dicembre 2012 10:19 To: users@trafficserver.apache.org; dev Subject: [POLL] UTF-8 Hey folks, I was wondering how many of you use UTF-8 as your default Character encoding and would like to see Traffic Server use it by default as well. I have a tiny patchset which switches from the old default latin1 to the utf-8 up on my github: https://github.com/igalic/trafficserver/tree/utf-8 I'll merge into trunk (not 3.2.x any time soon) if there's appropriate interest. So long, -- i
RE: UTF-8
+1 -Original Message- From: Igor Galić [mailto:iga...@apache.org] Sent: martedì 4 dicembre 2012 10:19 To: users@trafficserver.apache.org; dev Subject: [POLL] UTF-8 Hey folks, I was wondering how many of you use UTF-8 as your default Character encoding and would like to see Traffic Server use it by default as well. I have a tiny patchset which switches from the old default latin1 to the utf-8 up on my github: https://github.com/igalic/trafficserver/tree/utf-8 I'll merge into trunk (not 3.2.x any time soon) if there's appropriate interest. So long, -- i
[POLL] UTF-8
Hey folks, I was wondering how many of you use UTF-8 as your default Character encoding and would like to see Traffic Server use it by default as well. I have a tiny patchset which switches from the old default latin1 to the utf-8 up on my github: https://github.com/igalic/trafficserver/tree/utf-8 I'll merge into trunk (not 3.2.x any time soon) if there's appropriate interest. So long, -- i