-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Support CPU resource configurable for Kubernates job under MoK Mode #16008
Support CPU resource configurable for Kubernates job under MoK Mode #16008
Conversation
will take a look at this today, looks pretty reasonable |
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.
logic looks good to me, left a couple small comments on docs and changing the name of a test
@@ -572,14 +576,72 @@ void testEphemeralStorageIsRespected() throws IOException | |||
Assertions.assertEquals(expected, actual); | |||
} | |||
|
|||
@Test | |||
void testEphemeralResourceIsEspected() throws IOException |
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.
i think this test name is wrong, seems like it should be more like testCPUResourceIsRespected
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.
updated, thanks!
|`druid.indexer.runner.annotations`| `JsonObject` | Additional annotations you want to add to peon pod |`{}`|No| | ||
|`druid.indexer.runner.peonMonitors`| `JsonArray` | Overrides `druid.monitoring.monitors`. Use this property if you don't want to inherit monitors from the Overlord. |`[]`|No| | ||
|`druid.indexer.runner.graceTerminationPeriodSeconds`| `Long` | Number of seconds you want to wait after a sigterm for container lifecycle hooks to complete. Keep at a smaller value if you want tasks to hold locks for shorter periods. |`PT30S` (K8s default)|No| | ||
|`druid.indexer.runner.capacity`| `Integer` | Number of concurrent jobs that can be sent to Kubernetes. |`2147483647`|No| |
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.
can you use the intellij props from here so the whole table doesn't get replaced like this? https://github.com/apache/druid/blob/master/dev/druid_intellij_formatting.xml#L77-L80
intellij config instructions: https://github.com/apache/druid/blob/master/dev/intellij-setup.md
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.
done.
Fixes #16007 .
Description
Make CPU core configurable for Kubernetes job(Peon) under MoK Mode
Currently the CPU core for Peon is fixed to 1, this PR is to support adjusting it by adding a Overlord property:
druid.indexer.runner.cpuCoreInMicro=2000
Verification
Release note
Key changed/added classes in this PR
KubernetesTaskRunnerConfig
PeonCommandContext
K8sTaskAdapter
DruidK8sConstants
This PR has: