Skip to content

feat: add k8s job task context resource context#19638

Draft
jtuglu1 wants to merge 1 commit into
apache:masterfrom
jtuglu1:k8s-per-task-resource-contexts
Draft

feat: add k8s job task context resource context#19638
jtuglu1 wants to merge 1 commit into
apache:masterfrom
jtuglu1:k8s-per-task-resource-contexts

Conversation

@jtuglu1

@jtuglu1 jtuglu1 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Description

Not in a reviewable state yet.

Support dynamically specifying K8s pod resources in the task context. This is helpful for cases when you have a heterogenous workload mix and want to allow submitting clients flexibility in tuning their tasks (and their respective subtasks). This doesn't directly change any JVM-related parameters (which should also be supplied in the task context).

Example:

"context": {
  "k8sTaskResources": {
    "cpu": "1",
    "memory": "4Gi",
    "byTaskType": {
      "partial_index_generate": {
        "cpu": "2",
        "memory": "8Gi",
        "ephemeral-storage": "200Gi"
      },
      "partial_index_generic_merge": {
        "requests": {
          "cpu": "500m",
          "memory": "2Gi"
        },
        "limits": {
          "cpu": "1",
          "memory": "4Gi"
        }
      }
    }
  }
}

Release note


Key changed/added classes in this PR
  • MyFoo
  • OurBar
  • TheirBaz

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant