title: MWAA Airflow Scaling: what do I do when I have to run frequent & time consuming scripts? (Negsignal.SIGKILL)
body: <p>I have an MWAA Airflow env in my AWS account. The DAG I am setting up is supposed to read massive data from S3 bucket A, filter what I want and dump the filtered results to S3 bucket B. It needs to read every minute since the data is coming in every minute. Every run processes about 200MB of json data.</p>
  <p>My initial setting was using env class <code>mw1.small</code> with 10 worker machines, if I only run the task once in this setting, it takes about 8 minutes to finish each run, but when I start the schedule to run every minute, most of them could not finish, starts to take much longer to run (around 18 mins) and displays the error message:</p>
  <pre><code>[2021-09-25 20:33:16,472] {{local_task_job.py:102}} INFO - Task exited with return code Negsignal.SIGKILL
  </code></pre>
  <p>I tried to expand env class to <code>mw1.large</code> with 15 workers, more jobs were able to complete before the error shows up, but still could not catch up with the speed of ingesting every minute. The <code>Negsignal.SIGKILL</code> error would still show before even reaching worker machine max.</p>
  <p>At this point, what should I do to scale this? I can imagine opening another Airflow env but that does not really make sense. There must be a way to do it within one env.</p>