Sample configuration for AWS EC2 handling 125k Obcerv entities and 50k metrics/sec (medium) with NGINX Ingress controller

Download this sample AWS EC2 handling 125k Obcerv entities and 50k metrics/sec (medium) configuration provided by ITRS.

# Example Obcerv configuration for AWS EC2 handling 125k Obcerv entities and 50k metrics/sec.
#
# Nodes:
# - (3) m5.4xlarge (16 CPU, 64GiB Memory) for Timescale
# - (4) c5.4xlarge (16 CPU, 32GiB Memory) for all other workloads
#
# The resource requests for Timescale total 24 cores and 182GiB memory.
# The resource requests for the other workloads total ~42 cores and ~95GiB memory.
# These totals include Linkerd resources.
#
# Disk requirements:
# - Timescale:
#   - 4 x 1 TiB timeseries data disk for each replica (x3)
#   - 100 GiB data disk for each replica (x3)
#   - 150 GiB WAL disk for each replica (x3)
# - Kafka: 200 GiB for each replica (x3)
# - Loki: 30 GiB for each replica (x1)
# - Zookeeper: 1 GiB for each replica (x3)
# - etcd: 1 GiB for each replica (x3)
# - Downsampled Metrics:
#   - Raw: 5 GiB for each replica (x3)
#   - Bucketed: 5 GiB for each replica (x3)
#
# The configuration references a default storage class named `gp3` which uses EBS gp3 volumes. This storage class should
# be configured with the default minimum gp3 settings of 3000 IOPS and 125 MiB/s throughput - you can create
# this class or change the config to use a class of your own, but it should be similar in performance.
#
# This configuration is based upon a certain number of Obcerv entities, average metrics per entity, and
# average metrics collection interval. The following function can be used to figure out what type of load to expect:
#
# metrics/sec = (Obcerv entities * metrics/entity) / average metrics collection interval
#
# In this example configuration, we have the following:
#
# 50,000 metrics/sec = (125,000 Obcerv entities * 4 metrics/entity) / 10 seconds average metrics collection interval
#

defaultStorageClass: "gp3"
apps:
  externalHostname: "obcerv.mydomain.internal"
  ingress:
    annotations:
      kubernetes.io/ingress.class: "nginx"
      nginx.org/mergeable-ingress-type: "master"
ingestion:
  externalHostname: "obcerv-ingestion.mydomain.internal"
  replicas: 2
  ingress:
    annotations:
      kubernetes.io/ingress.class: "nginx"
      nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
  resources:
    requests:
      memory: "512Mi"
      cpu: "500m"
    limits:
      memory: "768Mi"
      cpu: "1"
iam:
  ingress:
    annotations:
      kubernetes.io/ingress.class: "nginx"
      nginx.org/mergeable-ingress-type: "minion"
zookeeper:
  replicas: 3
  resources:
    requests:
      memory: "256Mi"
      cpu: "200m"
    limits:
      memory: "512Mi"
      cpu: "200m"
kafka:
  replicas: 3
  diskSize: "200Gi"
  defaultPartitions: 24
  consumer:
    fetchMaxWaitMs: 250
    fetchMinBytes: 524288
  resources:
    requests:
      memory: "6Gi"
      cpu: "2"
    limits:
      memory: "6Gi"
      cpu: "3"
timescale:
  clusterSize: 3
  dataDiskSize: "100Gi"
  timeseriesDiskCount: 4
  timeseriesDiskSize: "1Ti"
  walDiskSize: "150Gi"
  resources:
    requests:
      memory: "56Gi"
      cpu: "8"
    limits:
      memory: "56Gi"
      cpu: "8"
  nodeSelector:
    instancegroup: timescale-nodes
  tolerations:
  - key: dedicated
    operator: Equal
    value: timescale-nodes
    effect: NoSchedule
  retention:
    entity_attributes:
      chunkSize: 2d
      retention: 1y
    metrics:
      chunkSize: 8h
      retention: 30d
    metrics_5m:
      chunkSize: 1d
      retention: 90d
    metrics_1h:
      chunkSize: 5d
      retention: 180d
    metrics_1d:
      chunkSize: 20d
      retention: 1y
    statuses:
      chunkSize: 7d
      retention: 1y
    signal_details:
      chunkSize: 1d
      retention: 30d
