{
  "service": {
    "name": "atlas-kv",
    "environment": "production",
    "version": "3.8.2",
    "region": "ca-central-1"
  },
  "cluster": {
    "id": "kv-prod-ca-01",
    "replicationFactor": 3,
    "consistency": {
      "defaultRead": "quorum",
      "defaultWrite": "quorum",
      "allowStaleReads": false
    },
    "nodes": [
      {
        "id": "node-ca-01a",
        "host": "10.42.1.11",
        "port": 7400,
        "zone": "ca-central-1a",
        "roles": [
          "storage",
          "coordinator"
        ],
        "status": "healthy",
        "capacity": {
          "totalBytes": 2199023255552,
          "usedBytes": 894332428288
        }
      },
      {
        "id": "node-ca-01b",
        "host": "10.42.2.11",
        "port": 7400,
        "zone": "ca-central-1b",
        "roles": [
          "storage"
        ],
        "status": "healthy",
        "capacity": {
          "totalBytes": 2199023255552,
          "usedBytes": 917284847616
        }
      },
      {
        "id": "node-ca-01d",
        "host": "10.42.4.11",
        "port": 7400,
        "zone": "ca-central-1d",
        "roles": [
          "storage"
        ],
        "status": "healthy",
        "capacity": {
          "totalBytes": 2199023255552,
          "usedBytes": 861140942848
        }
      }
    ]
  },
  "storage": {
    "engine": "lsm",
    "dataDirectory": "/var/lib/atlas-kv/data",
    "compression": {
      "algorithm": "zstd",
      "level": 6
    },
    "writeAheadLog": {
      "enabled": true,
      "syncMode": "batch",
      "segmentSizeBytes": 134217728
    },
    "compaction": {
      "strategy": "leveled",
      "maxConcurrentJobs": 4,
      "targetFileSizeBytes": 268435456
    }
  },
  "network": {
    "client": {
      "bindAddress": "0.0.0.0",
      "port": 7399,
      "protocols": [
        "http2",
        "grpc"
      ]
    },
    "peer": {
      "bindAddress": "0.0.0.0",
      "port": 7400,
      "tls": {
        "enabled": true,
        "certificateFile": "/etc/atlas-kv/tls/server.crt",
        "privateKeyFile": "/etc/atlas-kv/tls/server.key",
        "trustedCaFiles": [
          "/etc/atlas-kv/tls/cluster-ca.crt"
        ]
      }
    },
    "timeoutsMs": {
      "connect": 2000,
      "read": 5000,
      "write": 5000
    }
  },
  "namespaces": [
    {
      "name": "sessions",
      "defaultTtlSeconds": 86400,
      "maxValueBytes": 1048576,
      "encryption": {
        "enabled": true,
        "keyId": "kms/atlas-kv/sessions"
      }
    },
    {
      "name": "feature-flags",
      "defaultTtlSeconds": null,
      "maxValueBytes": 65536,
      "encryption": {
        "enabled": true,
        "keyId": "kms/atlas-kv/config"
      }
    }
  ],
  "limits": {
    "maxConnections": 20000,
    "maxRequestsPerSecond": 75000,
    "maxBatchOperations": 500,
    "requestBodyBytes": 8388608
  },
  "observability": {
    "metrics": {
      "enabled": true,
      "path": "/metrics",
      "port": 9090
    },
    "tracing": {
      "enabled": true,
      "sampleRate": 0.05,
      "exporter": {
        "type": "otlp",
        "endpoint": "https://telemetry.internal.example.com/v1/traces"
      }
    },
    "logging": {
      "level": "info",
      "format": "json",
      "redactFields": [
        "authorization",
        "value",
        "privateKey"
      ]
    }
  }
}