Reputation: 2451
I was wondering if there is any memory size limit for an XCOM
in airflow ?
Upvotes: 14
Views: 18078
Reputation: 101
Airflow is NOT a processing framework. It is not Spark, neither Flink. Airflow is an orchestrator, and it the best orchestrator. There is no optimisations to process big data in Airflow neither a way to distribute it (maybe with one executor, but this is another topic). If you try to exchange big data between your tasks, you will end up with a memory overflow error! Oh, and do you know the xcom limit size in Airflow?
It depends on the database you use:
Yes, 64 Kilobytes for MySQL! Again, use XComs only for sharing small amount of data.
ref: https://marclamberti.com/blog/airflow-xcom/
Upvotes: 10
Reputation: 887
According to the source code check this source code link, maximum XCOM size is 48KB.
Upvotes: 7
Reputation: 2451
After looking at the source code it looks there is none, the type is a large binary in SQLAlchemy. Code So according to the documentation is an unlengthed binary type for the target platform, such as BLOB on MySQL and BYTEA for PostgreSQL.
Upvotes: 6