You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airflow.apache.org by Andy Hadjigeorgiou <an...@gmail.com> on 2017/11/14 17:02:46 UTC

Airflow Deployment tools

Hey,

Was just wondering what tools & services everyone uses to deploy new
versions of their data pipelines (understandably this would vary greatly
based on tech stack) but I'd love to hear what the community has been using.

- Andy

Re: Airflow Deployment tools

Posted by Andy Hadjigeorgiou <an...@gmail.com>.
Thank you all for your responses, this is very helpful!

- Andy Hadjigeorgiou

> On Nov 15, 2017, at 1:52 PM, Scott Halgrim <sc...@zapier.com.INVALID> wrote:
> 
> I bet the folks at astronomer.io would love to talk to you about Airflow as a service
> 
>> On Nov 15, 2017, 4:31 AM -0800, Andrew Maguire <an...@gmail.com>, wrote:
>> Is there any options at all out there for Airflow as a service type
>> approach?
>> 
>> I'd love to just be able to define my dags and load them to some cloud ui
>> and not have to worry about anything else.
>> 
>> This looks kinda interesting -
>> http://docs.qubole.com/en/latest/user-guide/airflow/introduction-airflow.html
>> 
>> Cheers,
>> Andy
>> 
>> On Wed, Nov 15, 2017 at 10:28 AM Driesprong, Fokko <fokko@driesprong.frl
>> wrote:
>> 
>>> I'm using Ansible to deploy the Airflow, the steps are:
>>> - First install Airflow using pip (or a rc using curl)
>>> - Do an `airflow version` to trigger the creation of the default config
>>> - Set the config correctly variables in the config using Ansible.
>>> - Deploy the supervisord files
>>> - Start everything
>>> 
>>> A separate role is there to deploy Postgres. But if you are working on a
>>> cloud environment, you can also get Postgres/MySQL as a service. Hope this
>>> helps.
>>> 
>>> Cheers, Fokko
>>> 
>>> 2017-11-15 3:19 GMT+01:00 Marc Bollinger <ma...@lumoslabs.com>:
>>> 
>>>> Samson <https://github.com/zendesk/samson> deploy that runs a script
>>>> running a Broadside <https://github.com/lumoslabs/broadside> deploy for
>>>> ECS, which bounces the Web and Scheduler workers, and updates the DAG
>>>> directory on the workers. Docker images come from a Github -> Travis -
>>>> Quay
>>>> <https://quay.io/> CI setup.
>>>> 
>>>> On Tue, Nov 14, 2017 at 10:18 AM, Alek Storm <alek.storm@gmail.com
>>> wrote:
>>>> 
>>>>> Our TeamCity server detects the master branch has changed, then
>>> packages
>>>> up
>>>>> the repo containing our DAGs as an artifact. We then use SaltStack to
>>>>> trigger a bash script on the targeted servers that downloads the
>>>> artifact,
>>>>> moves the files to the right place, and restarts the scheduler (on the
>>>>> master).
>>>>> 
>>>>> This allows us to easily revert changes by redeploying a particular
>>>>> TeamCity artifact, without touching the git history.
>>>>> 
>>>>> Alek
>>>>> 
>>>>> On Nov 14, 2017 11:02 AM, "Andy Hadjigeorgiou" <andyxhadji@gmail.com
>>>>> wrote:
>>>>> 
>>>>>> Hey,
>>>>>> 
>>>>>> Was just wondering what tools & services everyone uses to deploy new
>>>>>> versions of their data pipelines (understandably this would vary
>>>> greatly
>>>>>> based on tech stack) but I'd love to hear what the community has been
>>>>>> using.
>>>>>> 
>>>>>> - Andy
>>>>>> 
>>>>> 
>>>> 
>>> 

Re: Airflow Deployment tools

Posted by Scott Halgrim <sc...@zapier.com.INVALID>.
I bet the folks at astronomer.io would love to talk to you about Airflow as a service

