<?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 Rizwan Zafar on Medium]]></title>
        <description><![CDATA[Stories by Rizwan Zafar on Medium]]></description>
        <link>https://medium.com/@rizwanzafar_79035?source=rss-115244262097------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CttizudK8GyDbXel</url>
            <title>Stories by Rizwan Zafar on Medium</title>
            <link>https://medium.com/@rizwanzafar_79035?source=rss-115244262097------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:09:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rizwanzafar_79035/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[How We Built a Reproducible ML Pipeline for a 5-Person Team]]></title>
            <link>https://medium.com/@rizwanzafar_79035/how-we-built-a-reproducible-ml-pipeline-for-a-5-person-team-50f108c9f780?source=rss-115244262097------2</link>
            <guid isPermaLink="false">https://medium.com/p/50f108c9f780</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[mlflow]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[dvc]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Rizwan Zafar]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 16:20:34 GMT</pubDate>
            <atom:updated>2026-11-24T16:20:34.473Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A senior developer’s guide to end-to-end MLOps: data versioning with DVC, experiment tracking with MLflow, feature engineering with Silero VAD, and a team-based training framework where every engineer works independently without breaking shared infrastructure.</em></p><p>When a commercial third-party classifier stops being good enough (wrong labels, no tuning control, no transparency), you have two choices: keep paying or build your own. We built our own, and along the way created a reproducible, team-friendly ML platform that any small data team can adopt.</p><p>This article covers the full journey: from raw collected data to a versioned, MLflow-tracked model that several engineers can iterate on independently. Each engineer works in a sandboxed folder with their own model architecture, while sharing the same data, features, and evaluation logic.</p><p>Everything here is production-first. No toy datasets. No “assume i.i.d.” shortcuts. Two hard constraints shape every decision: the model must classify within a strict real-time latency budget, and the false-positive rate on the critical class may not exceed 1%.</p><h3>1. The Problem</h3><p>Our production system needed a real-time binary classifier for short audio clips. An error in one direction wastes downstream processing. An error in the other direction drops a valid event the system should have handled. That second failure has a hard business limit: the false-positive rate on the critical class must stay at or below 1%.</p><p>The commercial service we were replacing gave us a fixed inference window and zero model transparency. We could not tune it for our data distribution. When we sampled our own data, we also found it was misclassifying silent audio. That failure mode cascades badly when silence is a valid, common signal in the real distribution.</p><p>The key rule we embedded into the system: <strong>silence must never produce a hard classification.</strong> It becomes NOTSURE, and the event is routed to a fallback handler instead of being discarded.</p><ul><li><strong>Real-time:</strong> strict latency budget</li><li><strong>≤1%:</strong> max false-positive rate</li><li><strong>Tens of thousands:</strong> of labelled audio clips</li></ul><h3>2. Pipeline Architecture</h3><p>Before writing any model code, we mapped the full pipeline. This forced us to make the boundary explicit between infrastructure (audio capture, feature extraction) and research (model choice, threshold tuning). The key insight: <strong>features must be fixed before experimentation begins.</strong> Teams cannot compare models if they are comparing features at the same time.</p><pre>Data Collection → Label Strategy → Feature Extraction → Team Training → Shadow Mode<br>  (raw audio)      (labels, DVC)    (features, DVC)       (MLflow)      (deployment)</pre><p>Each stage is a one-way gate. Raw audio never leaves the central server. Only feature parquet files travel to developer machines. Models never see raw data. This boundary protects both data privacy (audio stays on-prem) and reproducibility (everyone trains on the same frozen feature set).</p><h3>3. Data Collection and Labeling</h3><p>We collected audio clips from our production system, trimmed each to a fixed-length decision window, and tagged every file with the system’s outcome status at collection time: {EPOCH}_{BATCH_ID}_{CLIP_ID}_{STATUS}.wav.</p><h3>Why automated status tags are a terrible label</h3><p>Here is the trap every ML team falls into: treating the system’s own output status as ground truth. It is not. Some statuses are the previous classifier’s guess. Using those as training labels for a model that is supposed to replace it creates a circular dependency: you end up training a model to mimic the classifier you are replacing, not to solve the actual problem.</p><p>Our labeling strategy:</p><ul><li><strong>TRUSTED:</strong> Statuses confirmed by independent audit (human review, a downstream action, or a deterministic rule). Spot checks showed near-perfect agreement with ground truth.</li><li><strong>NOT TRUSTED:</strong> Statuses that are the previous classifier’s own output. Filtered out of training until a gold set exists.</li><li><strong>PENDING:</strong> Ambiguous statuses that plausibly belong to one class but are unverified. Held out.</li><li><strong>GOLD BATCH:</strong> A few hundred blind-labelled clips, stratified across silent, likely-class-A, and random samples. This is the foundation of the minority-class label set.</li></ul><blockquote><strong><em>Practical lesson:</em></strong><em> start with what you can trust and expand. It is better to train on 500 verified examples than 30,000 noisy ones. The model cannot tell you whether your labels are right.</em></blockquote><h3>4. Feature Engineering with Silero VAD</h3><p>We evaluated several approaches to feature extraction: raw MFCCs, pre-trained audio embeddings, and Voice Activity Detection (VAD) timing features. We chose Silero VAD for two reasons: it runs entirely in ONNX (no PyTorch in production), and it produces interpretable timing features that map directly to what a person hears.</p><p>Our feature set for each clip, extracted from the opening window:</p><pre># Silero VAD timing features — identical for every model<br>def extract_features(audio_path: Path) -&gt; dict:<br>    segments = vad.detect(audio_path, threshold=0.5)<br> <br>    active_total   = sum(s.duration for s in segments)<br>    first_onset    = segments[0].start if segments else float(&quot;nan&quot;)<br>    longest_seg    = max((s.duration for s in segments), default=0)<br>    longest_pause  = _max_gap(segments)<br>    silent_ratio   = 1.0 - active_total / clip_duration<br> <br>    return {<br>        &quot;active_total&quot;: active_total,<br>        &quot;first_onset&quot;: first_onset,<br>        &quot;longest_segment&quot;: longest_seg,<br>        &quot;longest_pause&quot;: longest_pause,<br>        &quot;silent_ratio&quot;: silent_ratio,<br>        &quot;n_segments&quot;: len(segments),<br>    }</pre><p>What do these features reveal? The two classes have clearly different timing signatures: one tends toward an early onset and long, continuous activity, while the other starts later, with shorter bursts and more pauses. Silent clips (a dropout or a brief gap) look like nothing at all, which is exactly why they should become NOTSURE instead of a hard classification.</p><p>The features are computed once, versioned with DVC, and frozen. Every team trains on the exact same parquet file, so there is no feature drift between experiments.</p><h3>5. The MLOps Stack</h3><p>We deliberately kept the stack small. Each tool does one job, and we resist adding anything that does not solve a specific current pain.</p><ul><li><strong>Git:</strong> Code versioning. Each training run logs its commit hash to MLflow.</li><li><strong>DVC:</strong> Data versioning. Features and labels are stored as pointers; raw audio never leaves the central server.</li><li><strong>MLflow 3.x:</strong> Experiment tracking, model registry, and metric comparison. Self-hosted behind authentication and HTTPS.</li><li><strong>systemd:</strong> Runs MLflow as a service with auto-restart. No Kubernetes overhead for a 5-person team.</li></ul><h3>Self-hosting MLflow at near-zero infrastructure cost</h3><p>We run MLflow 3 on a single internal server. The setup is deliberately minimal: a systemd service, an nginx reverse proxy with TLS, and MLflow&#39;s built-in basic-auth app. Setup took half a day, and ongoing maintenance is near zero.</p><pre># /etc/systemd/system/mlflow.service<br>[Unit]<br>Description=MLflow Tracking Server<br> <br>[Service]<br>User=mlflow<br>EnvironmentFile=/etc/mlflow/secrets.env<br>ExecStart=mlflow server \<br>  --host 127.0.0.1 --port 5000 \<br>  --backend-store-uri sqlite:////var/lib/mlflow/mlflow.db \<br>  --app-name basic-auth<br> <br>[Install]<br>WantedBy=multi-user.target</pre><p>Clients set three environment variables and can log experiments from any approved machine, including Colab:</p><pre>MLFLOW_TRACKING_URI=https://mlflow.example.internal<br>MLFLOW_TRACKING_USERNAME=your-username<br>MLFLOW_TRACKING_PASSWORD=your-password</pre><blockquote><strong><em>Tip:</em></strong><em> Use a properly trusted TLS certificate and restrict access to the tracking server (VPN or IP allowlist). For Colab, store the credentials as Colab secrets, clone the repo, run </em><em>dvc pull, and log runs as usual.</em></blockquote><h3>6. The Team Collaboration Model</h3><p>Five engineers. One shared dataset. Each person is free to try their own model. How do you stop everyone from stepping on each other while keeping shared evaluation standards?</p><p>Our answer: <strong>the filesystem is the team boundary.</strong> Each developer owns exactly one folder, teams/&lt;name&gt;/, containing a config.yaml, a train.py, and an optional model.py for a custom architecture. Everything outside that folder is read-only for them.</p><pre>ml_pipeline/<br>├── configs/base.yaml      # shared defaults (read-only)<br>├── src/clf/               # shared framework (read-only)<br>│   ├── data.py            # ClipDataset<br>│   ├── split.py           # TimeSplit (time-based, not random)<br>│   ├── evaluation.py      # Evaluator (the 1% constraint)<br>│   ├── models/            # @register decorator<br>│   ├── pyfunc.py          # ClassifierPyfunc (silence → NOTSURE)<br>│   └── runner.py          # ExperimentRunner<br>├── teams/<br>│   ├── dev_a/             # one developer&#39;s sandbox<br>│   ├── dev_b/             # another developer&#39;s sandbox<br>│   └── ...<br>└── data/<br>    ├── processed.dvc      # features pointer<br>    └── labels.dvc         # labels pointer</pre><p>Training is a single command, identical for everyone:</p><pre>git pull &amp;&amp; dvc pull data/processed.dvc data/labels.dvc<br>python teams/&lt;your-name&gt;/train.py</pre><p>The ExperimentRunner class handles everything that must stay consistent: loading data, applying the time split, choosing the classification threshold on validation data, scoring on the test set, and logging everything to MLflow. Teams cannot accidentally skip the threshold step or use a random split that leaks future data into training.</p><h3>The @register pattern for model pluggability</h3><p>Any team can register a custom model class without touching shared code. The @register(&quot;my-model&quot;) decorator adds it to the global model registry. The base class enforces the interface (fit(X, y) and predict_proba(X)); everything else is up to the team.</p><pre># teams/dev_a/model.py — only dev_a touches this<br>from src.clf.models import BaseModel, register<br>from sklearn.ensemble import GradientBoostingClassifier<br> <br>@register(&quot;gbm&quot;)<br>class GBMModel(BaseModel):<br>    def fit(self, X, y):<br>        self.clf = GradientBoostingClassifier(**self.params)<br>        self.clf.fit(X, y)<br> <br>    def predict_proba(self, X):<br>        return self.clf.predict_proba(X)[:, 1]</pre><h3>7. The Evaluation Framework: Business Constraints First</h3><p>Most ML tutorials optimize for accuracy or F1. We optimize for a business constraint. The only metric that decides deployment is whether the false-positive rate on the critical class stays at or below 1%. Recall on the other class is secondary: we want it as high as possible, subject to the constraint.</p><p>This reframes threshold selection. Instead of picking a threshold at the ROC curve’s knee, we scan thresholds from low to high and take the first one that satisfies the constraint on the validation set:</p><pre>def choose_threshold(self, y_val, p_val) -&gt; float:<br>    &quot;&quot;&quot;Lowest threshold whose false-positive rate is ≤ the target.&quot;&quot;&quot;<br>    for t in np.arange(0.05, 1.0001, 0.01):<br>        m = self.metrics(y_val, p_val, t)<br>        if m[&quot;false_positive_rate&quot;] &lt;= self.target_fpr:<br>            return float(t)<br>    return 1.0  # never predict the positive class</pre><p>The threshold chosen on validation is applied to the test set without re-tuning. This is critical: test results are final. If the threshold does not transfer (for example, under 1% on validation but above 2% on test), the model is not ready. The likely cause is a distribution shift between collection periods, which is why we use time-based splits, not random ones.</p><h3>Time-based splits: the only honest split for time-ordered data</h3><p>Samples collected in the same period share characteristics: same environment, same recording conditions, similar distribution. A random split leaks this correlation into the training set and produces optimistic metrics that do not hold in production.</p><p>We split by collection date: train and validation come from the first period, and test comes from a later one. The gap between periods acts as a natural out-of-distribution test.</p><h3>8. What Gets Logged to MLflow</h3><p>Every run logs exactly the same things, regardless of who ran it:</p><ul><li>All config parameters (flattened YAML → MLflow params)</li><li>Validation and test metrics: false_positive_rate, class_b_recall, n_class_a, n_class_b</li><li>The chosen threshold (from the validation set)</li><li>The model artifact (via mlflow.pyfunc), including the team&#39;s own code in code_paths</li><li>The frozen config as a config.yaml artifact</li><li>The git commit hash and team tag</li></ul><p>The pyfunc wrapper handles the silence edge case at inference time, before it can reach the underlying classifier:</p><pre>class ClassifierPyfunc(mlflow.pyfunc.PythonModel):<br>    def predict(self, context, model_input):<br>        rows = []<br>        for _, row in model_input.iterrows():<br>            # Safety rule: never hard-classify silent audio<br>            if row[&quot;silent_ratio&quot;] &gt; 0.95:<br>                rows.append(&quot;NOTSURE&quot;)<br>                continue<br>            p = self.model.predict_proba(row[self.features].values.reshape(1, -1))[0]<br>            rows.append(&quot;CLASS_B&quot; if p &gt;= self.threshold else &quot;CLASS_A&quot;)<br>        return rows</pre><h3>9. Deployment Strategy: Shadow Mode First</h3><p>We do not switch the production endpoint until the new model has run in shadow mode for at least one week. In shadow mode, the existing service keeps making the live decision while our model runs in parallel and logs what it would have decided, without acting on it.</p><p>This gives us real-world calibration before any downstream system is affected. We compare:</p><ul><li>How often do the two systems agree?</li><li>On disagreements, which one is right? (We sample and audit.)</li><li>Does our false-positive rate hold at the target on live traffic?</li></ul><p>Shadow mode is not optional. The validation-to-test threshold gap we saw in early experiments is exactly the kind of drift that only shows up on live, diverse traffic. Shadow mode is the final validation stage.</p><h3>10. Future Enhancements</h3><p>The current pipeline is intentionally minimal. Here is the roadmap, in priority order.</p><p><strong>Gold label expansion.</strong> The minority-class label set is currently built from a small blind-labelled batch. The next phase is a targeted collection for a balanced, diverse gold set. Each team member labels a subset, and a majority-vote merge builds the final ground truth.</p><p><strong>Richer audio features.</strong> VAD timing features are interpretable but limited. Candidates include spectral flatness, fundamental-frequency trajectory, and the ratio of voiced to unvoiced frames. These can be added to the feature parquet without breaking any existing model; teams simply choose which features to use in their config.</p><p><strong>Online threshold adaptation.</strong> Input characteristics change over time. A threshold chosen on one month’s data may not hold three months later. A lightweight recalibration step, triggered by a drift detector on the prediction distribution, can keep the false-positive rate stable without retraining.</p><p><strong>End-to-end neural model.</strong> The long-term goal is a small convolutional or transformer model that takes raw waveform or mel-spectrogram input and runs in ONNX within the latency budget. The timing features are a strong baseline; the neural model must beat them on the same held-out test set before it replaces them.</p><p><strong>Automated DVC pipeline.</strong> Feature and label building are currently run by hand. Converting them into a dvc.yaml pipeline means a single dvc repro regenerates everything from raw data to final parquet, with caching at each stage.</p><h3>Key Takeaways</h3><ul><li><strong>Define the business constraint first.</strong> Every engineering decision flows from the hard error-rate target. Without that number, you have no principled way to choose a threshold.</li><li><strong>Freeze features before experimenting.</strong> The only fair comparison between model architectures is on the same fixed feature set. DVC makes this easy.</li><li><strong>Use time-based splits for time-ordered data.</strong> Random splits leak within-period correlation and produce metrics that lie.</li><li><strong>The filesystem is a natural team boundary.</strong> One folder per developer, with the shared framework outside it. No code review needed for someone changing their own config.</li><li><strong>Self-host MLflow; it is not hard.</strong> One server, systemd, and nginx. Five engineers tracking experiments in an afternoon.</li><li><strong>Shadow mode before cutover.</strong> No production switch without a week of live traffic comparison.</li><li><strong>Uncertain inputs must never get a hard classification.</strong> Encode safety rules at the pyfunc layer, not inside the model.</li></ul><p>The pipeline described here is not clever. It is deliberate. The cleverness is in what we chose not to build: no Kubernetes, no feature store, no AutoML, no streaming pipeline. Five engineers, one server, one shared MLflow instance, and a folder each. That is the whole platform.</p><p>When the model is good enough to deploy, we change one line in the production config. That was the goal from day one.</p><p><em>Technical details have been generalized. Specific infrastructure identifiers, credentials, and proprietary business logic are omitted.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50f108c9f780" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do you prove a server actually rebooted?]]></title>
            <link>https://medium.com/@rizwanzafar_79035/how-do-you-prove-a-server-actually-rebooted-46752b5710a3?source=rss-115244262097------2</link>
            <guid isPermaLink="false">https://medium.com/p/46752b5710a3</guid>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Rizwan Zafar]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 00:58:08 GMT</pubDate>
            <atom:updated>2026-10-21T00:58:08.768Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lessons from building a fleet orchestrator in Rust for 120+ telecom servers</h3><p>“Exit code 255.”</p><p>That was the answer we got for almost every failure. A server that was down: 255. A wrong password: 255. A firewall dropping packets: 255. A reboot that worked perfectly and dropped the connection on purpose: also 255.</p><p>When you run operations across a fleet of more than 120 production servers, split into about 20 customer clusters of web, telephony and database machines, “something went wrong” is not an answer. Someone has to go and find out what. Server by server.</p><p>This is the story of the tool I built to fix that, and the two small ideas that made it reliable.</p><h3>The problem: everything looked the same</h3><p>Before the orchestrator, every update, configuration change or reboot worked the same way. Log in to a server. Run the step. Look at the output. Move to the next one.</p><p>That works for five servers. At a hundred, it breaks in four ways:</p><ul><li><strong>Ambiguous failures.</strong> A dead server, a rejected login and a crashed script all looked identical. Each one needed its own investigation.</li><li><strong>Reboots looked like failures.</strong> A reboot drops the connection by design, so a successful reboot was reported as broken.</li><li><strong>The inventory drifted.</strong> Retired servers stayed on the list. Moved servers appeared twice.</li><li><strong>There were no guardrails.</strong> Anyone with access could run any command as root on every server, including ones under maintenance.</li></ul><p>I didn’t need a faster way to SSH into servers. I needed a system that could tell me, for every server, <em>exactly</em> what happened and why.</p><h3>The design: one service, no agents</h3><p>The first decision was what <em>not</em> to do: install an agent on every server.</p><p>Agents are powerful, but they’re one more thing to deploy, update and debug on 120 machines. Every server already runs SSH. So the orchestrator is a single backend service, written in Rust with Axum and Tokio, that connects to servers over SSH in parallel. Operators use a React dashboard that streams live output over WebSockets.</p><p>Inside the service sit a few small, focused parts: a job engine, a failure classifier, a reboot tracker, a health monitor, an inventory reconciler, and an encrypted store with an audit log.</p><h3>The core idea: stop thinking in pass/fail</h3><p>The biggest change wasn’t technical. It was a change in what a “result” means.</p><p>Instead of reading an exit code as pass or fail, every server in a job moves through explicit states, like QUEUED → CONNECTING → REBOOT_SENT → REBOOTING → REBOOTED, and ends in exactly one final result:</p><ul><li><strong>SUCCESS</strong>: The operation finished correctly</li><li><strong>REBOOTED</strong>: Restarted and back online, downtime measured</li><li><strong>UNREACHABLE</strong>: Timed out, refused or no route</li><li><strong>AUTH_FAILED</strong>: Login rejected</li><li><strong>CONNECTION_LOST</strong>: Dropped mid-operation</li><li><strong>FAILED</strong>: Ran, but returned an error</li><li><strong>REBOOT_TIMEOUT</strong>: Went down and didn’t come back in time</li><li><strong>SKIPPED</strong>: In maintenance or not in the inventory</li></ul><p>Both the live dashboard and the final report read from these states. That one decision removed most of the “go and check by hand” work.</p><h3>Idea 1: read the error, not the exit code</h3><p>If the exit code is always 255, the information has to come from somewhere else. It’s in the error output.</p><p>The service matches known patterns in what SSH prints: “timed out”, “Connection refused”, “Permission denied”, a session closed mid-run. Each match becomes a specific result with a short reason in plain language.</p><p>This sounds almost too simple. But think about what an operator does next. “Port refused” means check the firewall or the SSH service. “Login rejected” means check credentials. Those are completely different fixes, and before, both looked like 255.</p><p>The trade-off is honest: this depends on known error messages. A new, unusual failure falls back to a generic FAILED. In practice, a small set of patterns covered almost everything.</p><h3>Idea 2: prove the reboot happened</h3><p>Here’s the question in the title. How do you know a server actually rebooted?</p><p>The obvious answer is “it went away and came back”. But that isn’t proof. A server can drop off the network for a few seconds without restarting. And a reboot command can be accepted and then never happen.</p><p>Linux gives you something better. Every time the kernel starts, it generates a fresh, random <strong>boot ID</strong>:</p><pre>$ cat /proc/sys/kernel/random/boot_id<br>3f2a8d1e-…-c91e</pre><p>So the reboot flow works like this:</p><ol><li>Connect and record the current boot ID. If the server isn’t reachable, <strong>don’t send a reboot at all</strong>.</li><li>Send the reboot in the background, so the command itself doesn’t hang.</li><li>Wait for the server to go down.</li><li>Poll until it answers again, and read the boot ID.</li><li>If the ID has <strong>changed</strong>, it’s REBOOTED, with the downtime measured. If it&#39;s the same, the reboot never happened. If the server doesn&#39;t come back within 10 minutes, it&#39;s REBOOT_TIMEOUT.</li></ol><p>A changed boot ID is proof. It turned reboots from the most annoying operation to verify into the most trustworthy one.</p><h3>The quiet parts that matter</h3><p>A few smaller decisions made the system safe to use every day.</p><p><strong>Bounded concurrency.</strong> Each server runs as its own async task, but a limit of 20 keeps load predictable. One slow server never blocks the rest, and the service never opens hundreds of connections at once.</p><p><strong>Jobs that outlive the browser.</strong> Output from every server flows into one stream, which is saved to the job log and sent to every viewer. Close the tab mid-reboot and nothing stops. Reopen it and you see the full history.</p><p><strong>An inventory that can’t wipe itself.</strong> The server list syncs from a single source of truth, adding, moving and retiring servers with a change report. If the source ever comes back empty or unreadable, a safeguard refuses to delete anything. Automation is only as good as its target list.</p><p><strong>Guardrails that don’t rely on people being careful.</strong> Operators get approved operations and tracked reboots. Only admins can run arbitrary commands or open a terminal. Clusters in maintenance are skipped automatically. Credentials are encrypted at rest and never appear in the process list.</p><h3>What it looks like</h3><p>After a job, the operator sees something like this (addresses anonymized):</p><pre>REBOOTING 6 target(s) [5 runnable, 1 skipped] - max 20 in parallel</pre><pre>================ SUMMARY ================<br>REBOOTED (3):<br>   10.0.4.11 - back online after 30s of downtime<br>   10.0.4.12 - back online after 41s of downtime<br>   10.0.4.13 - back online after 38s of downtime<br>UNREACHABLE (1):<br>   10.0.4.14 - connection timed out (server down or firewalled)<br>AUTH_FAILED (1):<br>   10.0.4.15 - login rejected<br>SKIPPED (1):<br>   10.0.4.16 - cluster is in maintenance mode<br>Total: 3 ok / 3 not ok</pre><p>No log digging. Every line says what happened and why.</p><h3>How I tested failure</h3><p>You can’t wait for production to break to test a tool like this. I used disposable Docker containers to reproduce each failure on purpose: a refused port, a timeout, a rejected login, and a connection killed halfway through an operation. A simulated restart tested the full reboot lifecycle end to end, and unit tests cover the inventory sync, including the empty-source safeguard.</p><h3>Trade-offs I’d make again (and the ones I wouldn’t)</h3><ul><li><strong>Agentless SSH</strong> meant nothing to install, but health has to be polled instead of pushed.</li><li><strong>A single service</strong> is simple to run and reason about, but it isn’t horizontally scalable yet.</li><li><strong>Classifying from output</strong> gives readable reasons, but depends on known messages.</li><li><strong>A limit of 20</strong> keeps load predictable, but very large jobs take longer.</li></ul><p>Next on the list: rolling deploys (update one server, verify, continue), durable jobs that survive a restart, SSH keys with proper host-key checking, and a job queue so several workers can share the load.</p><h3>The lesson</h3><p>The hard part of fleet automation isn’t running a command on 120 servers. Any loop can do that. The hard part is being able to trust the answer you get back.</p><p>Two small ideas got me there: <em>read the error, not the exit code</em>, and <em>prove the reboot with the boot ID</em>. Neither is complicated. Both changed how much the team could rely on the tool.</p><p><em>I’m Rizwan, a DevOps &amp; Platform Engineer working on telecom infrastructure. The full case study, with diagrams and the state machine, is on my site: </em><a href="https://rizwan441.github.io/case-studies/fleet-orchestrator/"><em>rizwan441.github.io/case-studies/fleet-orchestrator</em></a><em>. If you’re working on similar problems, I’d like to hear about it.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46752b5710a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Friendship, Change, and the Real Test of Our Times]]></title>
            <link>https://medium.com/@rizwanzafar_79035/friendship-change-and-the-real-test-of-our-times-350d7f373411?source=rss-115244262097------2</link>
            <guid isPermaLink="false">https://medium.com/p/350d7f373411</guid>
            <dc:creator><![CDATA[Rizwan Zafar]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 20:46:22 GMT</pubDate>
            <atom:updated>2025-11-30T20:46:22.166Z</atom:updated>
            <content:encoded><![CDATA[<p>There was a time when friendships were simple — warm, effortless, and free of overthinking. A small gesture, an innocent laugh, a spontaneous conversation was enough to build closeness. Relationships rested on feeling, not on frameworks. But as the world sped up, so did our thoughts. Social media clips, motivational posts, endless “deep insights” began shaping our minds in ways we barely noticed. Gradually, this new flood of ideas changed how we speak, how we think, and how we interpret the people around us. Even close friends who were once open-hearted and uncomplicated began analyzing every word, every expression, every situation as if relationships were not bonds of emotion but case studies to be examined. Learning is good, growth is necessary — but it becomes harmful when people start applying every new theory blindly to every person, every bond, and every moment. Principles are meant for people — <strong>not</strong> the other way around.</p><p>True friends guide, not judge. A good friend corrects your mistake without questioning your worth. They show direction without diminishing who you are. But today, many people learn a new idea, watch a new clip, read a new “life lesson” — and suddenly expect everyone, including old friends, to fit into their newly adopted standards. And alongside this, another behavior has become common: people who change their colors according to the situation. They act one way with you and entirely different with others. They shift tone, expression, and attitude depending on who is watching. That isn’t growth — it is performance, a mask, an inconsistency that quietly weakens the soul. Authenticity requires courage, and not everyone carries that strength. Friendship, however, thrives on acceptance — the ability to embrace someone as they are, with their flaws, softness, immaturity, and human imperfections.</p><p>This age sharpens our thinking but slowly steals our tenderness. We have become mentally wiser yet emotionally heavier. We understand people’s behaviors but forget how people <em>feel</em>. And when friendships turn into rulebooks, judgments, and constant analysis, they stop breathing. But when friendship remains a matter of the heart — with acceptance, gentle correction, and consistency — it transforms life beautifully. Not because of any theory we read, but because of the sincerity we carry within us.</p><p><strong>If I am wrong anywhere, please guide me. If there is something I should understand better, or any suggestion you think can improve my perspective, I genuinely welcome it.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=350d7f373411" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>