<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Arkadiy Balagan on Medium]]></title>
        <description><![CDATA[Stories by Arkadiy Balagan on Medium]]></description>
        <link>https://medium.com/@ethaniel?source=rss-2085f41a61d5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Q3u7HeKT5ZNFTlcI.jpg</url>
            <title>Stories by Arkadiy Balagan on Medium</title>
            <link>https://medium.com/@ethaniel?source=rss-2085f41a61d5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 16:34:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ethaniel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Koi Pond — before and after installing the ozone machine (10g/hour)]]></title>
            <link>https://ethaniel.medium.com/koi-pond-before-and-after-installing-the-ozone-machine-10g-hour-66da83c45e2d?source=rss-2085f41a61d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/66da83c45e2d</guid>
            <category><![CDATA[koi-ponds]]></category>
            <category><![CDATA[koi]]></category>
            <category><![CDATA[ozone]]></category>
            <dc:creator><![CDATA[Arkadiy Balagan]]></dc:creator>
            <pubDate>Fri, 08 Jan 2021 14:27:23 GMT</pubDate>
            <atom:updated>2021-01-08T14:29:05.294Z</atom:updated>
            <content:encoded><![CDATA[<h3>Koi Pond — before and after installing the ozone machine (10g/hour)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OIW7zvJ4WL9IiW2QVv9_sQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*padY1fRgGnVxpZcBaJA1Dw.png" /></figure><p>In less than 2 weeks the water has cleared completely.</p><p>The trick is to feed the ozone into the longest pipe, so it gets mixed with water properly. In our case, we use the return pipe which is 10 meters long and is connected to a pump right after the filtering system.</p><p>The outlet from the ozone generator is placed inside the pump, so the ozone does not escape into the air.</p><p><a href="https://th.aliexpress.com/item/32885246906.html?spm=a2g0s.12269583.0.0.b68e6452nUZ7tT">Here</a> is the link to the model that we used. Not a bad result for less than $200.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66da83c45e2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deal with sudden high traffic spikes between mysql (Percona) servers]]></title>
            <link>https://ethaniel.medium.com/how-to-deal-with-sudden-high-traffic-spikes-between-mysql-percona-servers-ad6af84b6316?source=rss-2085f41a61d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad6af84b6316</guid>
            <category><![CDATA[high-traffic]]></category>
            <category><![CDATA[percona]]></category>
            <category><![CDATA[blob]]></category>
            <category><![CDATA[replication]]></category>
            <category><![CDATA[highload]]></category>
            <dc:creator><![CDATA[Arkadiy Balagan]]></dc:creator>
            <pubDate>Mon, 15 Apr 2019 17:42:24 GMT</pubDate>
            <atom:updated>2019-04-15T17:42:24.236Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I’ve noticed a sudden surge of traffic going between Master-Master Percona mysql servers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*pmmEt58W_VpMGS1XjNr_zQ.png" /></figure><p>During those traffic spikes all pages were extremely slow because the backend mysql servers were obviously overloaded.</p><p>The culprit was stupid. We have a special table which contains longblob binary fields. This same table also has a separate text field which is updated several times per second (we analyze the blobs and dump the analysis data into this text field).</p><p>What I didn’t know that every time I updated this field, the whole row (including the 5MB blob in one particular case) was synchronised between all the servers, overloading our network and disks.</p><p>So, lesson learned — either keep blobs in a separate table. Or do not update the row with a big blob very often.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad6af84b6316" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[solved] curl uses only one IP when a host has a multiple IPs returned by DNS in a round robin…]]></title>
            <link>https://ethaniel.medium.com/solved-curl-uses-only-one-ip-when-a-host-has-a-multiple-ips-returned-by-dns-in-a-round-robin-d9151848d20c?source=rss-2085f41a61d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9151848d20c</guid>
            <category><![CDATA[centos]]></category>
            <category><![CDATA[random]]></category>
            <category><![CDATA[ip]]></category>
            <category><![CDATA[curl]]></category>
            <category><![CDATA[dns]]></category>
            <dc:creator><![CDATA[Arkadiy Balagan]]></dc:creator>
            <pubDate>Wed, 21 Nov 2018 08:21:52 GMT</pubDate>
            <atom:updated>2018-11-21T08:21:52.532Z</atom:updated>
            <content:encoded><![CDATA[<h3>[solved] curl uses only one IP when a host has a multiple IPs returned by DNS in a round robin fashion</h3><p>I used to send curl requests to a host which had 2 IP addresses returned by the DNS server in round robin fashion. However, for some reason curl used only one of the IP addresses and never the second one.</p><p>I tried both, from inside php and the command line — same result.</p><p>However — dig, nslookup, gethostbyaddr always returned IP addresses in a random fashion.</p><p>Turned out that there is some bug in the libcurl which had to do with ipv6 being enabled on my machines.</p><p>I disabled ipv6 by adding this to /etc/sysctl.conf</p><blockquote>net.ipv6.conf.all.disable_ipv6 = 1<br>net.ipv6.conf.default.disable_ipv6 = 1<br>net.ipv6.conf.lo.disable_ipv6 = 1</blockquote><p>and running:</p><blockquote>sysctl -w net.ipv6.conf.all.disable_ipv6=1<br>sysctl -w net.ipv6.conf.default.disable_ipv6=1<br>sysctl -w net.ipv6.conf.lo.disable_ipv6=1</blockquote><p>Solved. Now curl load balances it’s requests between all the IP addresses returned by the DNS server for the host.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9151848d20c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[solved] Random high latency spikes in haproxy and nginx backends]]></title>
            <link>https://ethaniel.medium.com/solved-random-high-latency-spikes-in-haproxy-and-nginx-backends-b58c6d159ac2?source=rss-2085f41a61d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b58c6d159ac2</guid>
            <category><![CDATA[spike]]></category>
            <category><![CDATA[lag]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[haproxy]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Arkadiy Balagan]]></dc:creator>
            <pubDate>Tue, 20 Nov 2018 19:43:16 GMT</pubDate>
            <atom:updated>2018-11-20T19:43:16.834Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve noticed that 1% of requests going from haproxy to the nginx backend were too slow (10–20 seconds compared to 100 milliseconds).</p><p>This happened randomly.</p><p>Fixed by adding this to sysctl.conf:</p><blockquote>net.ipv4.tcp_sack=1<br>net.ipv4.tcp_timestamps=1<br>net.ipv4.tcp_window_scaling=1</blockquote><p>And by doing this (so I don’t have to reboot for changes to happen):</p><blockquote>sysctl -w net.ipv4.tcp_sack=1<br>sysctl -w net.ipv4.tcp_timestamps=1<br>sysctl -w net.ipv4.tcp_window_scaling=1</blockquote><p>As you can see in the graphs below, this solved the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*potfNyuddvqRePxvUJEH5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*AD19SSq6YCpwvFnJjtc5Sg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b58c6d159ac2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Disabling xdebug module in PHP made everything faster by 50%]]></title>
            <link>https://ethaniel.medium.com/disabling-xdebug-module-in-php-made-everything-faster-by-50-9d77d610b99b?source=rss-2085f41a61d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d77d610b99b</guid>
            <dc:creator><![CDATA[Arkadiy Balagan]]></dc:creator>
            <pubDate>Tue, 20 Nov 2018 19:35:48 GMT</pubDate>
            <atom:updated>2018-11-20T19:44:40.697Z</atom:updated>
            <content:encoded><![CDATA[<p>Pages now load within 30ms instead of 60ms. Average load on the servers dropped by 50% as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*X5F0e0--WttDta1UAklkfg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d77d610b99b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why it’s a good idea to turn off uPnP on the router]]></title>
            <link>https://ethaniel.medium.com/why-its-a-good-idea-to-turn-off-upnp-on-the-router-a82fbc50b2da?source=rss-2085f41a61d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a82fbc50b2da</guid>
            <dc:creator><![CDATA[Arkadiy Balagan]]></dc:creator>
            <pubDate>Mon, 05 Jun 2017 08:32:56 GMT</pubDate>
            <atom:updated>2017-06-05T08:32:56.447Z</atom:updated>
            <content:encoded><![CDATA[<p>I own a TP-Link TL-R480T+ load balancer. For some reason, when it’s on, I loose packets every 5–10 seconds (or packet response time jumps too high).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a82fbc50b2da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>