Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog

Loading…

Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Docs
  • Documentation Hub
  • Technical Knowledge Library
    Runbooks & 187 Blueprints
  • Choose a Product
    VMs, Containers & Cloud
  • First Linux Server
    SSH, Firewall & Apps
  • Windows Server 2025
    BYOL & Remote Desktop
  • Remote Access
  • Troubleshooting
  • FAQ
  • All Product Guides
    29 Step-by-Step Guides
  • Cloud & SaaS Catalog
    112 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Key Vault & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • API Gateway & Cloud DNS
    Edge WAF & DNS Zones
  • Serverless, Workflows & IoT
    Functions, Queues & DAGs
  • SaaS, Governance & Vault
    Budgets & Off-Host GRS
  • Linux Systems & Kernel
    SSH, UFW, sysctl & OOM
  • Self-Hosted Apps & Stacks
    Caddy, Nextcloud & Auth
  • Build Web Apps with AI
  • Next.js and React
  • TypeScript and Node.js
  • npm and Tooling
  • Data and APIs
  • Deploy and Operate
  • Tutorials
  • Infrastructure
  • Automation & Regions
  • API Overview
  • API v1 Reference
    Endpoints & 23 Scopes
  • MCP Server
    129 AI Agent Tools
  • Swagger / OpenAPI 3.1
  • API Playground
  • Versioning & Sunset
  • API Token Security
    Authentication & Tokens
  • Instances API
    Compute Resources
  • Networking API
    Networks & Ports
  • Storage API Availability
    Volumes & Backups
  • Webhooks & Events
    Event Notifications
  • Rate Limits & Best Practices
    Throttling & Retries
  • sau CLI Reference
    34 Commands (v0.2)
  • Browser Web CLI
  • SDKs
  • Infrastructure as Code
    Terraform & Ansible
  • Code Examples
  • CLI & SDK Guides
  • Security Guides
  • Security at a Glance
  • Zero Trust Architecture
  • Live Trust Center
  • Compliance
Need help?

Loading documentation...

Documentation/data apis

Tune Valkey, Qdrant, Meilisearch, and MinIO cleanly

Harden and tune Valkey, Redis, Qdrant vector DB, Meilisearch, and MinIO in Docker with overcommit sysctls, maxmemory policies, master keys, and WAL backups.

Intermediate
30 min
Updated 2026-11-23

Deploy Ready-to-Run Infrastructure in Seconds

Linux VMs from $6/mo · Pooled Virtual Datacenters from $12/mo · Use code WELCOME20 for 20% off your first order.

Browse ServersView Pricing

Commands checked on 2026-11-23 with Valkey 8, PostgreSQL 17, Qdrant 1.12+, Meilisearch 1.11+, MinIO.

What you will have at the end

Production-safe Docker and host configurations for your state, cache, vector, search, and object-storage layer—preventing unauthenticated database exposure, Valkey OOM crashes, Qdrant mmap limits, and unbacked MinIO single-volume surprises.

Before you start

  • Host kernel parameters (vm.overcommit_memory=1, vm.max_map_count=1048576, THP disabled) applied as in Diagnose Linux OOM kills, sysctl limits, and disk spikes.
  • Docker ports bound cleanly via internal_net or 127.0.0.1 as in Fix Docker UFW bypasses with DOCKER-USER and nftables.

Steps

1. Harden Valkey / Redis with maxmemory eviction, passwords, and AOF

Unbounded Redis/Valkey instances grow until the Linux OOM killer kills the daemon. Cap maxmemory, choose an eviction policy (allkeys-lru for pure cache or volatile-lru / noeviction for session/queue stores), require authentication, and keep bind ports strictly internal:

  valkey:
    image: valkey/valkey:8-alpine
    container_name: prod-valkey
    restart: unless-stopped
    command:
      - "valkey-server"
      - "--requirepass"
      - "${VALKEY_PASSWORD}"
      - "--maxmemory"
      - "2gb"
      - "--maxmemory-policy"
      - "volatile-lru"
      - "--appendonly"
      - "yes"
      - "--appendfsync"
      - "everysec"
    volumes:
      - valkey_data:/data
    networks:
      - internal_net
    healthcheck:
      test: ["CMD-SHELL", "valkey-cli -a $${VALKEY_PASSWORD} ping | grep PONG"]
      interval: 10s
      timeout: 5s
      retries: 5

2. Configure Qdrant and Meilisearch with nofile ulimits and API keys

