<commit_before>apiVersion: v1
kind: ReplicationController
metadata:
  name: fetcher
spec:
  replicas: 2
  template:
    metadata:
      name: fetcher
      labels:
        name: fetcher
    spec:
      containers:
      - name: fetcher
        image: gcr.io/code-archive/fetcher:v7
        volumeMounts:
        - name: camli-secring
          mountPath: /data/secring
          readOnly: true
        env:
        - name: SCHEDULE
          # 05:00 - 12:00 UTC + weekends
          value: "///gAA/gAA/gAA/gAA/gAA//////"
        - name: INFLUX_ADDR
          value: "http://influx:8086"
        - name: QUEUE_ADDR
          value: "root:toor@tcp(queue:3306)/gitarchive"
        - name: CAMLI_SERVER
          value: "http://camli:3179"
        resources:
          requests:
            cpu: "200m"
          limits:
            memory: "3Gi"
      volumes:
      - name: camli-secring
        secret:
          secretName: camli-secring<commit_msg>deploy: tweak fetcher resources based on metrics<commit_after>apiVersion: v1
kind: ReplicationController
metadata:
  name: fetcher
spec:
  replicas: 4
  template:
    metadata:
      name: fetcher
      labels:
        name: fetcher
    spec:
      containers:
      - name: fetcher
        image: gcr.io/code-archive/fetcher:v7
        volumeMounts:
        - name: camli-secring
          mountPath: /data/secring
          readOnly: true
        env:
        - name: SCHEDULE
          # 05:00 - 12:00 UTC + weekends
          value: "///gAA/gAA/gAA/gAA/gAA//////"
        - name: INFLUX_ADDR
          value: "http://influx:8086"
        - name: QUEUE_ADDR
          value: "root:toor@tcp(queue:3306)/gitarchive"
        - name: CAMLI_SERVER
          value: "http://camli:3179"
        resources:
          requests:
            cpu: "50m"
            memory: "128Mi"
          limits:
            memory: "1Gi"
      volumes:
      - name: camli-secring
        secret:
          secretName: camli-secring
{'fraction_non_alphanumeric': 0.10510204081632653, 'fraction_numerical': 0.02857142857142857, 'mean_word_length': 1.5768725361366622, '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': '2321113', 'n_tokens_mistral': 669, 'n_tokens_neox': 632, 'n_words': 135}