On Nov 15, 2017, 4:31 AM -0800, Andrew Maguire <an...@gmail.com>, wrote:
> Is there any options at all out there for Airflow as a service type
> approach?
>
> I'd love to just be able to define my dags and load them to some cloud ui
> and not have to worry about anything else.
>
> This looks kinda interesting -
> http://docs.qubole.com/en/latest/user-guide/airflow/introduction-airflow.html
>
> Cheers,
> Andy
>
> On Wed, Nov 15, 2017 at 10:28 AM Driesprong, Fokko <fokko@driesprong.frl
> wrote:
>
> > I'm using Ansible to deploy the Airflow, the steps are:
> > - First install Airflow using pip (or a rc using curl)
> > - Do an `airflow version` to trigger the creation of the default config
> > - Set the config correctly variables in the config using Ansible.
> > - Deploy the supervisord files
> > - Start everything
> >
> > A separate role is there to deploy Postgres. But if you are working on a
> > cloud environment, you can also get Postgres/MySQL as a service. Hope this
> > helps.
> >
> > Cheers, Fokko
> >
> > 2017-11-15 3:19 GMT+01:00 Marc Bollinger <ma...@lumoslabs.com>:
> >
> > > Samson <https://github.com/zendesk/samson> deploy that runs a script
> > > running a Broadside <https://github.com/lumoslabs/broadside> deploy for
> > > ECS, which bounces the Web and Scheduler workers, and updates the DAG
> > > directory on the workers. Docker images come from a Github -> Travis -
> > > Quay
> > > <https://quay.io/> CI setup.
> > >
> > > On Tue, Nov 14, 2017 at 10:18 AM, Alek Storm <alek.storm@gmail.com
> > wrote:
> > >
> > > > Our TeamCity server detects the master branch has changed, then
> > packages
> > > up
> > > > the repo containing our DAGs as an artifact. We then use SaltStack to
> > > > trigger a bash script on the targeted servers that downloads the
> > > artifact,
> > > > moves the files to the right place, and restarts the scheduler (on the
> > > > master).
> > > >
> > > > This allows us to easily revert changes by redeploying a particular
> > > > TeamCity artifact, without touching the git history.
> > > >
> > > > Alek
> > > >
> > > > On Nov 14, 2017 11:02 AM, "Andy Hadjigeorgiou" <andyxhadji@gmail.com
> > > > wrote:
> > > >
> > > > > Hey,
> > > > >
> > > > > Was just wondering what tools & services everyone uses to deploy new
> > > > > versions of their data pipelines (understandably this would vary
> > > greatly
> > > > > based on tech stack) but I'd love to hear what the community has been
> > > > > using.
> > > > >
> > > > > - Andy
> > > > >
> > > >
> > >
> >

Re: Airflow Deployment tools

Posted by Kate-Laurel Agnew <ka...@signal.co>.
Our Airflow situation:
• Development happens in two different repos (a repo that holds a lot of
cross-company python tools, for the core app and any plugins we develop on
top of it, and our reporting tools/infra repo, for DAGs and related utility
files).
• The core app & plugins get packaged together with their imports into a
.pex (using the 'pants' build tool)  with some related code and glue, and
can be manually deployed to the relevant box in staging and/or prod any
time with puppet (or automatically during the weekly deploy) once they're
in master.
• Updates to DAGs and utility files only get automatically deployed to prod
from master during the weekly deploy, but we're a little loosey-goosey
about editing DAGs in prod when necessary, since Airflow primarily handles
internal stuff and we're still in the early stages of switching our legacy
junk over to it.
• Right now, everything Airflow in prod runs on just one instance (AWS
EC2), with an AWS RDS MySQL backing it.  We haven't yet figured out what
our best options for scaling are going to be (opinions welcome, please).

On Wed, Nov 15, 2017 at 9:26 AM, Laura Lorenz <ll...@industrydive.com>
wrote:

