Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Dataset.records doesn't create enough partitions for Databricks autoscaling #213

@tdsmith

Description

@tdsmith

The value of sc.defaultParallelism increases as an autoscaling Databricks Spark cluster grows. At startup, it's only 8. This means that _group_by_size_greedy(summaries, 10 * sc.defaultParallelism) in Dataset.records creates only 80 partitions on a quiet autoscaling cluster. A Databricks cluster set to autoscale up to 30 nodes will eventually have 240 worker processes available, but will only be able to use 80 of them to parse pings.

It would be nice if it were possible to pass in a number of partitions, or if the library could detect that it's on an autoscaling Databricks cluster and do something clever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions