<commit_before># docker-compose production overrides
---
version: "3.4"
services:
  web:
    restart: unless-stopped
    environment:
      # Number of worker processes for handling requests
      # http://docs.gunicorn.org/en/stable/settings.html#workers
      WEB_CONCURRENCY: 4
    healthcheck:
      test: flask healthcheck
      start_period: 2m
      interval: 5m
      timeout: 1m
      retries: 5

  celeryworker:
    restart: unless-stopped<commit_msg>Prevent gunicorn from blocking on disk access (#3246)<commit_after># docker-compose production overrides
---
version: "3.4"
services:
  web:
    restart: unless-stopped
    environment:
      # Number of worker processes for handling requests
      # http://docs.gunicorn.org/en/stable/settings.html#workers
      WEB_CONCURRENCY: 4
    # mount a tmpfs to prevent gunicorn from blocking
    # http://docs.gunicorn.org/en/stable/faq.html#blocking-os-fchmod
    volumes:
      - target: /tmp
        type: tmpfs
    healthcheck:
      test: flask healthcheck
      start_period: 2m
      interval: 5m
      timeout: 1m
      retries: 5

  celeryworker:
    restart: unless-stopped
{'fraction_non_alphanumeric': 0.08779631255487269, 'fraction_numerical': 0.015803336259877086, 'mean_word_length': 2.7133550488599347, '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': '101880', 'n_tokens_mistral': 376, 'n_tokens_neox': 354, 'n_words': 92}