Disk Layout for Models, Caches, and Indexes
Put models, embedding caches, git clones, and SQLite indexes on separate paths so a full cache cannot bury the OS on a single Lucknow VPS disk.
NetBay journal
30 practical AI Infrastructure articles from Netbay Engineering — written for operators running Linux and Windows VPS in India.
30 articles in this topic
Put models, embedding caches, git clones, and SQLite indexes on separate paths so a full cache cannot bury the OS on a single Lucknow VPS disk.
Put nginx, a tool-gated agent, a loopback 7B, Redis, and a cheap remote API on one Lucknow VPS so private prompts stay local and hard tasks can escalate.
Choose a 3B, 7B, or 8B Q4 GGUF for an 8 GB Intel Xeon Platinum VPS using RAM, context, and tokens per second — not the Hugging Face model card.
Log tokens, encode_ms, generate_ms, and RSS on every CPU inference request so you see saturation and OOM risk before the OOM killer ever fires.
Probe llama-server with /health, stop nginx from sending new work, and SIGTERM the GGUF process only after in-flight CPU generates finish safely.
Snapshot vector indexes, prompt packs, and router YAML on a Lucknow VPS, skip re-downloadable weights, and rehearse a restore before the disk fills.
Put token buckets and nginx limit_req in front of a local CPU inference API so one client cannot OOM the box or stall every other RAG query.
Terminate TLS with nginx, keep llama-server on loopback, and proxy OpenAI-shaped routes without exposing a CPU model port to the public internet.
Hash the model name plus UTF-8 bytes into a local SQLite cache so repeat search queries skip the encoder and the generator on a Lucknow VPS.
Measure prefill and decode tokens per second on Intel Xeon Platinum CPU so a Lucknow VPS queue depth matches real 7B throughput, not marketing.
Run one CPU generation at a time, queue the rest, and avoid llama.cpp parallel slots that multiply KV cache RAM on an 8 GB CPU VPS in Lucknow.
Treat user text as hostile, gate every tool with an allowlist and confirmation, and never let a model-chosen URL or shell string reach your Lucknow VPS.