##
##  m3.conf -- M3 Configuration
##

coordinator:
    listenAddress:
        value: "127.0.0.1:7201"
    local:
        namespaces:
            - namespace: default
              type: unaggregated
              retention: 48h
    logging:
        level: info
    metrics:
        scope:
            prefix: "coordinator"
        prometheus:
            handlerPath: /metrics
            listenAddress: "127.0.0.1:7203"
        sanitization: prometheus
        samplingRate: 1.0
        extended: none
    limits:
        maxComputedDatapoints: 10000
    tagOptions:
        idScheme: quoted

db:
    logging:
        level: info
    metrics:
        prometheus:
            handlerPath: /metrics
        sanitization: prometheus
        samplingRate: 1.0
        extended: detailed
    listenAddress:            "127.0.0.1:9000"
    clusterListenAddress:     "127.0.0.1:9001"
    httpNodeListenAddress:    "127.0.0.1:9002"
    httpClusterListenAddress: "127.0.0.1:9003"
    debugListenAddress:       "127.0.0.1:9004"
    hostID:
        resolver: config
        value: m3db_local
    client:
        writeConsistencyLevel: majority
        readConsistencyLevel: unstrict_majority
    gcPercentage: 100
    writeNewSeriesAsync: true
    writeNewSeriesLimitPerSecond: 1048576
    writeNewSeriesBackoffDuration: 2ms
    bootstrap:
        bootstrappers:
            - filesystem
            - commitlog
            - peers
            - uninitialized_topology
        commitlog:
            returnUnfulfilledForCorruptCommitLogFiles: false
    cache:
        series:
            policy: lru
        postingsList:
            size: 262144
    commitlog:
        flushMaxBytes: 524288
        flushEvery: 1s
        queue:
            calculationType: fixed
            size: 2097152
    fs:
        filePathPrefix: @l_prefix@/var/m3/db
    config:
        service:
            env: default_env
            zone: embedded
            service: m3db
            cacheDir: @l_prefix@/var/m3/kv
            etcdClusters:
                - zone: embedded
                  endpoints:
                      - "127.0.0.1:2379"
        seedNodes:
            initialCluster:
                - hostID: m3db_local
                  endpoint: "http://127.0.0.1:2380"