> Infrastructure wise we use docker containers, hosted via Kubernetes on
> Google Container Engine  and deployed with Helm. We bake our DAGs and
> custom code into the images - so in the end the deployer does a `helm
> upgrade` command locally, the images are rebuilt with the newest code, and
> then all the containers are recreated with that new image. Our webserver,
> worker, flower, and scheduler containers are derived off of
> https://github.com/puckel/docker-airflow, and we use rabbitmq official
> image off Docker Hub. Our metadata database is in Cloud SQL for our QA and
> production clusters on GCE, but for local dev we use the official mysql
> image from docker hub. This style of deployment interrupts any running
> tasks since the worker container is also killed to be recreated off the new
> image.
>
> On Wed, Nov 15, 2017 at 7:42 AM, Zsolt Tóth <to...@gmail.com>
> wrote:
>
> > We are also using Ansible for:
> > - Installing/upgrading/configuring Airflow (there are several airflow
> > roles
> > on git)
> > - Deploying the pipelines
> > - Restarting Airflow webserver/scheduler
> >
> > It would be great to have Airflow manageable from Hadoop cluster managers
> > (Cloudera Manager, Ambari). For this a parcel (for cloudera) should be
> > created and installed. If anyone has done this before, please share the
> > experience!
> >
> > Zsolt
> >
> >
> > 2017-11-15 13:30 GMT+01:00 Andrew Maguire <an...@gmail.com>:
> >
> > > Is there any options at all out there for Airflow as a service type
> > > approach?
> > >
> > > I'd love to just be able to define my dags and load them to some cloud
> ui
> > > and not have to worry about anything else.
> > >
> > > This looks kinda interesting -
> > > http://docs.qubole.com/en/latest/user-guide/airflow/
> > > introduction-airflow.html
> > >
> > > Cheers,
> > > Andy
> > >
> > > On Wed, Nov 15, 2017 at 10:28 AM Driesprong, Fokko
> <fokko@driesprong.frl
> > >
> > > wrote:
> > >
> > > > I'm using Ansible to deploy the Airflow, the steps are:
> > > > - First install Airflow using pip (or a rc using curl)
> > > > - Do an `airflow version` to trigger the creation of the default
> config
> > > > - Set the config correctly variables in the config using Ansible.
> > > > - Deploy the supervisord files
> > > > - Start everything
> > > >
> > > > A separate role is there to deploy Postgres. But if you are working
> on
> > a
> > > > cloud environment, you can also get Postgres/MySQL as a service. Hope
> > > this
> > > > helps.
> > > >
> > > > Cheers, Fokko
> > > >
> > > > 2017-11-15 3:19 GMT+01:00 Marc Bollinger <ma...@lumoslabs.com>:
> > > >
> > > > > Samson <https://github.com/zendesk/samson> deploy that runs a
> script
> > > > > running a Broadside <https://github.com/lumoslabs/broadside>
> deploy
> > > for
> > > > > ECS, which bounces the Web and Scheduler workers, and updates the
> DAG
> > > > > directory on the workers. Docker images come from a Github ->
> Travis
> > ->
> > > > > Quay
> > > > > <https://quay.io/> CI setup.
> > > > >
> > > > > On Tue, Nov 14, 2017 at 10:18 AM, Alek Storm <alek.storm@gmail.com
> >
> > > > wrote:
> > > > >
> > > > > > Our TeamCity server detects the master branch has changed, then
> > > > packages
> > > > > up
> > > > > > the repo containing our DAGs as an artifact. We then use
> SaltStack
> > to
> > > > > > trigger a bash script on the targeted servers that downloads the
> > > > > artifact,
> > > > > > moves the files to the right place, and restarts the scheduler
> (on
> > > the
> > > > > > master).
> > > > > >
> > > > > > This allows us to easily revert changes by redeploying a
> particular
> > > > > > TeamCity artifact, without touching the git history.
> > > > > >
> > > > > > Alek
> > > > > >
> > > > > > On Nov 14, 2017 11:02 AM, "Andy Hadjigeorgiou" <
> > andyxhadji@gmail.com
> > > >
> > > > > > wrote:
> > > > > >
> > > > > > > Hey,
> > > > > > >
> > > > > > > Was just wondering what tools & services everyone uses to
> deploy
> > > new
> > > > > > > versions of their data pipelines (understandably this would
> vary
> > > > > greatly
> > > > > > > based on tech stack) but I'd love to hear what the community
> has
> > > been
> > > > > > > using.
> > > > > > >
> > > > > > > - Andy
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>



-- 




*Kate-Laurel AgnewData Engineerm: 503-741-9207
<503%20741%209207>e: kagnew@signal.co
<ht...@signal.co>signal.co
<http://www.google.com/url?q=http%3A%2F%2Fsignal.co%2F&sa=D&sntz=1&usg=AFQjCNGG8nAqplB1u72dXPbYfPYRcfopNQ>________________________Cut
Through the NoiseThis e-mail and any files transmitted with it are for the
sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized use of this email is strictly
prohibited. ©2015 Signal. All rights reserved.*

