-
Notifications
You must be signed in to change notification settings - Fork 229
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
feat(query) Support split partition raw queries #1677
feat(query) Support split partition raw queries #1677
Conversation
coordinator/src/main/scala/filodb.coordinator/queryplanner/MultiPartitionPlanner.scala
Show resolved
Hide resolved
coordinator/src/main/scala/filodb.coordinator/queryplanner/MultiPartitionPlanner.scala
Outdated
Show resolved
Hide resolved
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.
Just a few comments/questions. Thanks for handling this @amolnayak311 -- it doesn't look like it was easy to get the timestamps exactly right.
coordinator/src/main/scala/filodb.coordinator/queryplanner/DefaultPlanner.scala
Show resolved
Hide resolved
coordinator/src/main/scala/filodb.coordinator/queryplanner/DefaultPlanner.scala
Show resolved
Hide resolved
coordinator/src/main/scala/filodb.coordinator/queryplanner/DefaultPlanner.scala
Outdated
Show resolved
Hide resolved
coordinator/src/main/scala/filodb.coordinator/queryplanner/DefaultPlanner.scala
Show resolved
Hide resolved
coordinator/src/main/scala/filodb.coordinator/queryplanner/DefaultPlanner.scala
Show resolved
Hide resolved
coordinator/src/test/scala/filodb.coordinator/queryplanner/PlannerHierarchySpec.scala
Outdated
Show resolved
Hide resolved
coordinator/src/test/scala/filodb.coordinator/queryplanner/PlannerHierarchySpec.scala
Outdated
Show resolved
Hide resolved
coordinator/src/test/scala/filodb.coordinator/queryplanner/MultiPartitionPlannerSpec.scala
Show resolved
Hide resolved
coordinator/src/test/scala/filodb.coordinator/queryplanner/MultiPartitionPlannerSpec.scala
Show resolved
Hide resolved
coordinator/src/main/scala/filodb.coordinator/queryplanner/MultiPartitionPlanner.scala
Outdated
Show resolved
Hide resolved
@@ -85,4 +87,5 @@ case class QueryConfig(askTimeout: FiniteDuration, | |||
plannerSelector: Option[String] = None, | |||
recordContainerOverrides: Map[String, Int] = Map.empty, | |||
supportRemoteRawExport: Boolean = false, | |||
maxRemoteRawExportTimeRange: FiniteDuration = 3 days) | |||
maxRemoteRawExportTimeRange: FiniteDuration = 3 days, | |||
enableApproximatelyEqualCheckInStitch: Boolean = true) |
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.
Should this be:
queryConfig.getBoolean("routing.enable-approximate-equals-in-stitch")
?
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 addressing all comments @amolnayak311
PR looks good 👍 -- please see the one comment I've left, and feel free to merge if no action is needed.
Pull Request checklist
Current behavior :
Whenever a query spans across partitions, there is a gap in results for the range queries where lookbacks/offsets span multiple partitions.
New behavior :
The PR is a draft for the WIP to achieve 0 downtime for queries when there are time-split partitions.