OpenSearch/x-pack/plugin
Armin Braun ebb6677815
Formalize and Streamline Buffer Sizes used by Repositories (#59771) (#60051)
Due to complicated access checks (reads and writes execute in their own access context) on some repositories (GCS, Azure, HDFS), using a hard coded buffer size of 4k for restores was needlessly inefficient.
By the same token, the use of stream copying with the default 8k buffer size  for blob writes was inefficient as well.

We also had dedicated, undocumented buffer size settings for HDFS and FS repositories. For these two we would use a 100k buffer by default. We did not have such a setting for e.g. GCS though, which would only use an 8k read buffer which is needlessly small for reading from a raw `URLConnection`.

This commit adds an undocumented setting that sets the default buffer size to `128k` for all repositories. It removes wasteful allocation of such a large buffer for small writes and reads in case of HDFS and FS repositories (i.e. still using the smaller buffer to write metadata) but uses a large buffer for doing restores and uploading segment blobs.

This should speed up Azure and GCS restores and snapshots in a non-trivial way as well as save some memory when reading small blobs on FS and HFDS repositories.
2020-07-22 21:06:31 +02:00
..
analytics Drop some params from IndexFieldData.Builder (backport of #59934) (#59972) 2020-07-21 10:28:59 -04:00
async [7.x] EQL: Adds an ability to execute an asynchronous EQL search (#58192) 2020-06-25 14:11:57 -04:00
async-search Fix DLS/FLS permission for the submit async search action (#59693) 2020-07-20 09:37:26 +03:00
autoscaling 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
ccr CCR recoveries using wrong setting for chunk sizes (#59597) 2020-07-21 13:56:06 +02:00
core [Backport][7.x] Introduce reserved_ml_apm_user kibana privilege (#59854) (#60047) 2020-07-22 11:06:10 -04:00
data-streams Track backing indices in data streams stats from cluster state (#59817) (#60015) 2020-07-21 23:21:33 -04:00
deprecation [7.x] Add include_data_streams flag for authorization (#59008) 2020-07-03 12:58:39 -05:00
enrich Thread safe clean up of LocalNodeModeListeners (#60007) 2020-07-22 08:02:18 -06:00
eql EQL: Fix matching of tail/desc queries (#59827) 2020-07-19 00:49:16 +03:00
frozen-indices MappedFieldType should not extend FieldType (#58160) 2020-06-16 16:56:43 +01:00
graph 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
identity-provider Treat roles as a SortedSet (#58988) 2020-07-03 13:40:58 +10:00
ilm Thread safe clean up of LocalNodeModeListeners (#60007) 2020-07-22 08:02:18 -06:00
logstash Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
mapper-constant-keyword Drop some params from IndexFieldData.Builder (backport of #59934) (#59972) 2020-07-21 10:28:59 -04:00
mapper-flattened Drop some params from IndexFieldData.Builder (backport of #59934) (#59972) 2020-07-21 10:28:59 -04:00
ml Thread safe clean up of LocalNodeModeListeners (#60007) 2020-07-22 08:02:18 -06:00
monitoring Adding indexing pressure stats to node stats API (#59467) 2020-07-13 17:23:42 -06:00
ql EQL: Obey size request parameter (#59014) 2020-07-06 19:14:25 +03:00
rollup Convert DateFieldMapper to parametrized format (#59429) (#59759) 2020-07-17 12:46:18 +01:00
search-business-rules Unify dependency licenses task configuration (#58116) (#58274) 2020-06-18 08:15:50 +02:00
searchable-snapshots Formalize and Streamline Buffer Sizes used by Repositories (#59771) (#60051) 2020-07-22 21:06:31 +02:00
security Fix DLS/FLS permission for the submit async search action (#59693) 2020-07-20 09:37:26 +03:00
spatial Drop some params from IndexFieldData.Builder (backport of #59934) (#59972) 2020-07-21 10:28:59 -04:00
sql SQL: Implement DATE_PARSE function for parsing strings into DATE values (#57391) (#59699) 2020-07-16 17:24:30 +02:00
src/test Rename binary_soft_classification evaluation to outlier_detection (#59951) (#59970) 2020-07-21 15:15:04 +02:00
stack Only install stack templates via elected master node (#59624) (#59657) 2020-07-15 22:22:01 +02:00
transform Remove data stream feature flag (#59572) 2020-07-14 23:50:41 +02:00
vectors Drop some params from IndexFieldData.Builder (backport of #59934) (#59972) 2020-07-21 10:28:59 -04:00
voting-only-node Introduce node.roles setting (#58512) 2020-06-25 14:14:51 -04:00
watcher Add the possibility to inject a custom RecoveryState factory to IndexStorePlugin implementations (#59124) 2020-07-15 11:11:07 +02:00
wildcard Drop some params from IndexFieldData.Builder (backport of #59934) (#59972) 2020-07-21 10:28:59 -04:00
build.gradle 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00