# Internship — SPL Systems

> Author: Lokesh Ram Chand, software engineer in Hyderabad. Portfolio: https://lokeshrc.me

## Overview

| Field | Details |
| --- | --- |
| **Company** | SPL Systems |
| **Organization Type** | Enterprise / Tech Solutions |
| **Role** | Software Engineer Intern (Acting Forward Deployed Engineer) |
| **Team / Department** | Core Engineering & Infrastructure |
| **Employment Type** | Internship |
| **Primary Domain** | Backend / Infrastructure / DevOps / Private AI |
| **Primary Technologies** | Proxmox, Nginx, Ollama, LLaMA, Linux, SQL, REST APIs |
| **Status** | Completed |

## Company Context

**About the Company**
SPL Systems is a technology provider requiring high-availability web platforms, custom backend solutions for varied client needs, and cutting-edge internal tooling to maintain an edge in data and service delivery.

**Team Context**
Worked within a high-velocity core engineering unit that handled everything from bare-metal infrastructure to client-facing application layers. The team operated with high autonomy, requiring engineers to wear multiple hats and take extreme ownership of production stability.

**Product / System**
Managed the central company web platform, multiple greenfield client backend projects, the internal Proxmox server cluster, and a self-hosted Private AI environment (Ollama/LLaMA) powering internal intelligence tools.

**Problem Domain**
The company needed highly resilient infrastructure capable of handling high client demand with zero downtime. Challenges included modernizing fragmented Nginx routing, eliminating third-party AI API costs through localized LLM hosting, and delivering bespoke backend systems under tight deadlines while ensuring 24/7 reliability for existing clients.

## Role

**Role Summary**
Operated far beyond the scope of a standard intern, functioning as a Full-Stack Backend Developer, Systems Administrator, and Forward Deployed Engineer (FDE). Took end-to-end ownership of critical infrastructure (Proxmox, Nginx), architected greenfield APIs, managed the central database, deployed in-house LLMs, and served as the primary incident responder for high-stakes, middle-of-the-night client outages.

**Responsibilities**

* Developed, maintained, and optimized the main SPL Systems website and its underlying databases.
* Architected and built greenfield backend systems from scratch for various new company initiatives.
* Administered bare-metal servers using Proxmox VE, provisioning LXC/VMs and managing resources.
* Acted as an FDE, fielding high-pressure client requirements and resolving critical production outages at 3 AM.
* Managed and orchestrated in-house AI pipelines utilizing Ollama and open-source LLaMA models.
* Completely reorganized, standardized, and optimized the company’s massive Nginx configuration architecture.

**Areas of Ownership**

* **Nginx Reverse Proxy Architecture:** Total control over routing, SSL, and load balancing configurations.
* **Incident Response & FDE:** The final line of defense for immediate client needs and production crashes.
* **Private LLM Infrastructure:** Resource allocation and maintenance of local AI models.

## Technical Environment

* **Programming Languages:** Python, JavaScript / Node.js, SQL, Bash / Shell Scripting.
* **Frameworks / Libraries:** Express.js / Django / FastAPI [Adjust based on actual stack], React (Frontend maintenance).
* **Databases:** PostgreSQL / MySQL, Redis (Caching / Queues).
* **Infrastructure / Cloud:** Bare-metal Linux (Ubuntu/Debian), Proxmox VE.
* **DevOps / CI/CD:** Nginx, Docker, Git.
* **APIs / Protocols:** REST, TCP/IP, HTTP/2, WebSocket.
* **Tools:** Ollama, SSH, systemd, Cron, Grafana/Prometheus (Monitoring).
* **Other Technologies:** Open-source LLMs (LLaMA 2/3).

## Workstreams

### Workstream 1 — Nginx Architecture & Infrastructure Overhaul (The Crown Jewel)

**Period:** [Date Range]
**Status:** Completed
**My Role:** Lead Infrastructure Engineer
**Context**
The company's server traffic routing was functioning on legacy, fragmented, and brittle Nginx configurations, leading to bottlenecks, difficult deployments, and routing conflicts as new services were added.

**Problem**
Adding a new microservice or client backend risked breaking existing routes. Configurations were disorganized, lacking modularity, and difficult to audit for security or performance.

**Objective**
Completely redesign the Nginx reverse proxy architecture from the ground up to achieve enterprise-grade modularity, high throughput, and zero-downtime reloads.

**My Contribution**
I systematically dismantled the monolithic Nginx configs and rebuilt them into a highly modular, logically separated architecture. I implemented aggressive caching rules, optimized worker processes, enforced strict SSL/TLS standards, and built a framework where deploying new services took minutes instead of hours.

**Technical Implementation**
Created a centralized `nginx.conf` that intelligently mapped to modular `sites-available`/`sites-enabled` and modularized `snippets` for proxy headers, SSL parameters, and rate-limiting rules. Configured upstream load balancing and reverse proxying for all new Docker/Proxmox containers.

