You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Hans van den Bogert <ha...@gmail.com> on 2015/09/03 14:56:26 UTC
Tuning - tasks per core
The tuning documentations tells us to have 2-3 tasks per CPU core
> In general, we recommend 2-3 tasks per CPU core in your cluster.
I’m wondering how you’d actually accomplish this.
Setting spark.task.cpus to a fraction like 0.5 or 0.3 does not work.
Perhaps I’m misunderstanding, any advice is welcome,
Regards,
Hans
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
Re: Tuning - tasks per core
Posted by Igor Berman <ig...@gmail.com>.
suppose you have 1 job that do some transformation, suppose you have X
cores in your cluster and you are willing to give all of them to your job
suppose you have no shuffles(to keep it simple)
set number of partitions of your input data to be 3X or 2X, thus you'll get
2/3 tasks per each core
On 3 September 2015 at 15:56, Hans van den Bogert <ha...@gmail.com>
wrote:
> The tuning documentations tells us to have 2-3 tasks per CPU core
>
> > In general, we recommend 2-3 tasks per CPU core in your cluster.
>
> I’m wondering how you’d actually accomplish this.
> Setting spark.task.cpus to a fraction like 0.5 or 0.3 does not work.
>
> Perhaps I’m misunderstanding, any advice is welcome,
>
> Regards,
>
> Hans
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>