loki:
  diskSize: "30Gi"
  ingestionBurstSize: 9
  ingestionRateLimit: 6
  maxPayloadSize: 6291456
  resources:
    requests:
      memory: "512Mi"
      cpu: "250m"
    limits:
      memory: "512Mi"
      cpu: "300m"
sinkd:
  replicas: 2
  rawReplicas: 3
  jvmOpts: "-Xms1G -Xmx1G -XX:MaxDirectMemorySize=100M"
  rawJvmOpts: "-Xms1G -Xmx1G"
  metrics:
    maxPollRecords: 10000
  resources:
    requests:
      memory: "1536Mi"
      cpu: "250m"
    limits:
      memory: "1536Mi"
      cpu: "1"
  rawResources:
    requests:
      memory: "1280Mi"
      cpu: "500m"
    limits:
      memory: "1280Mi"
      cpu: "1"
platformd:
  replicas: 2
  resources:
    requests:
      memory: "1536Mi"
      cpu: "1"
    limits:
      memory: "2Gi"
      cpu: "1500m"
dpd:
  replicas: 2
  jvmOpts: "-Xmx4500M"
  kafkaConsumerMaxPollRecords: 10000
  maxEntitySerdeCacheEntries: 50000
  entitiesInMemoryCacheSizeMb: 256
  metricsMultiplexer:
    maxFilterResultCacheSize: 500000
    maxConcurrentOps: 500
    localParallelism: 12
  selfMonitoringThresholds:
    metrics_partition_lag_warn: 500000
    metrics_partition_lag_critical: 2500000
  resources:
    requests:
      memory: "5Gi"
      cpu: "2"
    limits:
      memory: "6Gi"
      cpu: "3"
metricForecastd:
  resources:
    requests:
      memory: "512Mi"
      cpu: "250m"
    limits:
      memory: "768Mi"
      cpu: "500m"
downsampledMetricsStream:
  replicas: 2
  bucketedReplicas: 2
  maxPollRecords: 10000
  jvmOpts: "-XX:InitialRAMPercentage=25 -XX:MaxRAMPercentage=25"
  bucketedJvmOpts: "-XX:InitialRAMPercentage=40 -XX:MaxRAMPercentage=40"
  resources:
    requests:
      memory: "3Gi"
      cpu: "1"
    limits:
      memory: "3Gi"
      cpu: "1500m"
  bucketedResources:
    requests:
      memory: "3Gi"
      cpu: "1"
    limits:
      memory: "3Gi"
      cpu: "3"
  rocksdb:
    raw:
      indexAndFilterRatio: 0.5
      memoryMib: 500
      writeBufferMib: 16
      writeBufferRatio: 0.25
    bucketed:
      indexAndFilterRatio: 0.5
      memoryMib: 200
      writeBufferMib: 16
      writeBufferRatio: 0.25
entityStream:
  intermediate:
    storedEntitiesCacheSize: 10000
    jvmOpts: "-XX:MaxRAMPercentage=25"
    replicas: 2
    resources:
      requests:
        memory: "1536Mi"
        cpu: "750m"
      limits:
        memory: "2Gi"
        cpu: "1"
    rocksdb:
      memoryMib: 200
  final:
    replicas: 2
    storedEntitiesCacheSize: 10000
    resources:
      requests:
        memory: "1536Mi"
        cpu: "1"
      limits:
        memory: "2560Mi"
        cpu: "1500m"
signalsStream:
  resources:
    requests:
      memory: "768Mi"
      cpu: "150m"
    limits:
      memory: "1536Mi"
      cpu: "300m"
etcd:
  replicas: 3
collection:
  daemonSet:
    tolerations:
    # must match the tainted Timescale nodes setting
    - key: dedicated
      operator: Equal
      value: timescale-nodes
      effect: NoSchedule
  metrics:
    resources:
      requests:
        memory: "768Mi"
        cpu: "200m"
      limits:
        memory: "1Gi"
        cpu: "250m"
["Obcerv"] ["User Guide", "Technical Reference"]

Was this topic helpful?