<commit_before>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: metaphysics-web
  namespace: default
spec:
  strategy:
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 20%
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: metaphysics
        layer: application
        component: web
      name: metaphysics-web
    spec:
      containers:
        - name: metaphysics-web
          env:
            - name: PORT
              value: "3000"
            - name: DD_TRACER_HOSTNAME
              valueFrom:
                fieldRef:
                  fieldPath: spec.nodeName
            - name: STATSD_HOST
              valueFrom:
                fieldRef:
                  fieldPath: spec.nodeName
            - name: NODE_OPTIONS
              value: "--max_old_space_size=768"
          envFrom:
            - configMapRef:
                name: metaphysics-environment
          image: 585031190124.dkr.ecr.us-east-1.amazonaws.com/metaphysics:staging
          imagePullPolicy: Always
          ports:<commit_msg>ensure always 1 pod available during staging deploy<commit_after>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: metaphysics-web
  namespace: default
spec:
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: metaphysics
        layer: application
        component: web
      name: metaphysics-web
    spec:
      containers:
        - name: metaphysics-web
          env:
            - name: PORT
              value: "3000"
            - name: DD_TRACER_HOSTNAME
              valueFrom:
                fieldRef:
                  fieldPath: spec.nodeName
            - name: STATSD_HOST
              valueFrom:
                fieldRef:
                  fieldPath: spec.nodeName
            - name: NODE_OPTIONS
              value: "--max_old_space_size=768"
          envFrom:
            - configMapRef:
                name: metaphysics-environment
          image: 585031190124.dkr.ecr.us-east-1.amazonaws.com/metaphysics:staging
          imagePullPolicy: Always
          ports:
{'fraction_non_alphanumeric': 0.06657483930211203, 'fraction_numerical': 0.02295684113865932, 'mean_word_length': 1.5278422273781902, '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': '3175113', 'n_tokens_mistral': 656, 'n_tokens_neox': 592, 'n_words': 132}