Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer auto scaling?

Given that GCP Cloud Composer is running with GKE/GCE, is it auto scaling?

Now I have 3 nodes in the cluster to support say, 100 DAGs.

Later, if I have about 300 DAGs, will it scale up itself (w/ celery workers)?

like image 480
Ching-Chien Chen Avatar asked May 24 '18 22:05

Ching-Chien Chen


2 Answers

We currently don't support auto-scaling but it's on our roadmap. You could however manually scale up/down the GKE cluster by updating the nodeCount value.

like image 96
Feng Lu Avatar answered Oct 07 '22 02:10

Feng Lu


I just published an article showing how to enable autoscale in its underlying kubernetes https://link.medium.com/AMUlwUIkD0.

Basically:

  1. Enable autoscale on the node level

  2. Apply HorizontalPodAutoscaler to airflow-worker deployment

  3. Increase some airflow config parameter to remove the bottleneck

This has been tested in composer-1.7.2 and composer-1.7.5 but might be applicable to other version as well

Do check it out

like image 45
Joshua H Avatar answered Oct 07 '22 00:10

Joshua H