bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Have a generic, easy-to-setup distributed caching

Open damienmg opened this issue 10 years ago • 36 comments

Build up on Alpha Lam's initial version to have a viable version for all users of Bazel.

@philwo is synchronizing all the efforts in that perspective.

damienmg avatar Feb 15 '16 10:02 damienmg

@hhclam fyi

tfarina avatar Mar 22 '16 20:03 tfarina

Hi, What's the status of this issue?

ittaiz avatar May 17 '16 04:05 ittaiz

@ittaiz We have prototype implementations of distributed caching and remote execution in Bazel now:

Distributed caching: https://github.com/bazelbuild/bazel/commit/79adf59e2973754c8c0415fcab45cd58c7c34697 Remote execution: https://github.com/bazelbuild/bazel/commit/a1a79cb0a1880e825618c6440219680f27faa0b7

Here is some documentation: https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/remote/README.md

We will continue to improve this and welcome feedback :) Please file bugs and assign to @hhclam if you encounter issues with these features.

philwo avatar May 17 '16 09:05 philwo

got you. Couple of questions:

  1. Are there any current thoughts on improvements or waiting for feedback? Asking since I saw some thoughts in the google group discussion
  2. Can we have the readme's contents incorporated to the bazel.io site? I looked for it there and couldn't find it. Also maybe update the roadmap that this is done. People just skimming the roadmap might not know it's there (I knew something is there by deep diving into the code).
  3. If I have thoughts they should be written here? Should they start in bazel-discuss and "graduate" here?

Thanks!

ittaiz avatar May 17 '16 10:05 ittaiz

It is still experimental so I think we need to at least discuss on the future of the Bazel interface before documenting it (if we going to change it a lot, it is better to not put too much documentation for now).

damienmg avatar May 17 '16 10:05 damienmg

ok. I think when people evaluate bazel vs pants vs buck the distributed caching and execution plays a big part. Having a note saying it's already there in as a prototype and can be used by early adopters, willing to be broken, can encourage people. I'm such a user.

ittaiz avatar May 17 '16 10:05 ittaiz

Yeah that sounds reasonable. We should at least do a blog post with basic documentation of both feature. But we need to sync with Alpha who did almost all the work.

On Tue, May 17, 2016 at 12:53 PM Ittai Zeidman [email protected] wrote:

ok. I think when people evaluate bazel vs pants vs buck the distributed caching and execution plays a big part. Having a note saying it's already there in as a prototype and can be used by early adopters, willing to be broken, can encourage people. I'm such a user.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/bazelbuild/bazel/issues/904#issuecomment-219684155

damienmg avatar May 17 '16 10:05 damienmg

The discussion about where this feature should proceed will be in bazel-dev?

ittaiz avatar May 17 '16 11:05 ittaiz

We are planning to have a live discussion then we will follow up on bazel-dev.

On Tue, May 17, 2016 at 1:21 PM Ittai Zeidman [email protected] wrote:

The discussion about where this feature should proceed will be in bazel-dev?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/bazelbuild/bazel/issues/904#issuecomment-219689523

damienmg avatar May 17 '16 11:05 damienmg

looking forward to it

ittaiz avatar May 17 '16 11:05 ittaiz

Just as a feedback from a random C++ developer, missing distributed cache is a deal breaker for me, especially when I consider that I already got through pain of learning make, QMake, CMake, gradle, and what not, and doing it anew just to get another way to build locally... It just doesn't justify the effort.

LavaScornedOven avatar Nov 10 '16 13:11 LavaScornedOven

Any progress on this?

softprops avatar Jan 05 '17 04:01 softprops

Not really, documentation is still missing...

damienmg avatar Jan 09 '17 11:01 damienmg

@damienmg not to belittle documentation but does that mean the code itself is ready in your opinion?

ittaiz avatar Jan 09 '17 11:01 ittaiz

To use for remote caching yes, but it still has no server side. Hazelcast can be used but I am not sure about the stability.

I also prototyped a local disk cache yesterday, see https://cr.bazel.build/8133

damienmg avatar Jan 09 '17 11:01 damienmg

(side-note: the protocol is still not stable, so we might change stuff in the future)

damienmg avatar Jan 09 '17 11:01 damienmg

Thanks for the clarification. Do you expect distributed actions to be supported any time soon?

ittaiz avatar Jan 09 '17 11:01 ittaiz

It is in the same state that caching, no server-side, no documentation still subject to change As said on IRC to @abergmeier, the protocol itself should work.

damienmg avatar Jan 09 '17 11:01 damienmg

Hi,

The FAQ that links here says: "The open source Bazel code runs build operations locally. We believe that this is fast enough for most of our users, but work is underway to provide distributed caching."

I think that's going to lead to a lot of disappointment. People that are considering adopting Google's build tool are highly likely to already be frustrated by long build times because they have (smaller-but-still-)very large projects to build. That's certainly how I arrived here, and having cluster-based operation actually supported is what could make it worth an investment to evaluate bazel in-depth.

So, please consider this encouragement to push the feature over the line to completion. Thanks!

dabrahams avatar Jan 29 '17 01:01 dabrahams

@dabrahams The feature (remote caching, remote execution and a combination of both) is definitely coming and there's a lot of work related to it going on. We still need some time, though.

philwo avatar Feb 22 '17 12:02 philwo