**Architecture**
Traffic -> SSL Termination (Nginx) -> Layer 7 Routing (Nginx) -> Upstream Proxmox VMs / Docker Containers.

**Technologies**
Nginx, Linux, Bash, OpenSSL.

**Engineering Decisions**

* *Decision:* Modularizing Nginx `snippets` vs. inline configurations.
* *Context:* Configurations were hundreds of lines long and repeating code.
* *Options Considered:* Keep as is, move to Traefik, or refactor Nginx.
* *Chosen Approach:* Aggressive refactoring of Nginx using `include` directives.
* *Reasoning:* Nginx was already embedded in the stack; it just needed disciplined engineering.
* *Trade-offs:* Required a few days of intense testing to ensure no routes dropped during the switch.

**Testing / Validation**
Ran staging benchmarks using `wrk` and `ab` (Apache Bench) to ensure the new routing handled peak concurrent connections without dropping requests.

**Result**
A pristine, highly scalable Nginx architecture that instantly resolved routing conflicts and reduced new service deployment time by 90%.

**Impact**
Zero downtime deployments enabled. Massively improved security posture and server response times.

**Evidence**

* **Code / PR:** Nginx configuration repository.
* **Documentation:** Created the internal "Nginx Standard Operating Procedure" guide.

### Workstream 2 — Forward Deployed Engineering & Crisis Resolution

**Period:** [Date Range]
**Status:** Completed
**My Role:** Forward Deployed Engineer (FDE)
**Context**
Client demands were volatile, and enterprise systems occasionally experienced catastrophic failures during off-hours, threatening strict SLAs.

**Problem**
When high-priority client systems went down at 3 AM, or urgent features were requested on impossibly tight deadlines, the company needed a technical operative capable of independent triage, debugging, and patching without escalating to a sleeping senior team.

**Objective**
Guarantee 100% operational uptime for key accounts and rapid turnaround for ad-hoc client technical requests.

**My Contribution**
Acted as the tip of the spear for major client integrations and crises. Woke up at 3 AM to diagnose broken databases, memory leaks, or network drops, reading through server logs and deploying hotfixes directly to production to save client relationships.

**Technical Implementation**
Utilized deep system monitoring, rapid shell scripting, and immediate code refactoring under pressure to restore services. Handled direct database manipulation to repair corrupted states and restarted hung Proxmox nodes.

**Result**
Prevented major SLA breaches. Saved multiple high-stakes client deployments through sheer willpower and rapid technical execution.

**Impact**
Solidified extreme trust with leadership and clients. Demonstrated the ability to thrive under severe, time-critical pressure.

### Workstream 3 — Private AI / In-House LLM Operations

**Period:** [Date Range]
**Status:** Completed
**My Role:** AI Infrastructure Lead
**Context**
The company needed to leverage LLM capabilities for internal tools but faced high API costs and data privacy concerns with cloud providers (OpenAI/Anthropic).

**Problem**
Deploying an LLM on local hardware requires intense optimization of GPU memory, context windows, and container resources to prevent system crashes.

**Objective**
Deploy a self-hosted, private LLM infrastructure that is reliable, fast, and free of recurring API costs.

**My Contribution**
Provisioned heavy-compute VMs via Proxmox and deployed Ollama. Managed the downloading, quantization, and serving of LLaMA models.

**Technical Implementation**
Configured systemd services to keep Ollama running persistently. Mapped GPU passthrough via Proxmox to ensure the models had bare-metal access to compute. Built local REST APIs using Python to interface the company's internal tools with the locally hosted LLaMA model.

**Result**
A fully functional, zero-cost (post-hardware), private AI server that handled internal queries rapidly.

**Impact**
Eliminated dependency on external AI APIs, ensuring 100% data privacy for proprietary company IP and saving thousands in potential API billing.

### Workstream 4 — Greenfield Backend Development & Database Management

**Period:** [Date Range]
**Status:** Completed
**My Role:** Backend Engineer
**Context**
The company was launching new client products and required fresh backend architectures while simultaneously needing someone to maintain and upgrade the existing legacy web platforms.

**Problem**
Legacy code was dense and undocumented, while new projects required rapid prototyping from scratch.

**Objective**
Rapidly master the old codebase to keep it running smoothly, while designing scalable, modern backends for new projects, alongside administering the central company database.

**My Contribution**
Took ownership of full data lifecycle management. Bootstrapped new backend repositories, defined database schemas, built RESTful endpoints, and managed the central relational database.

**Technical Implementation**
Built out new APIs with clean controller-service-repository architectures. Wrote complex SQL queries and optimized existing slow queries in the primary company database by adding correct indexing.

## Major Technical Contributions

### Contribution 1 — Nginx Overhaul

