Alexey, Yes, such property to configuration history size will be added. I think default value should be 0 and history by default shouldn't be gather at all, and can be switched on by property in case when it required.
Currently I planned use the same way to evicting old data as for queryMetrics - scheduled task will evict will old data by oldest start time of query. Will be gathered statistics for only initial clients queries, so internal queries will not including. For the same queries we will have one record in history with merged statistics. All above points just my proposal. Please revert back in case you think anything should be implemented by another way. чт, 20 дек. 2018 г. в 18:23, Alexey Kuznetsov <akuznet...@apache.org>: > Yuriy, > > I have several questions: > > Are we going to add some properties to cluster configuration for history > size? > > And what will be default history size? > > Will the same queries count as same item of historical data? > > How we will evict old data that not fit into history? > > Will we somehow count "reduce" queries? Or only final "map" ones? > > -- > Alexey Kuznetsov > -- Живи с улыбкой! :D