sapling/eden/fs/service
Jessica Vandebon 48629a5aca extend top dirs predictive prefetch option to support optional parameter specification
Summary:
The SmartPlatform service that queries for a user's most used directories allows optional parameters of: os, startTime, endTime, and sandcastleAlias instead of user. This diff extends the current predictive prefetch option which queries based on the current user, mount repository, and a default numResults, to allow specification of all parameters including the optional ones.

If a user and/or repo is not specified these are determined from the server state and mount, respectively. If numResults is not specified, a default value is used (predictivePrefetchProfileSize, currently 10,000).

For sandcastle aliases, we check if the SANDCASTLE_ALIAS environment variable is set, and if so, use the value as a parameter. If a sandcastle alias is specified, the smartservice will ignore the user and query based on the alias, otherwise a user is assumed.

Differential Revision: D30160507

fbshipit-source-id: 174797f0a6f840bb33f669c8d1bb61d76ff7a309
2021-08-18 06:42:17 -07:00
..
oss service: unify startup on Windows/Linux/macOS 2020-10-22 16:24:17 -07:00
test Remove direct uses of gmock.h 2021-07-07 13:32:31 -07:00
.gitignore watchman: pull in thrift in the oss build for eden support 2019-02-04 21:37:47 -08:00
CMakeLists.txt Add a Thrift method to tell EdenFS to prefetch a user’s most accessed files 2021-08-06 10:04:26 -07:00
eden.thrift extend top dirs predictive prefetch option to support optional parameter specification 2021-08-18 06:42:17 -07:00
EdenCPUThreadPool.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
EdenCPUThreadPool.h Tidy up license headers 2019-10-11 05:28:23 -07:00
EdenInit.cpp eden: use fmt::format instead of folly::to 2020-09-23 21:14:20 -07:00
EdenInit.h eden: use fmt::format instead of folly::to 2020-09-23 21:14:20 -07:00
EdenMain.cpp create ActivityRecorder boilerplate and thread it to EdenMount 2021-07-23 12:32:25 -07:00
EdenMain.h create ActivityRecorder boilerplate and thread it to EdenMount 2021-07-23 12:32:25 -07:00
EdenServer.cpp use processor factory to avoid segfault on Windows 2021-07-29 16:25:32 -07:00
EdenServer.h create ActivityRecorder boilerplate and thread it to EdenMount 2021-07-23 12:32:25 -07:00
EdenServiceHandler.cpp extend top dirs predictive prefetch option to support optional parameter specification 2021-08-18 06:42:17 -07:00
EdenServiceHandler.h use INSTRUMENT_THRIFT_CALL_WITH_FUNCTION_NAME in _globFiles instead of passing FetchContext 2021-08-06 20:40:58 -07:00
EdenStateDir.cpp nfs: allow mountd and nfsd to bind to a unix socket on macOS 2021-05-12 13:06:57 -07:00
EdenStateDir.h nfs: allow mountd and nfsd to bind to a unix socket on macOS 2021-05-12 13:06:57 -07:00
fb-edenfs@.service set OOMScoreAdjust to -20 in systemd unit 2019-10-02 12:53:28 -07:00
PeriodicTask.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
PeriodicTask.h Tidy up license headers 2019-10-11 05:28:23 -07:00
PrettyPrinters.cpp Migrate to field_ref Thrift API 2020-07-21 11:23:35 -07:00
PrettyPrinters.h Tidy up license headers 2019-10-11 05:28:23 -07:00
PrivHelperMain.cpp edenfs: remove use of fork from StartupLogger 2020-09-18 17:22:39 -07:00
StartupLogger.cpp Changing eden/Eden/edenfs/Edenfs in the help and other user visible texts to EdenFS 2021-07-06 12:17:20 -07:00
StartupLogger.h Log how long it took for eden to start 2021-04-01 10:32:18 -07:00
streamingeden.thrift add edenfsctl trace fs support for nfs 2021-06-29 17:50:25 -07:00
Systemd.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
Systemd.h Tidy up license headers 2019-10-11 05:28:23 -07:00
ThriftPermissionChecker.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
ThriftPermissionChecker.h Tidy up license headers 2019-10-11 05:28:23 -07:00
ThriftUtil.h introduce a variable-width RootId type that identifies the root of an EdenFS checkout's contents 2021-06-07 17:25:31 -07:00