OpenSearch/test/fixtures/gcs-fixture
Yannick Welsch ba39c261e8 Use streaming reads for GCS (#55506)
To read from GCS repositories we're currently using Google SDK's official BlobReadChannel,
which issues a new request every 2MB (default chunk size for BlobReadChannel) using range
requests, and fully downloads the chunk before exposing it to the returned InputStream. This
means that the SDK issues an awfully high number of requests to download large blobs.
Increasing the chunk size is not an option, as that will mean that an awfully high amount of
heap memory will be consumed by the download process.

The Google SDK does not provide the right abstractions for a streaming download. This PR
uses the lower-level primitives of the SDK to implement a streaming download, similar to what
S3's SDK does.

Also closes #55505
2020-04-21 13:22:26 +02:00
..
src/main/java/fixture/gcs Use streaming reads for GCS (#55506) 2020-04-21 13:22:26 +02:00
Dockerfile Use LTS version of Ubuntu in Dockerfiles (#55370) 2020-04-17 16:14:14 -04:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
docker-compose.yml Add GCS support for searchable snapshots (#55403) 2020-04-20 13:02:59 +02:00