By default, Qdrant starts without an API key and Meilisearch runs in open development mode until MEILI_MASTER_KEY is configured. Always require strong generated secrets (openssl rand -hex 32) and raise nofile limits for memory-mapped HNSW/LMDB segments:

  qdrant:
    image: qdrant/qdrant:latest
    restart: unless-stopped
    environment:
      - QDRANT__SERVICE__API_KEY=${QDRANT_API_KEY}
    ulimits:
      nofile:
        soft: 65536
        hard: 65536
    volumes:
      - qdrant_data:/qdrant/storage
    networks:
      - internal_net

  meilisearch:
    image: getmeili/meilisearch:v1.11
    restart: unless-stopped
    environment:
      - MEILI_ENV=production
      - MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
      - MEILI_NO_ANALYTICS=true
      - MEILI_SCHEDULE_SNAPSHOT=86400
    ulimits:
      nofile:
        soft: 65536
        hard: 65536
    volumes:
      - meili_data:/meili_data
    networks:
      - internal_net

Notice MEILI_SCHEDULE_SNAPSHOT=86400 writes consistent point-in-time index snapshots daily so restores do not require re-indexing millions of records from scratch.

3. Deploy MinIO cleanly with separate API and Console security

Use MinIO for local S3-compatible object storage (WAL-G PostgreSQL continuous archiving, n8n artifacts, restic backups), and keep API (:9000) / Console (:9001) behind authenticated HTTPS proxies or private WireGuard subnets rather than 0.0.0.0:9001:

  minio:
    image: minio/minio:latest
    restart: unless-stopped
    command: server /data --console-address ":9001"
    environment:
      - MINIO_ROOT_USER=${MINIO_ROOT_USER}
      - MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
    volumes:
      - minio_data:/data
    networks:
      - internal_net
      - proxy_net
    healthcheck:
      test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
      interval: 15s
      timeout: 5s
      retries: 5

For multi-drive fault tolerance on bare-metal/multi-volume nodes, pass four mounted directories (/data1 /data2 /data3 /data4) to enable MinIO erasure coding.

Check that it works

Verify health checks, password enforcement, and memory policies from inside the compose network:

docker exec prod-valkey valkey-cli -a "$VALKEY_PASSWORD" INFO memory | grep -E 'maxmemory_human|maxmemory_policy|used_memory_human'
docker exec prod-valkey valkey-cli ping

The second command (without -a) must fail with NOAUTH Authentication required, proving unauthenticated access is blocked.

What can go wrong

  • Valkey logs WARNING overcommit_memory is set to 0! Background save may fail. Apply sudo sysctl -w vm.overcommit_memory=1 permanently in /etc/sysctl.d/99-production.conf.
  • Qdrant or Meilisearch crashes on startup with Too many open files or mmap error. Raise host vm.max_map_count=1048576 and verify container ulimits.nofile is at least 65536.
  • Meilisearch rejects searches or shows empty production mode prompt. In MEILI_ENV=production, MEILI_MASTER_KEY must be at least 16 bytes long and provided cleanly at startup.

Good practice

  • Keep valkey, qdrant, meilisearch, and postgres off public bridge ports entirely (internal_net only) and never publish unauthenticated admin consoles on 0.0.0.0.
  • Pair local databases with scheduled restic or pg_dump backups to external S3 storage via Object storage bucket or Backups and snapshots.
  • Disable analytics telemetry where desired (MEILI_NO_ANALYTICS=true) and monitor volume free space before min_free_disk triggers read-only locks.

Where to go next

  • PostgreSQL for a web app
  • Build RAG with PostgreSQL 17 and pgvector HNSW safely
  • Diagnose Linux OOM kills, sysctl limits, and disk spikes

Related Articles

Set up PostgreSQL for a web app on Ubuntu 24.04

Read more

Frequently Asked Questions

What does the Tune Valkey, Qdrant, Meilisearch, and MinIO cleanly documentation guide cover?
Harden and tune Valkey, Redis, Qdrant vector DB, Meilisearch, and MinIO in Docker with overcommit sysctls, maxmemory policies, master keys, and WAL backups. It is rated intermediate difficulty (30 min) and applies to Servers Are Up infrastructure and workflows.
Can I manage or automate these steps through the Servers Are Up dashboard, REST API v1, or MCP server?
Yes. Every Servers Are Up server includes browser-based SSH, WebRDP, and VNC console access in the dashboard, plus programmatic control via the REST API v1 (/api/v1) and hosted Model Context Protocol server (/api/mcp/v1) using a scoped Personal Access Token.

Need hands-on help with Tune Valkey, Qdrant, Meilisearch, and MinIO cleanly?

Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.

Was this article helpful?

On this page

What you will have at the endBefore you startSteps1. Harden Valkey / Redis with maxmemory eviction, passwords, and AOF2. Configure Qdrant and Meilisearch with nofile ulimits and API keys3. Deploy MinIO cleanly with separate API and Console securityCheck that it worksWhat can go wrongGood practiceWhere to go next
Need Live Commands?

Open Aria in Wide Engineering Mode for distro-specific commands, compose tweaks, and isolated environment troubleshooting.

Knowledge Library