Switch to region specific runtimes#169
Conversation
| # NOTE: There is some probability we will hit the base key ? | ||
| self.assertNotEqual(future.run_status['runtime_s3_key_used'], | ||
| base_runtime_key) | ||
| # def test_no_shard(self): |
There was a problem hiding this comment.
just to be clear is this test not going to be applicable from here on or is it that we will add shards to the new region-specific runtimes as well ?
There was a problem hiding this comment.
Sorry I don't quite understand the question; All future runtimes, including those that are region-specific, will be sharded. Thus eliminating these tests.
This seems reasonable because:
- if you don't shard the runtime you run into performance issues really quickly
- All "sharding" technically is is sticking the runtime at some locations pointed to by the meta.json. So we could in the future support single-tarball sharding if we wanted with no change in code. In fact, for testing, I often don't fully shard and just have the meta.json point to a single tarball.
There was a problem hiding this comment.
Got it. I was just wondering which way we went in terms of all sharding vs. no sharding.
Do we still want to test the meta.json -> shards being picked up correctly ? If not we can just delete these tests.
|
Ok @shivaram got rid of that test |
shivaram
left a comment
There was a problem hiding this comment.
Thanks @ericmjonas - LGTM
This pull request changes:
In particular, we now explicitly get the runtime meta.json instead of having the hack where we assume there is some root .tar.gz. This should have no user-visible impact; the sharded runtime has been default for quite a while.
We now have runtimes and associated buckets in all the major US regions, in public buckets. It's easy to add more, as well.
I am not tying this to the new runtime builder as technically they are independent. Old runtimes should work with this code as well.
Closes issue #164