-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Add documentation for cache configuration properties #24623
base: master
Are you sure you want to change the base?
Conversation
2427fdf
to
3d22475
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the doc! Some formatting issues and some nits of phrasing suggestions. Looks good overall!
are supported: ns, us, ms, s, m, h, d. | ||
|
||
``cache.velox.ttl-check-interval`` | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
* **Type:** ``string`` | ||
* **Default value:** ``0s`` | ||
|
||
The interval for persisting in-memory cache to SSD. Setting this config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The interval for persisting in-memory cache to SSD. Setting this config | |
The interval for persisting in-memory cache to SSD. Set this |
* **Default value:** ``0s`` | ||
|
||
The interval for persisting in-memory cache to SSD. Setting this config | ||
to a non-zero value will activate periodic cache persistence. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to a non-zero value will activate periodic cache persistence. | |
to a non-zero value to activate periodic cache persistence. |
* **Type:** ``integer`` | ||
* **Default value:** ``0`` | ||
|
||
The size of the SSD. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest mentioning the units for this: bytes, Mb, Gb?
* **Type:** ``string`` | ||
* **Default value:** ``/mnt/flash/async_cache.`` | ||
|
||
The directory that is mounted onto SSD. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The directory that is mounted onto SSD. | |
The path of the directory that is mounted in the SSD. |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
* **Type:** ``bool`` | ||
* **Default value:** ``false`` | ||
When enabled, a CRC-based checksum is calculated for each cache entry written to SSD. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When enabled, a CRC-based checksum is calculated for each cache entry written to SSD. | |
When enabled, a CRC-based checksum is calculated for each cache entry written to SSD. |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
* **Type:** ``bool`` | ||
* **Default value:** ``false`` | ||
When enabled, the checksum is recalculated and verified against the stored value when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When enabled, the checksum is recalculated and verified against the stored value when | |
When enabled, the checksum is recalculated and verified against the stored value when |
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
* **Type:** ``bool`` | ||
* **Default value:** ``false`` | ||
Enable TTL for AsyncDataCache and SSD cache. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enable TTL for AsyncDataCache and SSD cache. | |
Enable TTL for AsyncDataCache and SSD cache. |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
* **Type:** ``string`` | ||
* **Default value:** ``2d`` | ||
TTL duration for AsyncDataCache and SSD cache entries. The following time units |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TTL duration for AsyncDataCache and SSD cache entries. The following time units | |
TTL duration for AsyncDataCache and SSD cache entries. The following time units |
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
* **Type:** ``string`` | ||
* **Default value:** ``1h`` | ||
The periodic duration to apply cache TTL and evict AsyncDataCache and SSD cache entries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The periodic duration to apply cache TTL and evict AsyncDataCache and SSD cache entries. | |
The periodic duration to apply cache TTL and evict AsyncDataCache and SSD cache entries. |
Description
Add documentation for cache configuration properties
All of these cache configuration properties are defined here in the codebase:
https://github.com/prestodb/presto/blob/master/presto-native-execution/presto_cpp/main/common/Configs.h#L328
Relates to facebookincubator/velox#11429
Motivation and Context
Impact
Test Plan
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.