sapling/eden/mononoke
Thomas Orozco 491b5b5318 mononoke: make bookmarks cache ttl a tunable
Summary:
This updates the bookmarks cache TTL to be something we configure using
tunables instead of repo configs. There's a few goals here:

- Less us tune the pressure we put on SQL via a tunable
- Letting us experiment more easily with disabling this cache and tuning the
  WBC poll interval.

Right now, this defaults to what we had set up in all our repo configs, which
is 2000ms.

Reviewed By: farnz

Differential Revision: D27915403

fbshipit-source-id: 4361d38939e5b2a0fe37442ed8c1dd0611af5098
2021-04-22 08:19:03 -07:00
..
alpn autocargo v1: changes to match autocargo v2 generation results. 2021-02-19 11:03:55 -08:00
benchmarks mononoke/changesets: add RendezVousConnection 2021-04-16 10:27:44 -07:00
blobimport_lib mononoke: move create bonsai changeset hook to blobrepo_hg 2021-04-19 09:00:11 -07:00
blobrepo third-party/rust: Enable serde feature for uuid crate 2021-04-19 13:34:59 -07:00
blobrepo_utils third-party/rust: update futures 2021-03-04 06:42:55 -08:00
blobstore mononoke: add a new session class for WarmBookmarksCache 2021-04-22 08:13:09 -07:00
blobstore_sync_queue third-party/rust: Enable serde feature for uuid crate 2021-04-19 13:34:59 -07:00
bonsai_git_mapping test_repo_factory: use test factory for hooks and mapping tests 2021-03-25 07:34:49 -07:00
bonsai_globalrev_mapping megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
bonsai_hg_mapping megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
bonsai_svnrev_mapping megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
bookmarks mononoke: make bookmarks cache ttl a tunable 2021-04-22 08:19:03 -07:00
bulkops mononoke: initialize loggers, config, caching, tunables & runtime in MononokeMatches 2021-04-16 10:27:43 -07:00
cache_warmup third-party/rust: update futures 2021-03-04 06:42:55 -08:00
changesets megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
cmdlib mononoke: fix getdeps/cargo double log init crash 2021-04-21 05:36:44 -07:00
cmds Implement a baseline dumb packer 2021-04-20 12:45:08 -07:00
commit_rewriting mononoke: remove parse_caching 2021-04-16 10:27:43 -07:00
common mononoke/rendezvous: use in-flight connection count to decide when to batch 2021-04-16 10:27:44 -07:00
derived_data megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
edenapi_server mononoke: use MononokeEnvironment in RepoFactory 2021-04-16 10:27:43 -07:00
edenapi_service edenapi: send hash-to-location errors to client 2021-04-20 20:20:24 -07:00
fastreplay mononoke: copy bonsai changeset from prod repo to backup repo if they don't match 2021-04-19 09:00:11 -07:00
filenodes megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
filestore mononoke/filestore: don't take a chunk when you need 0 bytes from it 2021-04-19 01:25:03 -07:00
git megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
gotham_ext quiet certain connection errors when shutting down 2021-04-16 02:26:04 -07:00
hgcli third-party/rust: update futures 2021-03-04 06:42:55 -08:00
hgproto mononoke: fix the build 2021-04-12 05:07:48 -07:00
hook_tailer mononoke: use MononokeEnvironment in RepoFactory 2021-04-16 10:27:43 -07:00
hooks mononoke: Remove external sync logic 2021-04-08 09:17:11 -07:00
lfs_import_lib third-party/rust: update futures 2021-03-04 06:42:55 -08:00
lfs_protocol lfs_protocol: implement Display for Operation 2021-04-14 09:22:28 -07:00
lfs_server mononoke: use MononokeEnvironment in RepoFactory 2021-04-16 10:27:43 -07:00
load_limiter vfs: introduce AsyncVfs 2021-03-05 21:47:51 -08:00
manifest bounded_traversal: require futures to be boxed 2021-03-12 08:12:57 -08:00
megarepo_api megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
mercurial megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
metaconfig mononoke: make bookmarks cache ttl a tunable 2021-04-22 08:19:03 -07:00
microwave megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
mononoke_api mononoke: add a new session class for WarmBookmarksCache 2021-04-22 08:13:09 -07:00
mononoke_api_hg edenapi: update hash-to-location to discard unknown hashes 2021-04-09 17:10:57 -07:00
mononoke_hg_sync_job mononoke: use MononokeEnvironment in RepoFactory 2021-04-16 10:27:43 -07:00
mononoke_types megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
mutable_counters third-party/rust: update futures 2021-03-04 06:42:55 -08:00
newfilenodes mononoke/newfilenodes: sort filenode rows prior to insertion 2021-03-24 13:55:01 -07:00
observability mononoke: initialize loggers, config, caching, tunables & runtime in MononokeMatches 2021-04-16 10:27:43 -07:00
permission_checker mononoke: Remove external sync logic 2021-04-08 09:17:11 -07:00
phases mononoke: add public phase warmer 2021-04-16 08:20:48 -07:00
pushrebase Back out "mononoke: pushrebase: save prepushrebase changeset id in bonsai changeset extra" 2021-04-19 09:27:02 -07:00
quiet_stream quiet certain connection errors when shutting down 2021-04-16 02:26:04 -07:00
reachabilityindex megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
regenerate_hg_filenodes mononoke: initialize loggers, config, caching, tunables & runtime in MononokeMatches 2021-04-16 10:27:43 -07:00
repo_attributes repo_derived_data: add new repo attribute to encapsulate derived data 2021-03-22 07:26:48 -07:00
repo_client mononoke: add a new session class for WarmBookmarksCache 2021-04-22 08:13:09 -07:00
repo_factory mononoke: make bookmarks cache ttl a tunable 2021-04-22 08:19:03 -07:00
repo_import mononoke: remove parse_caching 2021-04-16 10:27:43 -07:00
revset rust: fix non-literal panic fmt strings 2021-04-09 16:24:33 -07:00
scs_server scs: change megaerpo parts of source_control.thrift 2021-04-19 04:47:43 -07:00
segmented_changelog segmented_changelog: add MismatchedHeadsError 2021-04-20 20:20:24 -07:00
server mononoke: add a new session class for WarmBookmarksCache 2021-04-22 08:13:09 -07:00
sshrelay third-party/rust: update futures 2021-03-04 06:42:55 -08:00
streaming_clone mononoke: use MononokeEnvironment in RepoFactory 2021-04-16 10:27:43 -07:00
tests disable phases exchange if narrow heads is enabled 2021-04-22 05:26:10 -07:00
time_window_counter vfs: introduce AsyncVfs 2021-03-05 21:47:51 -08:00
tunables mononoke: make bookmarks cache ttl a tunable 2021-04-22 08:19:03 -07:00
unbundle_replay mononoke: copy bonsai changeset from prod repo to backup repo if they don't match 2021-04-19 09:00:11 -07:00
walker mononoke: prepopulate bonsai hg mappings per walker chunk 2021-04-20 03:00:52 -07:00
Cargo.toml megarepo: introduce write side of MononokeMegarepoConfigs 2021-04-22 02:13:19 -07:00
README.md mononoke: add README.md and the missing pieces for supporting cargo (#13) 2020-02-13 00:12:36 -08:00

Mononoke

Mononoke is a next-generation server for the Mercurial source control system, meant to scale up to accepting thousands of commits every hour across millions of files. It is primarily written in the Rust programming language.

Caveat Emptor

Mononoke is still in early stages of development. We are making it available now because we plan to start making references to it from our other open source projects.

The version that we provide on GitHub does not build yet.

This is because the code is exported verbatim from an internal repository at Facebook, and not all of the scaffolding from our internal repository can be easily extracted. The key areas where we need to shore things up are:

  • Full support for a standard cargo build.
  • Open source replacements for Facebook-internal services (blob store, logging etc).

The current goal is to get Mononoke working on Linux. Other Unix-like OSes may be supported in the future