Re: Using haproxy together with NFS

2018-08-01 Thread Lucas Rolff
Hi michael, Without the send-proxy, the client IP in the export would have to be the haproxy server in that case right? The issue there is then, that I end up with all clients having access to haproxy can suddenly mount all shares in nfs, which I would like to prevent There’s still different

Re: Using haproxy together with NFS

2018-08-01 Thread Michael Ezzell
On Wed, Aug 1, 2018, 16:00 Lucas Rolff wrote: > > I use the “send-proxy” to let the NFS Server see the actual source IP, > instead of the haproxy machine IP. > You'll probably need remove that. Unless the destination service explicitly supports the Proxy Protocol (in which case, it must not, by

Using haproxy together with NFS

2018-08-01 Thread Lucas Rolff
Hi guys, I’ve been playing around today with two NFS servers (each on their own storage array), synced by Unison to provide a bit higher uptime. To allow NFS clients to use a single IP, I’ve configured an haproxy install (1 now, two when in prod), where I want to talk over tcp mode to the NFS

Re: Possibility to modify PROXY protocol header

2018-08-01 Thread bjun...@gmail.com
2018-07-31 17:56 GMT+02:00 James Brown : > I think if you use the `http-request set-src` directive it'll populate the > PROXY headers in addition to the internal logging > > On Fri, Jul 27, 2018 at 7:05 AM bjun...@gmail.com wrote: >> >> Hi, >> >> is there any possibilty to modify the client ip

Re: Bug when passing variable to mapping function

2018-08-01 Thread Jarno Huuskonen
Hi, On Tue, Jul 17, Emeric Brun wrote: > > On Fri, 29 Jun 2018 at 07:15, Jarno Huuskonen > > wrote: > >> On Thu, Jun 28, Jarno Huuskonen wrote: > >>> I think this is the commit that breaks map_regm in this case: > >>> b5997f740b21ebb197e10a0f2fe9dc13163e1772 (MAJOR: threads/map: Make > >>>

Re: Performance of using lua calls for map manipulation on every request

2018-08-01 Thread Thierry Fournier
Hi, The Lua overhead is very low. On my laptop I reach easyly 18 000 HTTP requests by seconds with basic Lua processing. I guess that your code will not have significant impact on perfs. Note that the function: > txn.http:req_get_headers()["host"][0] Is consume more CPU than