{
  "service": {
    "name": "atlas-kv",
    "environment": "production",
    "version": "3.8.2",
    "region": "us-east-1",
    "listen": {
      "host": "0.0.0.0",
      "port": 7400,
      "protocol": "https"
    }
  },
  "cluster": {
    "id": "kv-prod-01",
    "replicationFactor": 3,
    "consistency": {
      "defaultRead": "quorum",
      "defaultWrite": "quorum",
      "allowStaleReads": false
    },
    "nodes": [
      {
        "id": "node-a1",
        "address": "10.24.8.11:7401",
        "zone": "us-east-1a",
        "roles": [
          "leader",
          "storage"
        ],
        "status": "healthy",
        "capacity": {
          "totalBytes": 2199023255552,
          "usedBytes": 1288490188800
        }
      },
      {
        "id": "node-b1",
        "address": "10.24.16.12:7401",
        "zone": "us-east-1b",
        "roles": [
          "follower",
          "storage"
        ],
        "status": "healthy",
        "capacity": {
          "totalBytes": 2199023255552,
          "usedBytes": 1245540515840
        }
      },
      {
        "id": "node-c1",
        "address": "10.24.24.13:7401",
        "zone": "us-east-1c",
        "roles": [
          "follower",
          "storage"
        ],
        "status": "degraded",
        "capacity": {
          "totalBytes": 2199023255552,
          "usedBytes": 1675037245440
        }
      }
    ]
  },
  "storage": {
    "engine": "rocksdb",
    "dataDirectory": "/var/lib/atlas-kv/data",
    "walDirectory": "/var/lib/atlas-kv/wal",
    "compression": "zstd",
    "cache": {
      "maxBytes": 8589934592,
      "shards": 16
    },
    "compaction": {
      "strategy": "leveled",
      "maxConcurrentJobs": 4,
      "targetFileSizeBytes": 134217728
    }
  },
  "security": {
    "authentication": {
      "enabled": true,
      "provider": "oidc",
      "issuer": "https://identity.example.com",
      "audiences": [
        "atlas-kv-api",
        "atlas-kv-admin"
      ]
    },
    "tls": {
      "enabled": true,
      "minimumVersion": "TLSv1.3",
      "certificateFile": "/etc/atlas-kv/tls/server.crt",
      "privateKeyFile": "/etc/atlas-kv/tls/server.key",
      "clientCertificateRequired": true
    }
  },
  "limits": {
    "maxKeyBytes": 4096,
    "maxValueBytes": 10485760,
    "maxBatchOperations": 1000,
    "requestTimeoutMs": 5000,
    "rateLimits": [
      {
        "scope": "tenant",
        "requestsPerSecond": 5000,
        "burst": 10000
      },
      {
        "scope": "client",
        "requestsPerSecond": 500,
        "burst": 1000
      }
    ]
  },
  "observability": {
    "metrics": {
      "enabled": true,
      "path": "/metrics",
      "port": 9090
    },
    "tracing": {
      "enabled": true,
      "exporter": "otlp",
      "endpoint": "https://telemetry.example.com:4317",
      "sampleRate": 0.1
    },
    "logging": {
      "level": "info",
      "format": "json",
      "fields": {
        "service": "atlas-kv",
        "cluster": "kv-prod-01"
      }
    }
  },
  "maintenance": {
    "snapshot": {
      "enabled": true,
      "intervalSeconds": 21600,
      "retentionCount": 14,
      "destination": "s3://atlas-kv-backups/production/kv-prod-01"
    },
    "healthChecks": [
      {
        "name": "storage",
        "intervalSeconds": 10,
        "timeoutSeconds": 3
      },
      {
        "name": "replication",
        "intervalSeconds": 5,
        "timeoutSeconds": 2
      }
    ]
  }
}