[ADH-8124] Add S3 Gateway ozone objects cache#10
Open
tigrulya-exe wants to merge 1 commit into2.2.0-developfrom
Open
[ADH-8124] Add S3 Gateway ozone objects cache#10tigrulya-exe wants to merge 1 commit into2.2.0-developfrom
tigrulya-exe wants to merge 1 commit into2.2.0-developfrom
Conversation
f306dde to
f844ae5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added caching OM client for S3 gateway component. Currently, it caches metadata for S3 volume, buckets, keys (both regular and extended versions) in local per-user Caffeine caches. Cache entries are evicted on corresponding write operations (delete, rename) or by TTL.
Related options:
ozone.s3g.object.cache.enabledfalseozone.s3g.object.cache.metrics.enabledtrueozone.s3g.object.cache.volume.size10ozone.s3g.object.cache.volume.ttl.ms3000ozone.s3g.object.cache.bucket.size100ozone.s3g.object.cache.bucket.ttl.ms3000ozone.s3g.object.cache.key.size1000ozone.s3g.object.cache.key.ttl.ms3000Also a
Hadoop Metrics2source is added to collect and publish the following statistics for all S3 object caches (s3VolumeCache,s3BucketCache,s3HeadKeyCache,s3KeyInfoCache):hitCounthitRatemissCountloadSuccessCountloadFailureCountloadFailureRateevictionCountaverageLoadPenaltyExample of metrics if Prometheus MetricsSink is used: