<commit_before>version: '2'

services:
  metrictank0:
    hostname: metrictank0
    image: grafana/metrictank
    ports:
     - "6060:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042
      WAIT_TIMEOUT: 30
      MT_CASSANDRA_CREATE_KEYSPACE: "true"
      MT_CASSANDRA_IDX_CREATE_KEYSPACE: "true"
      MT_CLUSTER_BIND_ADDR: "metrictank0:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PRIMARY_NODE: "true"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank0
      MT_KAFKA_CLUSTER_PARTITIONS: 0,1,2,3
      MT_KAFKA_MDM_IN_PARTITIONS: 0,1,2,3
      MT_LOG_LEVEL: 2
    links:
     - cassandra

  metrictank1:
    hostname: metrictank1
    image: grafana/metrictank
    ports:
      - "6061:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042,metrictank0:6060
      WAIT_TIMEOUT: 30
      MT_CLUSTER_BIND_ADDR: "metrictank1:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PEERS: metrictank0
      MT_CLUSTER_PRIMARY_NODE: "false"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank1
      MT_KAFKA_CLUSTER_PARTITIONS: 0,1,2,3
      MT_KAFKA_MDM_IN_PARTITIONS: 0,1,2,3
      MT_LOG_LEVEL: 2
    links:
     - cassandra
     - metrictank0

  metrictank2:
    hostname: metrictank2
    image: grafana/metrictank
    ports:
      - "6062:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042,metrictank0:6060
      WAIT_TIMEOUT: 30
      MT_CLUSTER_BIND_ADDR: "metrictank2:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PEERS: metrictank0
      MT_CLUSTER_PRIMARY_NODE: "true"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank2
      MT_KAFKA_CLUSTER_PARTITIONS: 4,5,6,7
      MT_KAFKA_MDM_IN_PARTITIONS: 4,5,6,7
      MT_LOG_LEVEL: 2
    links:
     - cassandra
     - metrictank0

  metrictank3:
    hostname: metrictank3
    image: grafana/metrictank
    ports:
      - "6063:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042,metrictank0:6060
      WAIT_TIMEOUT: 30
      MT_CLUSTER_BIND_ADDR: "metrictank3:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PEERS: metrictank0
      MT_CLUSTER_PRIMARY_NODE: "false"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank3
      MT_KAFKA_CLUSTER_PARTITIONS: 4,5,6,7
      MT_KAFKA_MDM_IN_PARTITIONS: 4,5,6,7
      MT_LOG_LEVEL: 2
    links:
     - cassandra
     - metrictank0

  metrictank4:
    hostname: metrictank4
    image: grafana/metrictank
    ports:
      - "6064:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042,metrictank0:6060
      WAIT_TIMEOUT: 30
      MT_CLUSTER_BIND_ADDR: "metrictank4:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PEERS: metrictank0
      MT_CLUSTER_PRIMARY_NODE: "true"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank4
      MT_KAFKA_CLUSTER_PARTITIONS: 8,9,10,11
      MT_KAFKA_MDM_IN_PARTITIONS: 8,9,10,11
      MT_LOG_LEVEL: 2
    links:
     - cassandra
     - metrictank0

  metrictank5:
    hostname: metrictank5
    image: grafana/metrictank
    ports:
      - "6065:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042,metrictank0:6060
      WAIT_TIMEOUT: 30
      MT_CLUSTER_BIND_ADDR: "metrictank5:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PEERS: metrictank0
      MT_CLUSTER_PRIMARY_NODE: "false"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank5
      MT_KAFKA_CLUSTER_PARTITIONS: 8,9,10,11
      MT_KAFKA_MDM_IN_PARTITIONS: 8,9,10,11
      MT_LOG_LEVEL: 2
    links:
     - cassandra
     - metrictank0

  cassandra:
    hostname: cassandra
    image: cassandra:3.9
    environment:
      MAX_HEAP_SIZE: 1G
      HEAP_NEWSIZE: 256M
    ports:
     - "9042:9042"

  graphite:
    hostname: graphite
    image: raintank/graphite-mt
    ports:
     - "8080:80"
    environment:
      GRAPHITE_CLUSTER_SERVERS: metrictank0:6060
      GRAPHITE_STATSD_HOST: statsdaemon
      WSGI_PROCESSES: 4
      WSGI_THREADS: 25

  grafana:
    hostname: grafana
    image: grafana/grafana:master
    ports:
      - "3000:3000"

  kafka:<commit_msg>pin grafana version<commit_after>version: '2'

services:
  metrictank0:
    hostname: metrictank0
    image: grafana/metrictank
    ports:
     - "6060:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042
      WAIT_TIMEOUT: 30
      MT_CASSANDRA_CREATE_KEYSPACE: "true"
      MT_CASSANDRA_IDX_CREATE_KEYSPACE: "true"
      MT_CLUSTER_BIND_ADDR: "metrictank0:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PRIMARY_NODE: "true"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank0
      MT_KAFKA_CLUSTER_PARTITIONS: 0,1,2,3
      MT_KAFKA_MDM_IN_PARTITIONS: 0,1,2,3
      MT_LOG_LEVEL: 2
    links:
     - cassandra

  metrictank1:
    hostname: metrictank1
    image: grafana/metrictank
    ports:
      - "6061:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042,metrictank0:6060
      WAIT_TIMEOUT: 30
      MT_CLUSTER_BIND_ADDR: "metrictank1:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PEERS: metrictank0
      MT_CLUSTER_PRIMARY_NODE: "false"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank1
      MT_KAFKA_CLUSTER_PARTITIONS: 0,1,2,3
      MT_KAFKA_MDM_IN_PARTITIONS: 0,1,2,3
      MT_LOG_LEVEL: 2
    links:
     - cassandra
     - metrictank0

  metrictank2:
    hostname: metrictank2
    image: grafana/metrictank
    ports:
      - "6062:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042,metrictank0:6060
      WAIT_TIMEOUT: 30
      MT_CLUSTER_BIND_ADDR: "metrictank2:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PEERS: metrictank0
      MT_CLUSTER_PRIMARY_NODE: "true"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank2
      MT_KAFKA_CLUSTER_PARTITIONS: 4,5,6,7
      MT_KAFKA_MDM_IN_PARTITIONS: 4,5,6,7
      MT_LOG_LEVEL: 2
    links:
     - cassandra
     - metrictank0

  metrictank3:
    hostname: metrictank3
    image: grafana/metrictank
    ports:
      - "6063:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042,metrictank0:6060
      WAIT_TIMEOUT: 30
      MT_CLUSTER_BIND_ADDR: "metrictank3:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PEERS: metrictank0
      MT_CLUSTER_PRIMARY_NODE: "false"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank3
      MT_KAFKA_CLUSTER_PARTITIONS: 4,5,6,7
      MT_KAFKA_MDM_IN_PARTITIONS: 4,5,6,7
      MT_LOG_LEVEL: 2
    links:
     - cassandra
     - metrictank0

  metrictank4:
    hostname: metrictank4
    image: grafana/metrictank
    ports:
      - "6064:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042,metrictank0:6060
      WAIT_TIMEOUT: 30
      MT_CLUSTER_BIND_ADDR: "metrictank4:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PEERS: metrictank0
      MT_CLUSTER_PRIMARY_NODE: "true"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank4
      MT_KAFKA_CLUSTER_PARTITIONS: 8,9,10,11
      MT_KAFKA_MDM_IN_PARTITIONS: 8,9,10,11
      MT_LOG_LEVEL: 2
    links:
     - cassandra
     - metrictank0

  metrictank5:
    hostname: metrictank5
    image: grafana/metrictank
    ports:
      - "6065:6060"
    volumes:
      - ../../build/metrictank:/usr/bin/metrictank
      - ./metrictank.ini:/etc/metrictank/metrictank.ini
    environment:
      WAIT_HOSTS: kafka:9092,cassandra:9042,metrictank0:6060
      WAIT_TIMEOUT: 30
      MT_CLUSTER_BIND_ADDR: "metrictank5:7946"
      MT_CLUSTER_MODE: multi
      MT_CLUSTER_PEERS: metrictank0
      MT_CLUSTER_PRIMARY_NODE: "false"
      MT_HTTP_MULTI_TENANT: "false"
      MT_INSTANCE: metrictank5
      MT_KAFKA_CLUSTER_PARTITIONS: 8,9,10,11
      MT_KAFKA_MDM_IN_PARTITIONS: 8,9,10,11
      MT_LOG_LEVEL: 2
    links:
     - cassandra
     - metrictank0

  cassandra:
    hostname: cassandra
    image: cassandra:3.9
    environment:
      MAX_HEAP_SIZE: 1G
      HEAP_NEWSIZE: 256M
    ports:
     - "9042:9042"

  graphite:
    hostname: graphite
    image: raintank/graphite-mt
    ports:
     - "8080:80"
    environment:
      GRAPHITE_CLUSTER_SERVERS: metrictank0:6060
      GRAPHITE_STATSD_HOST: statsdaemon
      WSGI_PROCESSES: 4
      WSGI_THREADS: 25

  grafana:
    hostname: grafana
    image: grafana/grafana:4.5.2
    ports:
      - "3000:3000"

  kafka:
{'fraction_non_alphanumeric': 0.09105213469002413, 'fraction_numerical': 0.06115598447498164, 'mean_word_length': 2.7609467455621304, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6872906', 'n_tokens_mistral': 4257, 'n_tokens_neox': 3892, 'n_words': 513}