druid/docs
zachjsh 1d6df48145
Warn if cache size of lookup is beyond max size (#11863)
Enhanced the ExtractionNamespace interface in lookups-cached-global core extension with the ability to set a maxHeapPercentage for the cache of the respective namespace. The reason for adding this functionality, is make it easier to detect when a lookup table grows to a size that the underlying service cannot handle, because it does not have enough memory. The default value of maxHeap for the interface is -1, which indicates that no maxHeapPercentage has been set. For the JdbcExtractionNamespace and UriExtractionNamespace implementations, the default value is null, which will cause the respective service that the lookup is loaded in, to warn when its cache is beyond mxHeapPercentage of the service's configured max heap size. If a positive non-null value is set for the namespace's maxHeapPercentage config, this value will be honored for all services that the respective lookup is loaded onto, and consequently log warning messages when the cache of the respective lookup grows beyond this respective percentage of the services configured max heap size. Warnings are logged every time that either Uri based or Jdbc based lookups are regenerated, if the maxHeapPercentage constraint is violated. No other implementations will log warnings at this time. No error is thrown when the size exceeds the maxHeapPercentage at this time, as doing so could break functionality for existing users. Previously the JdbcCacheGenerator generated its cache by materializing all rows of the underling table in memory at once; this made it difficult to log warning messages in the case that the results from the jdbc query were very large and caused the service to run out of memory. To help with this, this pr makes it so that the jdbc query results are instead streamed through an iterator.
2021-11-03 21:32:22 -04:00
..
_bin De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
assets Design/architecture doc touchups (#11762) 2021-10-04 11:09:35 -07:00
comparisons Update druid-vs-kudu.md (#11470) 2021-07-21 22:58:14 +08:00
configuration Add Broker config `druid.broker.segment.watchRealtimeNodes` (#11732) 2021-11-02 12:38:42 +05:30
dependencies remove ZooKeeper 3.4 support + pass tests with Java 15 (#11073) 2021-05-25 12:49:49 -07:00
design Fix quickstart link (#11864) 2021-11-02 13:27:53 +08:00
development Warn if cache size of lookup is beyond max size (#11863) 2021-11-03 21:32:22 -04:00
ingestion Support changing query granularity in Auto Compaction (#11856) 2021-11-01 15:18:44 -07:00
misc Add SQL functions to format numbers into human readable format (#10635) 2021-08-13 10:27:49 -07:00
operations Revert permission changes to Supervisor and Task APIs (#11819) 2021-10-25 14:50:38 +05:30
querying Remove OffheapIncrementalIndex and clarify aggregator thread-safety needs. (#11124) 2021-10-26 08:05:56 -07:00
tutorials docker mem reqs (#11827) 2021-10-25 12:23:25 -07:00