You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tez.apache.org by Amit Tiwari <ti...@yahoo-inc.com> on 2015/05/15 20:19:00 UTC

Enable local fetch optimization by default

Hey guys,Local fetch optimization seems like an awesome feature. I'd like to add some tests for our CI/CD pipeline that exercise this feature.Any thoughts on what kind of setup, data etc I may need for this?thanks--amit


Re: Enable local fetch optimization by default

Posted by Gopal Vijayaraghavan <go...@apache.org>.
> Another optimization which is far more useful is the shared fetch
>optimization. This tries to avoid copying the same data onto the same
>host multiple times.
> We've seen fairly good gains when fetching data to 10K reducers from a
>single source - 28 minutes
> down to 2 minutes. There's an example - BroadcastLoadGen - which can be
>used to try out this feature.


Since in 0.5.x we missed out on whitelisting runtime shared fetch, that I
couldn¹t test heavily in production installs - so it would be amazing if
you can do some broadcast JOIN tests with that enabled on a multi-rack
cluster.

My testing on a single-rack cluster has proved that even with full 10 GigE
node-to-node, it improves broadcast performance by about 10-20%, but on a
large cluster I¹m expecting at least a 2-3x performance improvement for
large map-joins with that feature.

Would be great to get scale validation on that for a user workload, since
I tested it on 350 nodes with broadcastloadgen (which showed the ~15x
gains), but did not test that heavily with a user workload.

Cheers,
Gopal



Re: Enable local fetch optimization by default

Posted by Siddharth Seth <ss...@apache.org>.
Amit,
The local fetch optimization is enabled by default in Tez-0.7. It reduces
the number of connections by a bit and ends up reading files generated on
the same box directly.

Another optimization which is far more useful is the shared fetch
optimization. This tries to avoid copying the same data onto the same host
multiple times. We've seen fairly good gains when fetching data to 10K
reducers from a single source - 28 minutes down to 2 minutes. There's an
example - BroadcastLoadGen - which can be used to try out this feature.

For the local fetch optimization - you could use the same job (may need
some modification), to control the amount of data generated and fetched by
each node. i.e. measure advantages with a 1MB fetch/local vs 200MB fetch /
local read.

HTH
- Sid

On Fri, May 15, 2015 at 11:19 AM, Amit Tiwari <ti...@yahoo-inc.com> wrote:

> Hey guys,
> Local fetch optimization seems like an awesome feature. I'd like to add
> some tests for our CI/CD pipeline that exercise this feature.
> Any thoughts on what kind of setup, data etc I may need for this?
> thanks
> --amit
>
>

Re: Enable local fetch optimization by default

Posted by Hitesh Shah <hi...@apache.org>.
Hello Amit, 

For the most part, all that local fetch does is that in the case where the upstream vertex's output is on the same host where the downstream vertex task is running, the fetcher reads the data directly from disk instead of going via the http-based shuffle handler. This is an optimization that would perform well in smaller clusters ( or in cases where there is a high re-use of containers across vertices ).

For the setup, a simple approach might be to use a smaller cluster ( or artificially made small by using yarn node labels to force a job to run on a smaller subset of nodes ).

@Prakash/@Rajesh might be able to shed light on what counters you can look at to verify that local fetch kicked in and also how to tune the setup further to test various scenarios.

thanks
— Hitesh

On May 15, 2015, at 11:19 AM, Amit Tiwari <ti...@yahoo-inc.com> wrote:

> Hey guys,
> Local fetch optimization seems like an awesome feature. I'd like to add some tests for our CI/CD pipeline that exercise this feature.
> Any thoughts on what kind of setup, data etc I may need for this?
> thanks
> --amit
>