Re: Q about mobile browser detection
We use http://wurfl.sourceforge.net/ with great successŠ Morten On 10/04/12 07.14, Willy Tarreau w...@1wt.eu wrote: Hi Aleks, On Tue, Apr 10, 2012 at 01:22:36AM +0200, Aleksandar Lazic wrote: Hi, have anybody a haproxy solution which detects the common mobile browsers, like http://detectmobilebrowsers.mobi/ I think about a acl rule, thanks for any Ideas. Stupid question, why not simply use the user-agent ? Willy
Re: Q about mobile browser detection
Hi Willy, On 10-04-2012 07:14, Willy Tarreau wrote: Hi Aleks, On Tue, Apr 10, 2012 at 01:22:36AM +0200, Aleksandar Lazic wrote: Hi, have anybody a haproxy solution which detects the common mobile browsers, like http://detectmobilebrowsers.mobi/ I think about a acl rule, thanks for any Ideas. Stupid question, why not simply use the user-agent ? Because the UA is not uniq on the devices. I thought similar but after a little digging into this issue I was surprised how difficult this issue could be. Cheers Aleks
Re: nice wiki doc of haproxy
On 09-04-2012 20:37, Willy Tarreau wrote: Hi Aleks, On Mon, Apr 09, 2012 at 06:38:42PM +0200, Aleksandar Lazic wrote: Some questions for open discussion. 1.) Where is the right page for the 'HTMLFIED' document? http://haproxy.1wt.eu/#docs = separate page such as doc.haproxy.1wt.eu ... We need to ensure we can automate the update so that when the doc is updated on the primary site, it's automatically updated on Cyril's site too. 2.) automatic build or a separate build option 'make htmldoc' I prefer the second way We could think about merging Cyril's work in the contrib dir of haproxy, but since he expects some fast development on it soon, this would slow the process a lot. Better let his project evolve quickly and maybe at some point we could take a snapshot of it into haproxy so that make htmldoc works out of the box. I have now added the used python modules page https://github.com/cbonte/haproxy-dconv/wiki/Python-Modules so that the pre requirements are more clear ;-) I think that at some point, some users might be interested in implementing other backends such as asciidoc which creates very nice outputs for a wide variety of formats (including man and pdf). But let's not start to divert the nice job from what it currently is :-) Full Ack. Cheers Aleks
Re: nice wiki doc of haproxy
Hi, On 10-04-2012 15:07, Aleksandar Lazic wrote: On 09-04-2012 20:37, Willy Tarreau wrote: Hi Aleks, On Mon, Apr 09, 2012 at 06:38:42PM +0200, Aleksandar Lazic wrote: Some questions for open discussion. 1.) Where is the right page for the 'HTMLFIED' document? http://haproxy.1wt.eu/#docs = separate page such as doc.haproxy.1wt.eu ... We need to ensure we can automate the update so that when the doc is updated on the primary site, it's automatically updated on Cyril's site too. 2.) automatic build or a separate build option 'make htmldoc' I prefer the second way We could think about merging Cyril's work in the contrib dir of haproxy, but since he expects some fast development on it soon, this would slow the process a lot. Better let his project evolve quickly and maybe at some point we could take a snapshot of it into haproxy so that make htmldoc works out of the box. I have now added the used python modules page https://github.com/cbonte/haproxy-dconv/wiki/Python-Modules so that the pre requirements are more clear ;-) I have created a tgz for the style and js files. http://www.none.at/haproxy-style-js.tar.gz how about to link to twitter or add the files to the repo. Cheers Aleks
Re: nice wiki doc of haproxy
Hi all, Le 09/04/2012 20:37, Willy Tarreau a écrit : Hi Aleks, On Mon, Apr 09, 2012 at 06:38:42PM +0200, Aleksandar Lazic wrote: Some questions for open discussion. 1.) Where is the right page for the 'HTMLFIED' document? http://haproxy.1wt.eu/#docs = separate page such as doc.haproxy.1wt.eu ... We need to ensure we can automate the update so that when the doc is updated on the primary site, it's automatically updated on Cyril's site too. I think I'll configure a bot soon (this week-end ?) to automatically : - fetch daily configuration.txt from HTTP for haproxy 1.4 and 1.5 (or maybe from the git repository for 1.5). - generate documentation for both with the last converter snapshot - push the documentations on the web site. 2.) automatic build or a separate build option 'make htmldoc' I prefer the second way We could think about merging Cyril's work in the contrib dir of haproxy, but since he expects some fast development on it soon, this would slow the process a lot. Better let his project evolve quickly and maybe at some point we could take a snapshot of it into haproxy so that make htmldoc works out of the box. I agree, It's maybe too soon to think about that but as soon as we get something really stable, it will be feasable. Btw, do you prefer us to use a dedicated mailing list for this development or is it OK to post here ? I can create one (again this will probably be this week-end) if you want. I think that at some point, some users might be interested in implementing other backends such as asciidoc which creates very nice outputs for a wide variety of formats (including man and pdf). But let's not start to divert the nice job from what it currently is :-) I thought about that, but I don't see it in a near future ;-) -- Cyril Bonté
Re: nice wiki doc of haproxy
Le 09/04/2012 22:28, Baptiste a écrit : Hey, I'd be keen to participate as well. Good news, happy to read this ;-) Thanks ! A few months I started my own script to do the same, using awk (https://github.com/bedis/haproxy_doc_to_html). cheers -- Cyril Bonté
Re: nice wiki doc of haproxy
Hi Aleksandar, Le 10/04/2012 16:28, Aleksandar Lazic a écrit : I have created a tgz for the style and js files. http://www.none.at/haproxy-style-js.tar.gz how about to link to twitter or add the files to the repo. Well, actually, they already are...but currently only in the gh-pages branch. I agree it will need to be in the master branch too ;-) -- Cyril Bonté
Re: nice wiki doc of haproxy
Hi Cyril, On Tue, Apr 10, 2012 at 10:01:53PM +0200, Cyril Bonté wrote: I think I'll configure a bot soon (this week-end ?) to automatically : - fetch daily configuration.txt from HTTP for haproxy 1.4 and 1.5 (or maybe from the git repository for 1.5). - generate documentation for both with the last converter snapshot - push the documentations on the web site. Fine! When you're done, feel free to send me the definitive URLs and I'll happily add them to the main site. Btw, do you prefer us to use a dedicated mailing list for this development or is it OK to post here ? I can create one (again this will probably be this week-end) if you want. Better use the same, since the users of your doc are here :-) There is not too much traffic here so it's not a problem at all. And since some updates might require minor changes to the original format, it even more makes sense to have this discussion here. Cheers, Willy
haproxy keeps sending traffic to an offine backend
Hi, I didn't found and answer for this so I'm trying this mailing list. I'm using haproxy on freebsd and I'm getting a very strange behavior when a backend is offline I can see it offline on haproxy stats but connections keep being forwarded to offline member and failing to the client(checked with tcpdump). When I remove the offline member, I get a normal status again. tested on many 1.4.x version, including latest 1.4.20 Thanks for any help att, Marcello Coutinho
Re: haproxy keeps sending traffic to an offine backend
Hey, Have you enabled check on the server line? Are you using force-persist option? Could you at least share with us your HAProxy version and the backend configuration being in trouble? Regards On Wed, Apr 11, 2012 at 5:32 AM, Marcello Coutinho marcellocouti...@gmail.com wrote: Hi, I didn't found and answer for this so I'm trying this mailing list. I'm using haproxy on freebsd and I'm getting a very strange behavior when a backend is offline I can see it offline on haproxy stats but connections keep being forwarded to offline member and failing to the client(checked with tcpdump). When I remove the offline member, I get a normal status again. tested on many 1.4.x version, including latest 1.4.20 Thanks for any help att, Marcello Coutinho
Re: haproxy keeps sending traffic to an offine backend
On Wed, Apr 11, 2012 at 07:39:48AM +0200, Baptiste wrote: Hey, Have you enabled check on the server line? Are you using force-persist option? or simply option persist which was used to do that a long time ago ? Could you at least share with us your HAProxy version and the backend configuration being in trouble? That would obviously help ! Willy