Re: Airflow Deployment tools

Posted by Laura Lorenz <ll...@industrydive.com>.
Infrastructure wise we use docker containers, hosted via Kubernetes on
Google Container Engine  and deployed with Helm. We bake our DAGs and
custom code into the images - so in the end the deployer does a `helm
upgrade` command locally, the images are rebuilt with the newest code, and
then all the containers are recreated with that new image. Our webserver,
worker, flower, and scheduler containers are derived off of
https://github.com/puckel/docker-airflow, and we use rabbitmq official
image off Docker Hub. Our metadata database is in Cloud SQL for our QA and
production clusters on GCE, but for local dev we use the official mysql
image from docker hub. This style of deployment interrupts any running
tasks since the worker container is also killed to be recreated off the new
image.

On Wed, Nov 15, 2017 at 7:42 AM, Zsolt Tóth <to...@gmail.com>
wrote:

> We are also using Ansible for:
> - Installing/upgrading/configuring Airflow (there are several airflow
> roles
> on git)
> - Deploying the pipelines
> - Restarting Airflow webserver/scheduler
>
> It would be great to have Airflow manageable from Hadoop cluster managers
> (Cloudera Manager, Ambari). For this a parcel (for cloudera) should be
> created and installed. If anyone has done this before, please share the
> experience!
>
> Zsolt
>
>
> 2017-11-15 13:30 GMT+01:00 Andrew Maguire <an...@gmail.com>:
>
> > Is there any options at all out there for Airflow as a service type
> > approach?
> >
> > I'd love to just be able to define my dags and load them to some cloud ui
> > and not have to worry about anything else.
> >
> > This looks kinda interesting -
> > http://docs.qubole.com/en/latest/user-guide/airflow/
> > introduction-airflow.html
> >
> > Cheers,
> > Andy
> >
> > On Wed, Nov 15, 2017 at 10:28 AM Driesprong, Fokko <fokko@driesprong.frl
> >
> > wrote:
> >
> > > I'm using Ansible to deploy the Airflow, the steps are:
> > > - First install Airflow using pip (or a rc using curl)
> > > - Do an `airflow version` to trigger the creation of the default config
> > > - Set the config correctly variables in the config using Ansible.
> > > - Deploy the supervisord files
> > > - Start everything
> > >
> > > A separate role is there to deploy Postgres. But if you are working on
> a
> > > cloud environment, you can also get Postgres/MySQL as a service. Hope
> > this
> > > helps.
> > >
> > > Cheers, Fokko
> > >
> > > 2017-11-15 3:19 GMT+01:00 Marc Bollinger <ma...@lumoslabs.com>:
> > >
> > > > Samson <https://github.com/zendesk/samson> deploy that runs a script
> > > > running a Broadside <https://github.com/lumoslabs/broadside> deploy
> > for
> > > > ECS, which bounces the Web and Scheduler workers, and updates the DAG
> > > > directory on the workers. Docker images come from a Github -> Travis
> ->
> > > > Quay
> > > > <https://quay.io/> CI setup.
> > > >
> > > > On Tue, Nov 14, 2017 at 10:18 AM, Alek Storm <al...@gmail.com>
> > > wrote:
> > > >
> > > > > Our TeamCity server detects the master branch has changed, then
> > > packages
> > > > up
> > > > > the repo containing our DAGs as an artifact. We then use SaltStack
> to
> > > > > trigger a bash script on the targeted servers that downloads the
> > > > artifact,
> > > > > moves the files to the right place, and restarts the scheduler (on
> > the
> > > > > master).
> > > > >
> > > > > This allows us to easily revert changes by redeploying a particular
> > > > > TeamCity artifact, without touching the git history.
> > > > >
> > > > > Alek
> > > > >
> > > > > On Nov 14, 2017 11:02 AM, "Andy Hadjigeorgiou" <
> andyxhadji@gmail.com
> > >
> > > > > wrote:
> > > > >
> > > > > > Hey,
> > > > > >
> > > > > > Was just wondering what tools & services everyone uses to deploy
> > new
> > > > > > versions of their data pipelines (understandably this would vary
> > > > greatly
> > > > > > based on tech stack) but I'd love to hear what the community has
> > been
> > > > > > using.
> > > > > >
> > > > > > - Andy
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Airflow Deployment tools

