Open
Description
It seems there is a 16kb limit on the amount of user_data that can be passed to an EC2 instance when starting up.
We serialize the local Dask config and pass it to the scheduler and workers via the user_data.
dask-cloudprovider/dask_cloudprovider/generic/vmcluster.py
Lines 33 to 35 in da45482
Depending on what config the user has locally this can tip us over the limit and result in the AWS API rejecting the instance creation call.
botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the RunInstances operation: User data is limited to 16384 bytes