You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/05/18 23:24:42 UTC
[GitHub] [druid] maytasm opened a new issue #9889: Add new configuration for kill task to skip segments that has been last modified within the config value time
maytasm opened a new issue #9889:
URL: https://github.com/apache/druid/issues/9889
### Description
Introduce a new configuration for the kill task with the key druid.coordinator.kill.fromLastModified. The value will be time period. The kill task will then skip any segments that has been last modified within the configured value.
### Motivation
Currently we only have druid.coordinator.kill.durationToRetain which looks at the "end" time of the segments. However, this does not prevent accident / misconfigured segments to be kill. For example, a misconfigured drop rule accidentally drop segments from 6M to 1Year ago period. Most likely, these segments would be way pass druid.coordinator.kill.durationToRetain and be kill right away in the next kill cycle. Even worst would be if the kill cycle is very frequent, then it might be too late to catch the misconfigured rules and the segments would be kill (unable to recover). Obviously, the root cause is the human operator but that can and sometime do happens. This features aims to make mistake less costly if they do happen.
Want to see if anyone has any experience / recommendation and if something like this would be beneficial to others.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] yuanlihan commented on issue #9889: Add new configuration for kill task to skip segments that has been last modified within the config value time
Posted by GitBox <gi...@apache.org>.
yuanlihan commented on issue #9889:
URL: https://github.com/apache/druid/issues/9889#issuecomment-631864599
Hi @maytasm, I like this `druid.coordinator.kill.fromLastModified` idea while I have a few confusion about it.
Does this `druid.coordinator.kill.fromLastModified` configuration works independently? For example, only one configuration will take effect, `druid.coordinator.kill.fromLastModified` or `druid.coordinator.kill.durationToRetain`.
Or these two configurations could be applied at the same time?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] maytasm commented on issue #9889: Add new configuration for kill task to skip segments that has been last modified within the config value time
Posted by GitBox <gi...@apache.org>.
maytasm commented on issue #9889:
URL: https://github.com/apache/druid/issues/9889#issuecomment-631919882
@yuanlihan
I am thinking that the segment will have to satisfy both conditions to be eligible for the kill task. The new `druid.coordinator.kill.fromLastModified` offers additional safety to prevent accidental killing of segments. If the user does not want the `druid.coordinator.kill.fromLastModified` and want the existing behavior then they can simply set druid.coordinator.kill.fromLastModified to 0. Basically, this ignores druid.coordinator.kill.fromLastModified and only requires segment to satisfy `druid.coordinator.kill.durationToRetain`.
The benefit of `druid.coordinator.kill.fromLastModified` is for old segments that might have been dropped accidentally from incorrectly configured rules (usually rules are set for intervals of many months). For example, you might have a dropForever rule before a load rule (instead of the other way around). Those segments may be older than `druid.coordinator.kill.durationToRetain` but will not be kill due to `druid.coordinator.kill.fromLastModified` safety net.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] yuanlihan commented on issue #9889: Add new configuration for kill task to skip segments that has been last modified within the config value time
Posted by GitBox <gi...@apache.org>.
yuanlihan commented on issue #9889:
URL: https://github.com/apache/druid/issues/9889#issuecomment-631935055
@maytasm thanks for the explanation.
It makes sense to me. This configuration will help a lot to reduce the impact of misoperation.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org