简体   繁体   English

将 EC2 实例作为工作程序添加到 Amazon MWAA

[英]Add an EC2 instance as a worker to Amazon MWAA

I am currently using Amazon MWAA as my Airflow. I want to have 2 types of workers nodes but currently MWAA doesn't support it.我目前正在使用 Amazon MWAA 作为我的 Airflow。我想要 2 种类型的工作节点,但目前 MWAA 不支持它。 I want to have:我希望有:

  1. High Compute Optimized CPU workers高计算优化 CPU 工作者
  2. GPU workers GPU 工人

I want to create different queues for both the worker types and submit jobs to these workers nodes.我想为两种工作人员类型创建不同的队列并将作业提交到这些工作人员节点。

Is it possible to add an existing EC2 instance (say GPU instance) to MWAA?是否可以将现有的 EC2 实例(例如 GPU 实例)添加到 MWAA? I only see Start and Stop EC2 operators available.我只看到启动和停止 EC2 运算符可用。

Does anyone have any pointers on this?有人对此有任何指示吗?

  1. If you have an EKS then its possible to define a GPU pool and using Kube.netesPodOperator you can run a docker under a gpu pool.如果您有 EKS,则可以定义一个 GPU 池,并使用 Kube.netesPodOperator 可以在 gpu 池下运行 docker。
  2. Another solution its ECS (easier to define).另一个解决方案是 ECS(更容易定义)。 you can see a good example to run gpu in Airflow in this article你可以在这篇文章中看到一个很好的例子来运行 gpu in Airflow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM