Re: dynamic return address and lua creates server
Hi, Aleksandar Lazic wrote on 05.07.2017: > Hi, > I have here a use case where the haproxy is in between a > couchdb/oracle/dynamic connect backend. For couchbase the suggested solution was to use hostnames in couchbase. https://forums.couchbase.com/t/couchbase-behind-haproxy-tcp-proxy/13416 > This means that we have the following flow. > > APP Driver -> haproxy TCP mode -> Backend >| >-> Backend send a IP to connect -> App Driver should connect to IP > over haproxy tcp setup > > Does anyone had such a request in the past? > > I think that could be a nice usecase for lua & server-template? > > Idea and pseudo code. > > ### > global >lua-load parse_and_analyze_couch.lua > > frontend tcp > ... > backend couch > tcp-response inspect-delay 1s > tcp-response content use-service lua.parse_and_analyze_couch > ... > ### > parse_and_analyze_couch.lua > > core.register_service("parse_and_analyze_couch", "tcp", function(???) >--- some lua code >--- create server with backend from analyzed proto > end) > > > What do you think? -- Best Regards Aleks
Re: dynamic return address and lua creates server
Hi, Anyone any idea? Regards Aleks Aleksandar Lazic wrote on 05.07.2017: > Hi, > I have here a use case where the haproxy is in between a > couchdb/oracle/dynamic connect backend. > This means that we have the following flow. > APP Driver -> haproxy TCP mode -> Backend >| >-> Backend send a IP to connect -> App Driver should connect to IP > over haproxy tcp setup > > Does anyone had such a request in the past? > I think that could be a nice usecase for lua & server-template? > Idea and pseudo code. > ### > global >lua-load parse_and_analyze_couch.lua > > frontend tcp > ... > backend couch > tcp-response inspect-delay 1s > tcp-response content use-service lua.parse_and_analyze_couch > ... > ### > parse_and_analyze_couch.lua > > core.register_service("parse_and_analyze_couch", "tcp", function(???) >--- some lua code >--- create server with backend from analyzed proto > end) > > What do you think? -- Best Regards Aleks
dynamic return address and lua creates server
Hi, I have here a use case where the haproxy is in between a couchdb/oracle/dynamic connect backend. This means that we have the following flow. APP Driver -> haproxy TCP mode -> Backend | -> Backend send a IP to connect -> App Driver should connect to IP over haproxy tcp setup Does anyone had such a request in the past? I think that could be a nice usecase for lua & server-template? Idea and pseudo code. ### global lua-load parse_and_analyze_couch.lua frontend tcp ... backend couch tcp-response inspect-delay 1s tcp-response content use-service lua.parse_and_analyze_couch ... ### parse_and_analyze_couch.lua core.register_service("parse_and_analyze_couch", "tcp", function(???) --- some lua code --- create server with backend from analyzed proto end) What do you think? -- Best Regards Aleks