Skip to content

Conversation

@Amey-D
Copy link
Contributor

@Amey-D Amey-D commented Oct 13, 2017

Instead of git pulling the sources this PR utilizes gitiles' feature
to download the source tarball at the specified commit. This also
removes git clone from the Dockerfile.

Instead of `git pull`ing the sources this PR utilizes gitiles' feature
to download the source tarball at the specified commit.  This also
removes `git clone` from the Dockerfile.
Copy link
Contributor

@rohitagarwal003 rohitagarwal003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ time curl -sS "${download_url}" -o "${archive_filename}"

real	1m10.413s
user	0m0.829s
sys	0m1.958s
$ time tar xf "${archive_filename}"

real	0m9.957s
user	0m2.494s
sys	0m7.319s

I don't think this added latency on node bring up is going to work.

fi
local -r download_url = "https://chromium.googlesource.com/chromiumos/third_party/kernel/+archive/${LAKITU_KERNEL_SHA1}.tar.gz"
local -r archive_filename = "cos-kernel.tar.gz"
until curl -sS "${download_url}" -o "${archive_filename}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this command without setting LAKITA_KERNEL_SHA and it still passed.

@Amey-D
Copy link
Contributor Author

Amey-D commented Oct 13, 2017

Is there a way we can measure e2e latency on GCE? Presumably with this PR the Docker container would also become smaller so docker pull would run faster.

@rohitagarwal003
Copy link
Contributor

Is there a way we can measure e2e latency on GCE?

Unfortunately, there's no good way to easily do it.

Presumably with this PR the Docker container would also become smaller so docker pull would run faster.

Good point. However, I am still very much against putting chromium's git infrastructure in the node bring up critical path. GCR is designed for such things and has SLAs etc. Chromium's git infrastructure is not designed for this and may get overwhelmed by this. Imagine someone starting this DaemonSet on a 100 node cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants