Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Issue 2575383002: Add server/cache support to gaeconfig. (Closed)

Created:
4 years ago by dnj
Modified:
3 years, 8 months ago
Reviewers:
iannucci
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Add server/cache support to gaeconfig. Rewrite "gaeconfig" and apps that use it to use "server/cache" instead. Because this fully replaces usage of common/config/caching and common/config/impl/erroring, delete those packages. Also, common/config is no longer used in Contexts, so delete that as well. BUG=chromium:674378 TEST=local,unit Review-Url: https://codereview.chromium.org/2575383002 Committed: https://github.com/luci/luci-go/commit/45e9a86d32dabca5671d0c1773e124dbc2ec8b5c

Patch Set 1 #

Total comments: 8

Patch Set 2 : Relocated, remove "all" exception from LogDog, cache is now proccache => memcache. #

Patch Set 3 : Rebarse #

Patch Set 4 : Un-collapse. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+739 lines, -1856 lines) Patch
M appengine/gaeconfig/cache.go View 1 1 chunk +0 lines, -97 lines 0 comments Download
M appengine/gaeconfig/cache_test.go View 1 1 chunk +0 lines, -99 lines 0 comments Download
M appengine/gaeconfig/default.go View 1 1 chunk +0 lines, -146 lines 0 comments Download
D appengine/gaeconfig/doc.go View 1 1 chunk +0 lines, -7 lines 0 comments Download
M appengine/gaeconfig/settings.go View 1 1 chunk +0 lines, -144 lines 0 comments Download
M appengine/gaemiddleware/context.go View 1 3 chunks +2 lines, -3 lines 0 comments Download
D common/config/context.go View 1 chunk +0 lines, -148 lines 0 comments Download
D common/config/filters/caching/config.go View 1 chunk +0 lines, -394 lines 0 comments Download
D common/config/filters/caching/config_test.go View 1 chunk +0 lines, -388 lines 0 comments Download
D common/config/filters/caching/doc.go View 1 chunk +0 lines, -7 lines 0 comments Download
D common/config/impl/erroring/erroring.go View 1 chunk +0 lines, -66 lines 0 comments Download
M common/data/text/templateproto/loader.go View 1 chunk +3 lines, -11 lines 0 comments Download
M common/data/text/templateproto/loader_test.go View 3 chunks +3 lines, -8 lines 0 comments Download
M dm/api/template/loader.go View 1 1 chunk +9 lines, -13 lines 0 comments Download
M dm/appengine/deps/auth.go View 1 1 chunk +8 lines, -21 lines 0 comments Download
M dm/appengine/distributor/fake/fake.go View 1 3 chunks +7 lines, -5 lines 0 comments Download
M dm/appengine/distributor/registry.go View 1 2 chunks +12 lines, -10 lines 0 comments Download
M logdog/appengine/coordinator/auth.go View 1 1 chunk +10 lines, -12 lines 0 comments Download
M logdog/appengine/coordinator/config/config.go View 1 4 chunks +15 lines, -28 lines 0 comments Download
M logdog/appengine/coordinator/config/projects.go View 1 3 chunks +45 lines, -66 lines 0 comments Download
M logdog/appengine/coordinator/context.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M logdog/appengine/coordinator/context_test.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M logdog/appengine/coordinator/coordinatorTest/context.go View 1 2 8 chunks +23 lines, -18 lines 0 comments Download
M logdog/appengine/coordinator/coordinatorTest/logStream.go View 1 1 chunk +4 lines, -2 lines 0 comments Download
M logdog/appengine/coordinator/endpoints/logs/service.go View 1 2 chunks +1 line, -1 line 0 comments Download
M logdog/appengine/coordinator/endpoints/services/getConfig.go View 1 1 chunk +1 line, -1 line 0 comments Download
M logdog/appengine/coordinator/hierarchy/hierarchy.go View 1 1 chunk +2 lines, -1 line 0 comments Download
M logdog/appengine/coordinator/hierarchy/hierarchy_test.go View 1 2 chunks +3 lines, -3 lines 0 comments Download
M logdog/appengine/coordinator/hierarchy/project.go View 1 3 chunks +2 lines, -17 lines 0 comments Download
M logdog/appengine/coordinator/project.go View 1 2 chunks +0 lines, -35 lines 0 comments Download
M logdog/client/butler/bundler/bundler.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M logdog/client/cli/subcommandCat.go View 1 2 chunks +1 line, -1 line 0 comments Download
M logdog/client/cli/subcommandList.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M logdog/client/cmd/logdog_annotee/main.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M logdog/client/coordinator/query.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M logdog/client/coordinator/query_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M logdog/client/coordinator/stream.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M logdog/common/storage/bigtable/bigtable_test.go View 1 1 chunk +2 lines, -1 line 0 comments Download
M logdog/common/storage/bigtable/storage.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M logdog/common/storage/bigtable/storage_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M logdog/server/archivist/archivist_test.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M logdog/server/archivist/storageSource.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M logdog/server/collector/collector.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M logdog/server/collector/coordinator/cache.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M logdog/server/collector/coordinator/cache_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M logdog/server/collector/coordinator/coordinator.go View 1 1 chunk +1 line, -0 lines 0 comments Download
A luci_config/appengine/backend/memcache/cache.go View 1 1 chunk +99 lines, -0 lines 0 comments Download
A luci_config/appengine/backend/memcache/cache_test.go View 1 1 chunk +137 lines, -0 lines 0 comments Download
A luci_config/appengine/format/context.go View 1 1 chunk +25 lines, -0 lines 0 comments Download
A luci_config/appengine/format/default.go View 1 1 chunk +19 lines, -0 lines 0 comments Download
A luci_config/appengine/gaeconfig/default.go View 1 3 1 chunk +122 lines, -0 lines 0 comments Download
A + luci_config/appengine/gaeconfig/doc.go View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + luci_config/appengine/gaeconfig/settings.go View 1 5 chunks +52 lines, -2 lines 0 comments Download
M milo/appengine/buildbot/pubsub_test.go View 1 2 chunks +3 lines, -2 lines 0 comments Download
M milo/appengine/logdog/http.go View 1 2 chunks +1 line, -1 line 0 comments Download
M milo/appengine/settings/acl_test.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M milo/appengine/settings/config.go View 1 3 chunks +20 lines, -23 lines 0 comments Download
M milo/appengine/settings/config_test.go View 1 3 chunks +4 lines, -3 lines 0 comments Download
M scheduler/appengine/catalog/catalog.go View 1 5 chunks +30 lines, -25 lines 0 comments Download
M scheduler/appengine/catalog/catalog_test.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tokenserver/appengine/certconfig/rpc_import_ca_configs.go View 1 5 chunks +21 lines, -13 lines 0 comments Download
M tokenserver/appengine/certconfig/rpc_import_ca_configs_test.go View 1 2 chunks +3 lines, -3 lines 0 comments Download
M tokenserver/appengine/delegation/rpc_import_delegation_configs.go View 1 5 chunks +23 lines, -18 lines 0 comments Download
M tokenserver/appengine/delegation/rpc_import_delegation_configs_test.go View 1 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
dnj
PTAL. Full stack is: https://codereview.chromium.org/2580713002 (base) https://codereview.chromium.org/2578893002 (textproto) https://codereview.chromium.org/2576993002 (access) https://codereview.chromium.org/2576343002 (erroring) https://codereview.chromium.org/2582433002 (test) https://codereview.chromium.org/2573403002 ...
4 years ago (2016-12-15 05:11:34 UTC) #2
iannucci
looks reasonable to me, but I think it would be safer to change each service ...
3 years, 11 months ago (2017-01-07 21:05:26 UTC) #3
dnj
PTAL, updated. https://codereview.chromium.org/2575383002/diff/1/appengine/gaeconfig/cache.go File appengine/gaeconfig/cache.go (right): https://codereview.chromium.org/2575383002/diff/1/appengine/gaeconfig/cache.go#newcode5 appengine/gaeconfig/cache.go:5: package gaeconfig On 2017/01/07 21:05:26, iannucci wrote: ...
3 years, 11 months ago (2017-01-10 03:30:07 UTC) #4
iannucci
lgtm
3 years, 11 months ago (2017-01-11 02:57:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2575383002/20001
3 years, 11 months ago (2017-01-11 22:56:11 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Linux Trusty 64 Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/33a890a10b4bfb10) ...
3 years, 11 months ago (2017-01-11 22:58:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2575383002/40001
3 years, 11 months ago (2017-01-11 23:05:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2575383002/60001
3 years, 11 months ago (2017-01-11 23:10:36 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://github.com/luci/luci-go/commit/45e9a86d32dabca5671d0c1773e124dbc2ec8b5c
3 years, 11 months ago (2017-01-11 23:21:45 UTC) #19
nodir
FWIU this made scheduler cron job that updates configs use two caching layers (process memory, ...
3 years, 8 months ago (2017-04-05 21:03:53 UTC) #20
dnj
On 2017/04/05 21:03:53, nodir wrote: > FWIU this made scheduler cron job that updates configs ...
3 years, 8 months ago (2017-04-05 21:14:05 UTC) #21
Vadim Sh.
On 2017/04/05 21:14:05, dnj wrote: > On 2017/04/05 21:03:53, nodir wrote: > > FWIU this ...
3 years, 8 months ago (2017-04-05 21:15:48 UTC) #22
dnj
On 2017/04/05 21:15:48, Vadim Sh. wrote: > On 2017/04/05 21:14:05, dnj wrote: > > On ...
3 years, 8 months ago (2017-04-05 21:30:41 UTC) #23
Vadim Sh.
On 2017/04/05 21:30:41, dnj wrote: > On 2017/04/05 21:15:48, Vadim Sh. wrote: > > On ...
3 years, 8 months ago (2017-04-05 21:33:12 UTC) #24
iannucci
I suspect that this is all hacking around the lack of pubsub pushes from luci-config. ...
3 years, 8 months ago (2017-04-05 21:35:48 UTC) #25
nodir
On 2017/04/05 21:14:05, dnj wrote: > On 2017/04/05 21:03:53, nodir wrote: > > FWIU this ...
3 years, 8 months ago (2017-04-06 00:57:13 UTC) #26
dnj
3 years, 8 months ago (2017-04-06 01:03:44 UTC) #27
Message was sent while issue was closed.
On 2017/04/06 00:57:13, nodir wrote:
> On 2017/04/05 21:14:05, dnj wrote:
> > On 2017/04/05 21:03:53, nodir wrote:
> > > FWIU this made scheduler cron job that updates configs use two caching
> layers
> > > (process memory, memcache) which has has 10min expiration each
> > 
> > Both expirations should start at the same time.
> 
> If memcache expires the moment process memory cache expires, what's the point
of
> memcaching?..

New processes spin up and shut down all the time.

Powered by Google App Engine
This is Rietveld 408576698