Posted by Zsolt Tóth <to...@gmail.com>.
We are also using Ansible for:
- Installing/upgrading/configuring Airflow (there are several airflow roles
on git)
- Deploying the pipelines
- Restarting Airflow webserver/scheduler

It would be great to have Airflow manageable from Hadoop cluster managers
(Cloudera Manager, Ambari). For this a parcel (for cloudera) should be
created and installed. If anyone has done this before, please share the
experience!

Zsolt


2017-11-15 13:30 GMT+01:00 Andrew Maguire <an...@gmail.com>:

> Is there any options at all out there for Airflow as a service type
> approach?
>
> I'd love to just be able to define my dags and load them to some cloud ui
> and not have to worry about anything else.
>
> This looks kinda interesting -
> http://docs.qubole.com/en/latest/user-guide/airflow/
> introduction-airflow.html
>
> Cheers,
> Andy
>
> On Wed, Nov 15, 2017 at 10:28 AM Driesprong, Fokko <fo...@driesprong.frl>
> wrote:
>
> > I'm using Ansible to deploy the Airflow, the steps are:
> > - First install Airflow using pip (or a rc using curl)
> > - Do an `airflow version` to trigger the creation of the default config
> > - Set the config correctly variables in the config using Ansible.
> > - Deploy the supervisord files
> > - Start everything
> >
> > A separate role is there to deploy Postgres. But if you are working on a
> > cloud environment, you can also get Postgres/MySQL as a service. Hope
> this
> > helps.
> >
> > Cheers, Fokko
> >
> > 2017-11-15 3:19 GMT+01:00 Marc Bollinger <ma...@lumoslabs.com>:
> >
> > > Samson <https://github.com/zendesk/samson> deploy that runs a script
> > > running a Broadside <https://github.com/lumoslabs/broadside> deploy
> for
> > > ECS, which bounces the Web and Scheduler workers, and updates the DAG
> > > directory on the workers. Docker images come from a Github -> Travis ->
> > > Quay
> > > <https://quay.io/> CI setup.
> > >
> > > On Tue, Nov 14, 2017 at 10:18 AM, Alek Storm <al...@gmail.com>
> > wrote:
> > >
> > > > Our TeamCity server detects the master branch has changed, then
> > packages
> > > up
> > > > the repo containing our DAGs as an artifact. We then use SaltStack to
> > > > trigger a bash script on the targeted servers that downloads the
> > > artifact,
> > > > moves the files to the right place, and restarts the scheduler (on
> the
> > > > master).
> > > >
> > > > This allows us to easily revert changes by redeploying a particular
> > > > TeamCity artifact, without touching the git history.
> > > >
> > > > Alek
> > > >
> > > > On Nov 14, 2017 11:02 AM, "Andy Hadjigeorgiou" <andyxhadji@gmail.com
> >
> > > > wrote:
> > > >
> > > > > Hey,
> > > > >
> > > > > Was just wondering what tools & services everyone uses to deploy
> new
> > > > > versions of their data pipelines (understandably this would vary
> > > greatly
> > > > > based on tech stack) but I'd love to hear what the community has
> been
> > > > > using.
> > > > >
> > > > > - Andy
> > > > >
> > > >
> > >
> >
>

Re: Airflow Deployment tools

Posted by Andrew Maguire <an...@gmail.com>.
Is there any options at all out there for Airflow as a service type
approach?

I'd love to just be able to define my dags and load them to some cloud ui
and not have to worry about anything else.

This looks kinda interesting -
http://docs.qubole.com/en/latest/user-guide/airflow/introduction-airflow.html

Cheers,
Andy

On Wed, Nov 15, 2017 at 10:28 AM Driesprong, Fokko <fo...@driesprong.frl>
wrote:

> I'm using Ansible to deploy the Airflow, the steps are:
> - First install Airflow using pip (or a rc using curl)
> - Do an `airflow version` to trigger the creation of the default config
> - Set the config correctly variables in the config using Ansible.
> - Deploy the supervisord files
> - Start everything
>
> A separate role is there to deploy Postgres. But if you are working on a
> cloud environment, you can also get Postgres/MySQL as a service. Hope this
> helps.
>
> Cheers, Fokko
>
> 2017-11-15 3:19 GMT+01:00 Marc Bollinger <ma...@lumoslabs.com>:
>
> > Samson <https://github.com/zendesk/samson> deploy that runs a script
> > running a Broadside <https://github.com/lumoslabs/broadside> deploy for
> > ECS, which bounces the Web and Scheduler workers, and updates the DAG
> > directory on the workers. Docker images come from a Github -> Travis ->
> > Quay
> > <https://quay.io/> CI setup.
> >
> > On Tue, Nov 14, 2017 at 10:18 AM, Alek Storm <al...@gmail.com>
> wrote:
> >
> > > Our TeamCity server detects the master branch has changed, then
> packages
> > up
> > > the repo containing our DAGs as an artifact. We then use SaltStack to
> > > trigger a bash script on the targeted servers that downloads the
> > artifact,
> > > moves the files to the right place, and restarts the scheduler (on the
> > > master).
> > >
> > > This allows us to easily revert changes by redeploying a particular
> > > TeamCity artifact, without touching the git history.
> > >
> > > Alek
> > >
> > > On Nov 14, 2017 11:02 AM, "Andy Hadjigeorgiou" <an...@gmail.com>
> > > wrote:
> > >
> > > > Hey,
> > > >
> > > > Was just wondering what tools & services everyone uses to deploy new
> > > > versions of their data pipelines (understandably this would vary
> > greatly
> > > > based on tech stack) but I'd love to hear what the community has been
> > > > using.
> > > >
> > > > - Andy
> > > >
> > >
> >
>

Re: Airflow Deployment tools

Posted by "Driesprong, Fokko" <fo...@driesprong.frl>.
I'm using Ansible to deploy the Airflow, the steps are:
- First install Airflow using pip (or a rc using curl)
- Do an `airflow version` to trigger the creation of the default config
- Set the config correctly variables in the config using Ansible.
- Deploy the supervisord files
- Start everything

A separate role is there to deploy Postgres. But if you are working on a
cloud environment, you can also get Postgres/MySQL as a service. Hope this
helps.

Cheers, Fokko

2017-11-15 3:19 GMT+01:00 Marc Bollinger <ma...@lumoslabs.com>:

> Samson <https://github.com/zendesk/samson> deploy that runs a script
> running a Broadside <https://github.com/lumoslabs/broadside> deploy for
> ECS, which bounces the Web and Scheduler workers, and updates the DAG
> directory on the workers. Docker images come from a Github -> Travis ->
> Quay
> <https://quay.io/> CI setup.
>
> On Tue, Nov 14, 2017 at 10:18 AM, Alek Storm <al...@gmail.com> wrote:
>
> > Our TeamCity server detects the master branch has changed, then packages
> up
> > the repo containing our DAGs as an artifact. We then use SaltStack to
> > trigger a bash script on the targeted servers that downloads the
> artifact,
> > moves the files to the right place, and restarts the scheduler (on the
> > master).
> >
> > This allows us to easily revert changes by redeploying a particular
> > TeamCity artifact, without touching the git history.
> >
> > Alek
> >
> > On Nov 14, 2017 11:02 AM, "Andy Hadjigeorgiou" <an...@gmail.com>
> > wrote:
> >
> > > Hey,
> > >
> > > Was just wondering what tools & services everyone uses to deploy new
> > > versions of their data pipelines (understandably this would vary
> greatly
> > > based on tech stack) but I'd love to hear what the community has been
> > > using.
> > >
> > > - Andy
> > >
> >
>

Re: Airflow Deployment tools

Posted by Marc Bollinger <ma...@lumoslabs.com>.
Samson <https://github.com/zendesk/samson> deploy that runs a script
running a Broadside <https://github.com/lumoslabs/broadside> deploy for
ECS, which bounces the Web and Scheduler workers, and updates the DAG
directory on the workers. Docker images come from a Github -> Travis -> Quay
<https://quay.io/> CI setup.

On Tue, Nov 14, 2017 at 10:18 AM, Alek Storm <al...@gmail.com> wrote:

