EngFlow / bazel_invocation_analyzer

A tool that automatically analyzes a Bazel build's profile and offers suggestions on how to make it faster.
https://analyzer.engflow.com
Apache License 2.0
90 stars 10 forks source link

Surface action cache hit rate #90

Open saraadams opened 1 year ago

saraadams commented 1 year ago

Problem

Surface the action cache hit rate, in particular if remote caching is used.

Suggested solution

The following events may help detect these:

DataProvider to provide rate and/or absolute numbers (cache checks, successful cache checks) SuggestionProvider to suggest strategies to increase the cache hit rate, e.g. --incompatible_strict_action_env

saraadams commented 1 year ago

If latency is high, then having many parallel check cache hit actions can help speed up getting remote cache hits (as the jobs are idle due to high latency). An estimated latency might be extracted by looking for the shortest check cache hit entry. Increasing --jobs to above your machine's # of cores could help.

saraadams commented 9 months ago