*** opendevreview has joined #openstack-lbaas | 01:54 | |
opendevreview | likui proposed openstack/octavia-lib master: Reuse the docs deps to benefit from constraints https://review.opendev.org/c/openstack/octavia-lib/+/794364 | 01:54 |
---|---|---|
*** gthiemon1e has joined #openstack-lbaas | 02:54 | |
*** gthiemonge has quit IRC | 02:59 | |
*** xgerman has quit IRC | 04:54 | |
*** andrewbonney has joined #openstack-lbaas | 07:18 | |
*** dulek has joined #openstack-lbaas | 09:57 | |
*** osmanlic- has joined #openstack-lbaas | 10:14 | |
*** osmanlicilegi has quit IRC | 10:17 | |
opendevreview | Arkady Shtempler proposed openstack/octavia-tempest-plugin master: Adding 3 traffic based test cases. https://review.opendev.org/c/openstack/octavia-tempest-plugin/+/755326 | 10:17 |
*** dulek has quit IRC | 10:23 | |
*** osmanlic- has quit IRC | 11:20 | |
*** osmanlicilegi has joined #openstack-lbaas | 11:20 | |
*** gregraka has joined #openstack-lbaas | 13:06 | |
*** gregraka has quit IRC | 13:48 | |
*** gregraka has joined #openstack-lbaas | 13:48 | |
*** dulek has joined #openstack-lbaas | 14:43 | |
opendevreview | George Melikov proposed openstack/octavia master: Use `ip route` for VIP configure with `onlink' https://review.opendev.org/c/openstack/octavia/+/794602 | 14:46 |
*** dulek has quit IRC | 15:22 | |
*** gthiemon1e is now known as gthiemonge | 16:20 | |
johnsom | Hmm, these: https://github.com/openstack/octavia/tree/master/devstack/samples/multinode may be out of date now that devstack is doing some things in parallel | 17:10 |
opendevreview | Gregory Thiemonge proposed openstack/python-octaviaclient master: Improve the client performance on large clouds https://review.opendev.org/c/openstack/python-octaviaclient/+/792688 | 20:25 |
*** spatel has joined #openstack-lbaas | 21:10 | |
spatel | johnsom hey! | 21:11 |
spatel | How are you? | 21:11 |
johnsom | spatel Hi, keeping overly busy as usual. You? | 21:11 |
spatel | good! i may need your help to make my haproxy use multiple source address in backend | 21:12 |
johnsom | Ha, ok. We don't have that feature in the code right now, so I assume you are doing this manually? | 21:12 |
spatel | not octavia | 21:13 |
spatel | I am talking about manual way | 21:13 |
johnsom | What? Not Octavia??? There is no such thing. grin | 21:14 |
*** andrewbonney has quit IRC | 21:14 | |
spatel | I have customer want to launch app which has 1 million connection so thinking to build haproxy by hand and add bunch or IPs | 21:14 |
johnsom | Ok, so you will want 2.x version of HAProxy, multiple cores and yeah, will need some source addresses | 21:15 |
spatel | my issue is my haproxy running out of local port range :( | 21:15 |
johnsom | http://cbonte.github.io/haproxy-dconv/2.2/configuration.html#4.2-source | 21:15 |
spatel | I am reading your old bookmark which you said use source address | 21:15 |
spatel | does this source address map with one-o-one ? | 21:16 |
spatel | like source1---->web1 | 21:16 |
spatel | source2--->web2 | 21:16 |
spatel | something like that? | 21:16 |
johnsom | No, you don't have to do that. You can, by configuring them on the server lines, but you don't have to | 21:17 |
johnsom | Can you paste back the bookmark, so I can be on the same page as what I said before? grin | 21:17 |
*** gregraka has quit IRC | 21:19 | |
spatel | oh so you are saying just add 10 source address in config and it will do automatically round-robin ? | 21:19 |
johnsom | Ah, yeah, the page I probably linked you to has multiple server lines, each with a source IP | 21:19 |
johnsom | This will definitely balance more predictably | 21:20 |
spatel | http://cbonte.github.io/haproxy-dconv/2.2/configuration.html#source%20%28Alphabetically%20sorted%20keywords%20reference%29 | 21:20 |
spatel | https://www.irccloud.com/pastebin/0167bHKh/ | 21:20 |
spatel | In last example i am assuming 127.0.0.1 is going to be my web-servers IPs rights? | 21:21 |
johnsom | Yeah, that should work fine as you pasted. | 21:21 |
johnsom | Yes, that would be the web server addresses | 21:21 |
spatel | does this look like one-o-one mapping ? - server app1 127.0.0.1:1883 source 192.168.8.1 | 21:22 |
spatel | i have 5 web servers so should i add 5 ips only? | 21:23 |
johnsom | You can repeat the source addresses across the web server addresses. | 21:23 |
johnsom | If you want. | 21:23 |
johnsom | Well, here are a couple of things to consider: | 21:24 |
johnsom | 1. Set your "sysctl net.ipv4.ip_local_port_range to be wider than the default. | 21:24 |
johnsom | 2. Take into account that some source ports are going to be used for the health checks. | 21:25 |
spatel | i already expend my local_port range to max :) | 21:26 |
johnsom | 3. Take the number of source ports you have available, minus the health checks, then divide up the 1 million concurrent connections across that. | 21:26 |
spatel | still running out of port because of millions of connection | 21:26 |
johnsom | That should give you an idea of how many source IPs you will need. | 21:26 |
*** gregraka has joined #openstack-lbaas | 21:28 | |
*** xgerman has joined #openstack-lbaas | 21:28 | |
spatel | i am installing haproxy to test it out | 21:28 |
johnsom | Ok. Also, if you aren't using the latest haproxy, check your http-reuse settings: | 21:32 |
johnsom | http://cbonte.github.io/haproxy-dconv/2.2/configuration.html#4-http-reuse | 21:32 |
johnsom | HAProxy can piple connections, so you don't have to always re-open another TCP port to service requests | 21:33 |
spatel | hmm | 21:34 |
johnsom | https://www.haproxy.com/blog/http-keep-alive-pipelining-multiplexing-and-connection-pooling/ | 21:34 |
spatel | that is good point | 21:35 |
spatel | i will sure test that out | 21:35 |
spatel | johnsom already started building lab :) - https://ibb.co/tsBRDfq | 21:41 |
*** spatel has quit IRC | 22:15 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!