sapling/eden/mononoke/blobstore
Aida Getoeva 1240231656 mononoke/mysql: share single connection pool in the same SMC between shards
Summary:
In Mononoke for a sharded DB we historically used connection pool size 1 per shard. With the Mysql FFI client now it doesn't make sense, as the client's conn pool is smart enough and designed to works with sharded DBs, so currently we don't even benefit from having a pool.

In this diff I added an API to create sharded connections: a single pool is shared between all the shards.

Reviewed By: farnz

Differential Revision: D24475317

fbshipit-source-id: b7142c030a10ccfde1d5a44943b38cfa70332c6a
2020-11-05 05:34:22 -08:00
..
blobstore_stats mononoke/{multiplexedblob,logblob}: capture operation perf counters 2020-10-16 08:57:13 -07:00
cacheblob mononoke: update Memblob::new callsites to ::default() 2020-10-07 12:11:10 -07:00
chaosblob mononoke: delegate chaosblob put to put_impl 2020-10-13 06:25:58 -07:00
delayblob mononoke: remove assert_present from Blobstore trait 2020-10-01 01:23:52 -07:00
factory mononoke/mysql: share single connection pool in the same SMC between shards 2020-11-05 05:34:22 -08:00
fileblob mononoke/manifoldblob: log retries, delay and conflicts to perf counters 2020-10-16 08:57:13 -07:00
if thrift: call hooks from Rust codegen 2020-10-22 17:01:47 -07:00
logblob mononoke/{multiplexedblob,logblob}: capture operation perf counters 2020-10-16 08:57:13 -07:00
memblob mononoke: remove BlobstorePutOps::put_behaviour 2020-10-13 03:09:38 -07:00
multiplexedblob mononoke/{multiplexedblob,logblob}: capture operation perf counters 2020-10-16 08:57:13 -07:00
packblob thrift: call hooks from Rust codegen 2020-10-22 17:01:47 -07:00
prefixblob mononoke: remove BlobstorePutOps::put_behaviour 2020-10-13 03:09:38 -07:00
readonlyblob mononoke: remove BlobstorePutOps::put_behaviour 2020-10-13 03:09:38 -07:00
redactedblobstore mononoke: update Memblob::new callsites to ::default() 2020-10-07 12:11:10 -07:00
samplingblob mononoke: update Memblob::new callsites to ::default() 2020-10-07 12:11:10 -07:00
sqlblob mononoke/mysql: share single connection pool in the same SMC between shards 2020-11-05 05:34:22 -08:00
src mononoke: change the default blobstore put behaviour to IfAbsent 2020-10-29 16:07:22 -07:00
test Support marking garbage in SQLBlob 2020-10-28 10:23:55 -07:00
throttledblob mononoke: factor out common code in throttledblob 2020-10-13 03:09:38 -07:00
virtually_sharded_blobstore Update formatter to rustfmt 2.0 2020-09-09 07:52:33 -07:00
Cargo.toml mononoke: add sqlblob to the common blobstore tests 2020-10-12 07:12:10 -07:00