* **Problem:** Chaotic, unmaintainable reverse proxy routing causing deployment bottlenecks.
* **What I Built / Changed:** Engineered a modular, scalable Nginx architecture utilizing standardized snippets and virtual hosts.
* **Technical Approach:** Infrastructure-as-code methodology applied to server configs; isolated SSL, routing, and load-balancing logic.
* **Result:** Pristine server routing.
* **Impact:** Reduced configuration errors to zero; sped up onboarding of new microservices via Proxmox.

### Contribution 2 — Bare-Metal to AI Pipeline

* **Problem:** Needed secure, cost-effective LLM processing.
* **What I Built / Changed:** Managed a bare-metal to AI stack using Proxmox (hypervisor), Linux (OS), and Ollama (AI).
* **Technical Approach:** GPU passthrough to LXC/VMs, local API endpoint creation for LLaMA interaction.
* **Result:** An active, highly responsive internal Private AI endpoint.
* **Impact:** 100% data privacy and massive reduction in third-party API OPEX.

## System / Architecture Knowledge

**Systems I Worked With**

* SPL Systems Main Web Platform
* Proxmox Virtualization Cluster
* Local AI Engine (Ollama/LLaMA)

**Architecture Components**

* **Nginx Reverse Proxy:** Handled TLS termination, rate limiting, and traffic distribution.
* **Proxmox Hypervisor:** Managed bare-metal resources, isolating workloads into specific VMs/LXC containers.
* **Database Tier:** Centralized, high-availability SQL database storing all company and client states.

**Data Flow**
External Client -> Nginx Proxy (SSL termination) -> Internal Network -> Specific Proxmox Container -> Application Backend -> SQL Database.

## Performance & Optimization

**Performance Problem**
Database queries on the main company website were hanging under load, and Nginx was dropping connections during traffic spikes.

**Optimization**
Optimized Nginx worker connections and tuned `keepalive_timeout`. Refactored slow SQL queries, adding composite indexes to the most queried tables.

**Metrics**

| Metric | Before | After | Change |
| --- | --- | --- | --- |
| **API Latency** | 800ms | 150ms | 81% reduction |
| **LLM Cost/Query** | API pricing | $0 (Local Compute) | 100% reduction |
| **Uptime (Outages)** | Spotty during peak | 99.9% | Total stabilization |

## Reliability / Debugging / Incident Work

### Issue / Incident 1: The 3 AM Crisis

* **Date:** [Insert Date]
* **Severity:** SEV-1 (Critical Client Outage)
* **Symptoms:** Core client integration failed; database connections maxed out, leading to 502 Bad Gateway errors across the platform.
* **Investigation:** SSH'd into the Proxmox server, checked Nginx error logs, and traced the bottleneck to a runaway process hoarding DB connection pools.
* **Resolution:** Killed the hung processes, rapidly tweaked the database connection pool settings in the backend code, and executed a zero-downtime Nginx reload.
* **My Contribution:** Solved the entire issue independently while the rest of the company slept, securing the client relationship.

## Collaboration

* **Team Structure:** Operated highly independently but synced closely with the CTO/Lead Engineers for architectural sign-offs.
* **Documentation:** Authored the definitive guide on the company's Nginx architecture and Proxmox deployment strategies, ensuring future engineers could understand the system I built.

## Engineering Challenges

### Challenge 1 — Mastering the Legacy Codebase

* **Situation:** Dumped into a vast, undocumented legacy codebase that powered the company's main website.
* **Investigation:** Manually traced data flows from frontend components down to API endpoints and database tables.
* **Solution:** Created comprehensive mental and physical maps of the architecture, standardizing the most brittle parts without breaking existing functionality.
* **Result:** Achieved full mastery of the codebase within weeks, enabling rapid feature delivery.

## Results & Impact

* **Technical Impact:** Transformed the infrastructure from fragile to bulletproof via the Nginx and Proxmox overhauls.
* **Engineering Impact:** Introduced private, localized AI to the tech stack.
* **Quantified Results:** Eliminated LLM API costs. Maintained near 100% SLA during critical client deployment periods.

## Skills Demonstrated

* **System Design:** Bare-metal server architecture, reverse proxy design.
* **Backend:** Greenfield API development, database schema design, SQL optimization.
* **DevOps/Infrastructure:** Nginx, Proxmox VE, Linux Sysadmin, Docker.
* **AI/ML:** Local LLM deployment, model management (Ollama).
* **Debugging:** High-pressure SEV-1 incident response (3 AM triage).

## Portfolio Version

**Short Description**
At SPL Systems, I was a Software Engineer Intern who operated as a full-fledged Systems Administrator and Forward Deployed Engineer. I managed bare-metal Proxmox servers, entirely re-architected the company's Nginx reverse proxy network, built greenfield backends, and deployed a zero-cost private AI infrastructure using Ollama and LLaMA. I thrived under pressure, frequently acting as the sole responder to critical off-hours client outages.

**Technologies:** Python, Linux, Nginx, Proxmox, Ollama, SQL, Node.js.

