drcrallen commented on a change in pull request #6415: Add period drop before 
rule
URL: https://github.com/apache/incubator-druid/pull/6415#discussion_r226047803
 
 

 ##########
 File path: docs/content/operations/rule-configuration.md
 ##########
 @@ -129,6 +129,22 @@ Period drop rules are of the form:
 
 The interval of a segment will be compared against the specified period. The 
period is from some time in the past to the current time. The rule matches if 
the period contains the interval.
 
+### Period Drop Before Rule
+
+Period drop before rules are of the form:
+
+```json
+{
+  "type" : "dropBeforeByPeriod",
+  "period" : "P1M"
+}
+```
+
+* `type` - this should always be "dropBeforeByPeriod"
+* `period` - A JSON Object representing ISO-8601 Periods
+
+The interval of a segment will be compared against the specified period. The 
period is from some time in the past to the current time. The rule matches if 
the interval before the period. If you just want to retain recent data, you can 
use this rule to drop the old data that before a specified period.
 
 Review comment:
   Just so I'm clear, this is an alternative to doing a load by period followed 
by a drop forever?
   
   Is this intended to be used in cases where the default load rule is 
generally used, but you want to configure the maximum age on a per-datasource 
basis?  If so can that be added to the docs?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to