<?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 Vila on Medium]]></title>
        <description><![CDATA[Stories by Vila on Medium]]></description>
        <link>https://medium.com/@ask2vila?source=rss-c02ba3c1b6de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sMRzxqyo6BQD4CE5VPaEMg.jpeg</url>
            <title>Stories by Vila on Medium</title>
            <link>https://medium.com/@ask2vila?source=rss-c02ba3c1b6de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:40:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ask2vila/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[My AI Journey — The Genesis]]></title>
            <link>https://ask2vila.medium.com/my-ai-journey-the-genesis-b2a604c62f6a?source=rss-c02ba3c1b6de------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2a604c62f6a</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Vila]]></dc:creator>
            <pubDate>Mon, 27 Oct 2025 00:14:21 GMT</pubDate>
            <atom:updated>2025-10-27T13:42:30.761Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*czMyP_0z80bygz2x.png" /></figure><p><strong>Disclaimer:</strong> No humans were harmed by AI during this post.</p><h3>Let’s get started</h3><p>First of all, if you’re reading this, it’s because you’re interested in the topic — thank you for being here.</p><p>My name is <a href="https://www.linkedin.com/in/fvilarinho/">Felipe Vilarinho</a> but you can call me “Vila”. I’m a tech enthusiast, early adopter, and developer at heart (til the end).</p><p>This is the first post of a series that will detail my AI journey (what gone wrong/right) and is intended to help you begin exploring artificial intelligence by removing misconceptions and barriers.</p><p>I promise you — this will be an easy, not boring read so stay with me!</p><p>Said that, let’s begin…</p><h3>A little bit of context</h3><p>I started this journey a long time ago (2007) before the hype and without knowing I was using it.</p><p>In 2007, I joined a company that had products for IT infrastructure monitoring (network devices, servers, etc) as a SDM (Software Development Manager).</p><p>At a certain point, a key project for a major customer came up.</p><p>The goal was to predict when a monitored resource would reach critical levels (for instance, when a server’s storage consumption hits 70% or 90%) that could impact in the business.</p><p>Back then, Cloud Computing wasn´t the focus from most innovation roadmaps; workloads ran on‑premises so teams must track resource exhaustion to plan infrastructure purchases in advance.</p><p>In this way, we implemented features aligned with <a href="https://ask2vila.medium.com/it-capacity-planning-435611dc0194">Capacity Planning</a> concept.</p><p>That was my ground zero in AI!</p><h3>Lets get this straight!</h3><p>Imagine AI as the discipline of building systems that mimic human decision‑making or problem‑solving; it consists of:</p><ul><li><strong>ML (Machine Learning): </strong>A subset of AI that lets computers learn from data rather than being hard‑coded (e.g. spam filters, predictions, classification).</li><li><strong>DL (Deep Learning):</strong> A powerful subset of ML that uses deep neural networks to automatically learn hierarchical representations for tasks such as image recognition, speech synthesis, and natural‑language translation.</li><li><strong>GenAI (Generative AI):</strong> It can create new content (text, image, audio, code) that mimics the distribution of a pre-trained models (that is basically was built using ML and DL).</li></ul><p>So each successive layer builds on the one before it, like an onion!</p><h3>First Steps</h3><p>I started learning statistical analysis and algorithms, including <a href="https://en.wikipedia.org/wiki/Linear_regression">Linear Regression</a>, to know how to implement prediction of the monitored resources depletion.</p><p><strong>Fun fact:</strong> During my Computer Science studies at college, I came across this topic but didn’t give it much attention. I thought it was just another math that I’d never use again — so silly, right?</p><p>After a couple of months, I realized that analyzing data with a statistical algorithm could provide insights for continuous improvement.</p><p>Wait a minute! This is Machine Learning!</p><h3>The Process</h3><p>We chose to implement it using:</p><ul><li><a href="https://en.wikipedia.org/wiki/Java_version_history"><strong>Java 6</strong></a> (latest version back then): For many reasons. <em>1st </em>— It was the most popular language at the time and still is. <em>2nd</em> — It has a vast library of implementations (including Linear Regression in Apache Common Math). <em>3rd</em> — It was easy to find good developers in the market. <em>4th</em> — Because this is my favorite programming language :)</li><li><a href="https://oss.oetiker.ch/rrdtool/index.en.html"><strong>RRD (Round Robin Database)</strong></a>: It is an OpenSource standard, high performance data logging and graphing system for time series data that can be easily integrated in Java through <a href="https://github.com/rrd4j/rrd4j"><strong>RRD4J</strong></a> library.</li><li><a href="https://www.mysql.com/products/community/"><strong>MySQL 5 Community</strong></a><strong>:</strong> To store metadata of the monitored resources and the Capacity Planning results.</li></ul><p>So basically, the workloads collect the metrics of consumption from all monitored resources and store them in RRD at specific intervals that vary depending on the metric and resource, then calculate metrics exhaustion weekly.</p><p>Alerts could be set to anticipate depletion and warn the teams in advance.</p><p>Through dashboard graphs, teams could now visualize how the applications were behaving and their impact on the infrastructure.</p><p>Of course, I don’t have the full code, but the following example shows how it works.</p><pre>package net.vila.rrd4j;<br><br>import net.vila.rr4j.CapacityPlanning;<br>import org.rrd4j.ConsolFun;<br>import org.rrd4j.DsType;<br>import org.rrd4j.core.*;<br><br>import java.io.IOException;<br>import java.util.Date;<br>import java.util.LinkedHashMap;<br>import java.util.Map;<br><br>// Singleton class<br>public class Rrd {<br>    private static final String PATH              = &quot;metric.rrd&quot;; // RRD file name.<br>    private static final int    STEP_SECONDS      = 1; // store interval.<br>    private static final int    HEARTBEAT_SECONDS = 60; // interval to not consider data loss.<br><br>    private static Rrd rrd;<br><br>    private RrdDb rrdDb = null;<br><br>    // Default constructor.<br>    private Rrd() throws IOException {<br>        super();<br><br>        RrdDef rrdDef = new RrdDef(PATH, STEP_SECONDS); // Creates the database definition.<br>        rrdDef.addDatasource(&quot;metric&quot;, DsType.GAUGE, HEARTBEAT_SECONDS, 0, 100); // Adds a data source (metric). Please check RRD4J documentation.<br>        rrdDef.addArchive(ConsolFun.AVERAGE, 0.5, 1, 60); // Adds the data source archiving definition. Please check RRD4J documentation.<br><br>        this.rrdDb = RrdDb.getBuilder().setRrdDef(rrdDef).build();<br>    }<br><br>    public static Rrd getInstance() throws IOException {<br>        if(rrd == null)<br>            rrd = new Rrd();<br><br>        return rrd;<br>    }<br><br>    // Saves the metric value for the current timestamp.<br>    public void save(Double value) throws IOException {<br>        Date now = new Date();<br>        Sample sample = this.rrdDb.createSample();<br><br>        sample.setTime(now.getTime() / 1000); // current Unix timestamp<br>        sample.setValue(&quot;metric&quot;, value);<br>        sample.update();<br><br>        System.out.println(&quot;Update RRD with value: &quot; + value + &quot; at &quot; + now);<br>    }<br><br>    // Fetches the metric value from the current timestamp to n minutes behind.<br>    public Map&lt;Date, Double&gt; fetch(long minutesBehind) throws IOException {<br>        long end = (System.currentTimeMillis() / 1000);            // epoch seconds<br>        long start = (end - (minutesBehind * 60));<br>        FetchRequest fr = this.rrdDb.createFetchRequest(ConsolFun.AVERAGE, start, end, 300);<br>        FetchData fd = fr.fetchData();<br>        Map&lt;Date, Double&gt; result = new LinkedHashMap&lt;&gt;();<br><br>        for (int i = 0; i &lt; fd.getRowCount(); i++) {<br>            long ts = fd.getTimestamps()[i];<br>            double val = fd.getValues()[0][i];<br><br>            result.put(new Date(ts * 1000), val);<br>        }<br><br>        return result;<br>    }<br><br>    // Closes the RRD file.<br>    public void close() throws IOException {<br>        this.rrdDb.close();<br>    }<br><br>    public static void main(String[] args) throws IOException {<br>        Rrd rrd = Rrd.getInstance();<br>        double initialValue = 1d;<br><br>        for (int cont = 0; cont &lt; 60; cont++){<br>            rrd.save(initialValue);<br><br>            try {<br>                Thread.sleep(1000);<br>            }<br>            catch(InterruptedException e) {<br>                e.printStackTrace(System.out);<br><br>                break;<br>            }<br><br>            initialValue += 0.001d;<br>        }<br><br>        Date exhautionDate = CapacityPlanning.getExhaustion(2, 100d);<br><br>        rrd.close();<br>    }<br>}</pre><p>This is the output</p><pre>Update RRD with value: 1.0329999999999964 at Sun Oct 26 19:40:17 BRT 2025<br>Update RRD with value: 1.0339999999999963 at Sun Oct 26 19:40:18 BRT 2025<br>Update RRD with value: 1.0349999999999961 at Sun Oct 26 19:40:19 BRT 2025<br>Update RRD with value: 1.035999999999996 at Sun Oct 26 19:40:20 BRT 2025<br>Update RRD with value: 1.036999999999996 at Sun Oct 26 19:40:21 BRT 2025<br>Update RRD with value: 1.0379999999999958 at Sun Oct 26 19:40:22 BRT 2025<br>Update RRD with value: 1.0389999999999957 at Sun Oct 26 19:40:23 BRT 2025<br>Update RRD with value: 1.0399999999999956 at Sun Oct 26 19:40:24 BRT 2025<br>Update RRD with value: 1.0409999999999955 at Sun Oct 26 19:40:25 BRT 2025<br>Update RRD with value: 1.0419999999999954 at Sun Oct 26 19:40:26 BRT 2025<br>Update RRD with value: 1.0429999999999953 at Sun Oct 26 19:40:27 BRT 2025<br>Update RRD with value: 1.0439999999999952 at Sun Oct 26 19:40:28 BRT 2025<br>Update RRD with value: 1.044999999999995 at Sun Oct 26 19:40:29 BRT 2025<br>Update RRD with value: 1.045999999999995 at Sun Oct 26 19:40:30 BRT 2025<br>Update RRD with value: 1.0469999999999948 at Sun Oct 26 19:40:31 BRT 2025<br>Update RRD with value: 1.0479999999999947 at Sun Oct 26 19:40:32 BRT 2025<br>Update RRD with value: 1.0489999999999946 at Sun Oct 26 19:40:33 BRT 2025<br>Update RRD with value: 1.0499999999999945 at Sun Oct 26 19:40:34 BRT 2025<br>Update RRD with value: 1.0509999999999944 at Sun Oct 26 19:40:35 BRT 2025<br>Update RRD with value: 1.0519999999999943 at Sun Oct 26 19:40:36 BRT 2025<br>Update RRD with value: 1.0529999999999942 at Sun Oct 26 19:40:37 BRT 2025<br>Update RRD with value: 1.053999999999994 at Sun Oct 26 19:40:38 BRT 2025<br>Update RRD with value: 1.054999999999994 at Sun Oct 26 19:40:39 BRT 2025<br>Update RRD with value: 1.0559999999999938 at Sun Oct 26 19:40:40 BRT 2025<br>Update RRD with value: 1.0569999999999937 at Sun Oct 26 19:40:41 BRT 2025<br>Update RRD with value: 1.0579999999999936 at Sun Oct 26 19:40:42 BRT 2025<br>Update RRD with value: 1.0589999999999935 at Sun Oct 26 19:40:43 BRT 2025<br>Predicted to reach 100.0 at: <strong>2025-10-27 23:09:44</strong></pre><h4>What went well?</h4><ul><li>RRD is highly optimized for storage, resulting in low consumption and minimal latency when fetching or writing data.</li><li>It&#39;s was easy to implement and maintain the code, at least in the beginning.</li><li>We could quickly add a lot of value to the product.</li></ul><h4>What went wrong?</h4><ul><li>It is common for monitored resources to evolve (new features, etc.) over time, so new metrics are also made available. RRD can’t add new metrics after it’s created, so we had to rebuild the database regularly.</li><li>The solution doesn’t scale well as the number of metrics and monitored resources grows. It requires a lot of computing power that incurs in high costs. This was addressed years later using other technologies such as <a href="https://www.influxdata.com/">InfluxDB</a> and <a href="https://www.elastic.co/">ELK</a>.</li></ul><h3>Wrap-up</h3><p>So, this was my genesis in AI! Cool right?</p><p>In the next posts, I will peel the AI onion and dive deep in each layer!</p><p>At this point you might be thinking that AI is a powerful tool to speed up things right? If so, you’re right!</p><p>As humans, We always seek to do more, faster, and with less effort. AI isn’t a Skynet‑style takeover BS — let Arnold handle that in the movies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/0*fBvoPW8zx0LNw98X.jpg" /></figure><p>Of course we need caution and establish proper guardrails, but for me the focus is on how AI can boost my day-to-day life.</p><p>I hope you liked it and I see you in the next one!</p><h3>One last thing</h3><p>I’ll share a music playlist in every post — heavy‑metal fans will enjoy it!</p><p>This is a good one to match the topic!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fopen.spotify.com%2Fembed%2Fplaylist%2F37i9dQZF1E4rvlewuIuoru%3Futm_source%3Doembed&amp;display_name=Spotify&amp;url=https%3A%2F%2Fopen.spotify.com%2Fplaylist%2F37i9dQZF1E4rvlewuIuoru&amp;image=https%3A%2F%2Fpickasso.spotifycdn.com%2Fimage%2Fab67c0de0000deef%2Fdt%2Fv1%2Fimg%2Fradio%2Fartist%2F74Hj7BmnUXyx2udrIEIKwX%2Fen&amp;type=text%2Fhtml&amp;schema=spotify" width="456" height="352" frameborder="0" scrolling="no"><a href="https://medium.com/media/db1c3204909083576440c2572414b101/href">https://medium.com/media/db1c3204909083576440c2572414b101/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2a604c62f6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IT Capacity Planning]]></title>
            <link>https://ask2vila.medium.com/it-capacity-planning-435611dc0194?source=rss-c02ba3c1b6de------2</link>
            <guid isPermaLink="false">https://medium.com/p/435611dc0194</guid>
            <category><![CDATA[capacity-planning]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[it-monitoring]]></category>
            <dc:creator><![CDATA[Vila]]></dc:creator>
            <pubDate>Sun, 26 Oct 2025 13:48:38 GMT</pubDate>
            <atom:updated>2025-10-26T13:48:38.279Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Quick‑Start Guide</h3><p>IT capacity planning is the systematic process of ensuring that an organization’s IT infrastructure (servers, storage, network, software, cloud resources, etc.) can meet current and future business demands — without over‑ or under‑provisioning — while keeping costs under control.</p><p>It is the disciplined blend of data analytics, business insight, and technical know‑how that lets an organization:</p><p>1. **Know what it needs** (future demand). <br>2. **Know what it has** (current capacity). <br>3. **Bridge the gap** (planned actions). <br>4. **Keep tabs** (continuous monitoring).</p><p>When executed correctly, it delivers reliable performance, controlled costs, and agility — key ingredients for staying competitive in today’s fast‑moving IT landscape.</p><h3>Why It Matters</h3><ul><li><strong>Performance &amp; Availability: </strong>Customers expect 24/7 uptime and fast responses.</li><li><strong>Cost Control: </strong>Over‑provisioning wastes money; under‑provisioning can be costly to fix.</li><li><strong>Scalability:</strong> Rapid business growth (e.g., e‑commerce spikes, new services) demands elastic resources.</li><li><strong>Compliance &amp; Risk</strong>: Certain regulations require guaranteed service levels and audit trails.</li><li><strong>Strategic Planning: </strong>Align IT investments with business strategy (e.g., new product launches).</li></ul><h3>The Core Concepts</h3><ul><li><strong>Capacity:</strong> The maximum workload an IT resource can handle.</li><li><strong>Demand (or Load):</strong> The actual or projected workload (requests, transactions, data).</li><li><strong>Planning:</strong> Forecasting future demand and sizing resources to meet it in advance.</li><li><strong>Capacity Management:</strong> Ongoing monitoring, adjusting, and reporting to maintain the right balance.</li></ul><h3>The Process (3 steps workflow)</h3><h4>1. Define Objectives</h4><ul><li><strong>SLA targets:</strong> improve response time, throughput, MTTR).</li><li><strong>Business drivers:</strong> launches of new products, marketing campaign, regulatory change.</li><li><strong>Technical drivers:</strong> Code changes/refactoring, new workloads, data growth, fail-over, disaster recovery, emergency scaling, tuning, etc.</li><li><strong>Map the baseline: </strong>Current capacity/utilization (5, 25, 75, 95‑percentile), historical trend analysis (month‑over‑month, seasonality).</li><li><strong>Gap Analysis: C</strong>ompare forecasted demand against existing capacity to identify shortages, build “what‑if” scenarios to identify peak load, gradual adoption, sudden spikes, prioritize actions based on risk, cost, and strategic value.</li></ul><h4>2. Define Metrics &amp; Thresholds</h4><ul><li><strong>CPU Utilization (&lt; 70% — steady), &lt; 85% — peaks):</strong> Indicates whether servers can handle load.</li><li><strong>Memory Utilization</strong> <strong>(&lt; 70% — steady), &lt; 85% — peaks):</strong>| Prevents swapping and latency spikes.</li><li><strong>I/O Latency (&lt; 5 ms — steady, &lt; 10 ms — peaks):</strong> Database &amp; storage performance.</li><li><strong>Storage Utilization (&lt; 80% of capacity): </strong>Allows for growth and backups.</li><li><strong>Network Bandwidth (&lt; 80% of link capacity):</strong> Avoids congestion.</li><li><strong>Error Rates (&lt; 0.1%):</strong> High errors signal underlying capacity issues.</li></ul><p><strong>Note:</strong> May vary by industry, application criticality, and vendor recommendations.</p><h4><strong>3. Monitor &amp; Iterate</strong></h4><ul><li>Continuous monitoring dashboards.</li><li>Automated alerts for threshold breaches.</li><li>Regular review cycles (quarterly, monthly).</li><li>Feed back to data‑collection and forecasting steps.</li></ul><h3>Best Practices &amp; Tips</h3><ul><li><strong>Data‑Driven Decision Making:</strong> Avoids guesswork; uses actual usage trends.</li><li><strong>Collaborate Across Teams:</strong> IT, DevOps, Finance, Product Management share insights.</li><li><strong>Automate Data Collection:</strong> Reduces manual errors; ensures up‑to‑date information.</li><li><strong>Scenario‑Based Planning:</strong> Prepares for “worst‑case” and “best‑case” conditions.</li><li><strong>Use Service‑Level Agreements (SLAs) as Benchmarks:</strong> Align capacity with business expectations.</li><li><strong>Review &amp; Adjust Quarterly:</strong> Captures changes in business or technology quickly.</li><li><strong>Implement Capacity Dashboards:</strong> Gives real‑time visibility to stakeholders.</li><li><strong>Incorporate Risk Management:</strong> Quantify risk of capacity shortfalls (e.g., downtime cost).</li><li><strong>Plan for the “Long Tail”:</strong> Small, infrequent loads that can still consume resources.</li></ul><h3>Common Pitfalls</h3><ul><li><strong>Relying on Static Capacity Charts:</strong> Use dynamic dashboards &amp; trend analysis.</li><li><strong>Ignoring Latency &amp; I/O:</strong> Include these in capacity models, not just CPU &amp; memory.</li><li><strong>Planning for Peak, Not Typical Load:</strong> Balance between peak and sustained performance.</li><li><strong>Not Updating Forecasts:</strong> Keep data pipelines live; update forecasts regularly.</li><li><strong>Skipping Cross‑Team Alignment:</strong> Schedule joint reviews with business units.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=435611dc0194" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>