<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="lt">
	<id>https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=HAProxy</id>
	<title>HAProxy - Versijų istorija</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=HAProxy"/>
	<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=HAProxy&amp;action=history"/>
	<updated>2026-04-19T10:32:20Z</updated>
	<subtitle>Šio puslapio versijų istorija projekte</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.eofnet.lt/w//index.php?title=HAProxy&amp;diff=8624&amp;oldid=prev</id>
		<title>\dev\null 10:38, 20 kovo 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=HAProxy&amp;diff=8624&amp;oldid=prev"/>
		<updated>2018-03-20T10:38:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Naujas puslapis&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''HAProxy''' yra nemokamas, labai greitas ir patogus sprendimas siūlantis aukšto pasiekiamumo ir resursų balancavimo bei [[proxy]] sprendimus [[TCP]] ir [[HTTP]]-paremtoms aplikacijoms. Sukurtas aptarnauti labai apkrautas internetines svetaines, aptarnauja pasaulyje labiausiai lankomas. Per metų metus tapo de-facto standartiniu [[Atviras kodas|atviro kodo]] resursų balanceriu, leidžiamu su populiariausiomis [[Linux]] distribucijomis ir naudojamas populiarausiose debesų platformose. Nesireklamuojantis įrankis, kurį žino tiktai administratoriai :-)&lt;br /&gt;
&lt;br /&gt;
* https://www.digitalocean.com/community/tutorials/how-to-use-haproxy-to-set-up-http-load-balancing-on-an-ubuntu-vps&lt;br /&gt;
* https://lesterchan.net/blog/2015/05/18/getting-real-ip-for-nginx-blocking-ip-on-haproxy/&lt;br /&gt;
&lt;br /&gt;
== WebSocket ==&lt;br /&gt;
 frontend websocket&lt;br /&gt;
 bind *:8890 ssl crt /etc/ssl/org/fullchain.pem&lt;br /&gt;
    tcp-request inspect-delay 500ms&lt;br /&gt;
    tcp-request content accept if HTTP&lt;br /&gt;
    default_backend nodes_websocket&lt;br /&gt;
 frontend mysql&lt;br /&gt;
 backend nodes_websocket&lt;br /&gt;
 mode http&lt;br /&gt;
 option forwardfor&lt;br /&gt;
    option http-server-close&lt;br /&gt;
    option forceclose&lt;br /&gt;
    no option httpclose&lt;br /&gt;
    cookie SRVNAME insert&lt;br /&gt;
    server app2 10.36.36.9:8890 cookie S2 check&lt;br /&gt;
    server app3 10.36.36.10:8890 cookie S3 check&lt;br /&gt;
&lt;br /&gt;
== Nginx ==&lt;br /&gt;
&lt;br /&gt;
 frontend nginx&lt;br /&gt;
    bind *:80&lt;br /&gt;
    bind *:443 ssl crt /etc/ssl/org/fullchain.pem&lt;br /&gt;
    redirect scheme https if !{ ssl_fc } # jeigu ne https force redirectas&lt;br /&gt;
    mode http&lt;br /&gt;
    maxconn 10000&lt;br /&gt;
    stats enable # statistikos&lt;br /&gt;
    stats uri /haproxy?stats&lt;br /&gt;
    # stats realm Strictly\ Private&lt;br /&gt;
    # stats auth A_Username:YourPassword&lt;br /&gt;
    # stats auth Another_User:passwd&lt;br /&gt;
    default_backend nodes_nginx&lt;br /&gt;
 backend nodes_nginx&lt;br /&gt;
    mode http&lt;br /&gt;
    balance roundrobin&lt;br /&gt;
    option forwardfor&lt;br /&gt;
    cookie SRVNAME insert&lt;br /&gt;
    server app2 10.36.36.9:80 cookie S2 check&lt;br /&gt;
    server app3 10.36.36.10:80 cookie S3 check&lt;br /&gt;
    http-request set-header X-Forwarded-Port %[dst_port]&lt;br /&gt;
    http-request add-header X-Forwarded-Proto https if { ssl_fc }&lt;br /&gt;
&lt;br /&gt;
== MySQL ==&lt;br /&gt;
MySQL serveriuose sukuriam haproxy_check vartotoja:&lt;br /&gt;
 uninstall plugin validate_password;&lt;br /&gt;
 create user 'haproxy_check'@'10.36.36.8';&lt;br /&gt;
&lt;br /&gt;
 frontend mysql&lt;br /&gt;
   bind 10.36.36.8:3307&lt;br /&gt;
   mode tcp&lt;br /&gt;
   default_backend nodes_mysql&lt;br /&gt;
 backend nodes_mysql&lt;br /&gt;
 mode tcp&lt;br /&gt;
 option tcpka&lt;br /&gt;
        option mysql-check user haproxy_check&lt;br /&gt;
 balance roundrobin&lt;br /&gt;
 server app2 10.36.36.9:3306 check&lt;br /&gt;
 server app3 10.36.36.10:3306 check&lt;br /&gt;
&lt;br /&gt;
[[Category:Tinklas]]&lt;br /&gt;
[[Category:HA]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Duomenų bazės]]&lt;/div&gt;</summary>
		<author><name>\dev\null</name></author>
	</entry>
</feed>