> Our TeamCity server detects the master branch has changed, then packages up
> the repo containing our DAGs as an artifact. We then use SaltStack to
> trigger a bash script on the targeted servers that downloads the artifact,
> moves the files to the right place, and restarts the scheduler (on the
> master).
>
> This allows us to easily revert changes by redeploying a particular
> TeamCity artifact, without touching the git history.
>
> Alek
>
> On Nov 14, 2017 11:02 AM, "Andy Hadjigeorgiou" <an...@gmail.com>
> wrote:
>
> > Hey,
> >
> > Was just wondering what tools & services everyone uses to deploy new
> > versions of their data pipelines (understandably this would vary greatly
> > based on tech stack) but I'd love to hear what the community has been
> > using.
> >
> > - Andy
> >
>

Re: Airflow Deployment tools

Posted by Alek Storm <al...@gmail.com>.
Our TeamCity server detects the master branch has changed, then packages up
the repo containing our DAGs as an artifact. We then use SaltStack to
trigger a bash script on the targeted servers that downloads the artifact,
moves the files to the right place, and restarts the scheduler (on the
master).

This allows us to easily revert changes by redeploying a particular
TeamCity artifact, without touching the git history.

Alek

On Nov 14, 2017 11:02 AM, "Andy Hadjigeorgiou" <an...@gmail.com> wrote:

> Hey,
>
> Was just wondering what tools & services everyone uses to deploy new
> versions of their data pipelines (understandably this would vary greatly
> based on tech stack) but I'd love to hear what the community has been
> using.
>
> - Andy
>

Re: Airflow Deployment tools

Posted by Shah Altaf <me...@gmail.com>.
Hello. We're running Airflow in docker
<https://github.com/puckel/docker-airflow> - so our deploy uses Teamcity to
SSH to the Airflow server, replace files, then docker-compose
stop/rm/build/up.


On Tue, Nov 14, 2017 at 5:02 PM Andy Hadjigeorgiou <an...@gmail.com>
wrote:

> Hey,
>
> Was just wondering what tools & services everyone uses to deploy new
> versions of their data pipelines (understandably this would vary greatly
> based on tech stack) but I'd love to hear what the community has been
> using.
>
> - Andy
>

Re: Airflow Deployment tools

Posted by Sergei Iakhnin <ll...@gmail.com>.
Saltstack.

On Tue, 14 Nov 2017, 18:14 Scott Halgrim, <sc...@zapier.com.invalid>
wrote:

> We have a bash script. Main features
>
>
> • Uses AWS metadata URL to determine if it’s a prod box or dev box and
> pulls appropriate branches
> • Gets difference between commit on box and commit on remote tip and git
> logs the difference into Slack
> • Restarts all the upstart bits
>
>
> That’s on the worker. On the scheduler we just do a git pull and manual
> restart of upstart bits :-P
>
> So yeah, this needs to be done with better tooling and I’d love to hear
> what others are using, too
>
> Scott
>
>
> On Nov 14, 2017, 9:02 AM -0800, Andy Hadjigeorgiou <an...@gmail.com>,
> wrote:
> > Hey,
> >
> > Was just wondering what tools & services everyone uses to deploy new
> > versions of their data pipelines (understandably this would vary greatly
> > based on tech stack) but I'd love to hear what the community has been
> using.
> >
> > - Andy
>
-- 

Sergei

Re: Airflow Deployment tools

Posted by Scott Halgrim <sc...@zapier.com.INVALID>.
We have a bash script. Main features


• Uses AWS metadata URL to determine if it’s a prod box or dev box and pulls appropriate branches
• Gets difference between commit on box and commit on remote tip and git logs the difference into Slack
• Restarts all the upstart bits


That’s on the worker. On the scheduler we just do a git pull and manual restart of upstart bits :-P

So yeah, this needs to be done with better tooling and I’d love to hear what others are using, too

Scott


On Nov 14, 2017, 9:02 AM -0800, Andy Hadjigeorgiou <an...@gmail.com>, wrote:
> Hey,
>
> Was just wondering what tools & services everyone uses to deploy new
> versions of their data pipelines (understandably this would vary greatly
> based on tech stack) but I'd love to hear what the community has been using.
>
> - Andy