-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-27610 Update Container Placements Documentation #17917
Conversation
https://track.hpccsystems.com/browse/HPCC-27610 |
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.
A few comments inline
needs.</para> | ||
|
||
<para>You can deploy these values either using the values.yaml file or you | ||
can place into an file and have Kubernetes instead read the values from |
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.
a file, not an file
<orderedlist> | ||
<para>The pods: [list] item can contain one of the following:</para> | ||
|
||
<para><orderedlist> |
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.
This should not be a numbered list. A table would be a better representation.
<emphasis>global.env</emphasis> portion of the provided HPCC Systems | ||
values.yaml file. These values are specified as a list of name value | ||
pairs as illustrated below.</para> | ||
<para>In a Kubernetes container environment there are several ways to |
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.
needs a comma :
In a Kubernetes container environment, there...
nodeSelector: | ||
group: "hpcc"</programlisting></para> | ||
|
||
<para>Note:the label: group:hpcc matches the node pool label: |
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.
Note: s/b bold, then a space and capitalize the sentence. also no need for the quotes around hpcc.
Note: The label: group:hpcc matches the node pool label:hpcc.
<entry>JAVA_LIBRARY_PATH</entry> | ||
</row> | ||
<para>Taints and Tolerations are types of Kubernetes node constraints | ||
also referred to by Node Affinity. Only one "affinity" can be applied |
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.
inconsistent capitalization of Node Affinity. Previously, it was node Affinity.
<entry>JAVA_LIBRARY_PATH</entry> | ||
</row> | ||
<para>Taints and Tolerations are types of Kubernetes node constraints | ||
also referred to by Node Affinity. Only one "affinity" can be applied |
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.
no need for quotes around affinity (2 places)
respectively. The Roxie pods will be evenly scheduled on the two node | ||
pools.</para> | ||
|
||
<para>After deployment you can verify by issuing the following:</para> |
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.
After deployment you can verify by issuing the following command:
|
||
<para>There is no schema check for the content of affinity. Only one | ||
affinity can be applied to a pod or job. If a pod/job matches | ||
multiple placement 'pods' lists, then only the last affinity |
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.
no need for the quotes around 'pods'
|
||
<para>Only one "schedulerName" can be applied to any pod/job.</para> | ||
|
||
<para>A SchedulerName example:</para> |
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.
Inconsistent capitalization of schedulerName
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.
Looks good for me. Just Remove "Examples:" before "Taints and Tolerations" on p20
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.
Couple of minor comments inline
refer to Kubernetes scheduling as placements. Placements is a value in | ||
an HPCC Systems configuration which is at a level above items, such as | ||
the nodeSelector, Toleration, Affinity and Anti-Affinity, and | ||
TopologySpreadConstratints.</para> |
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.
DId you mean TopologySpreadConstraints?
TopologySpreadConstratints.</para> | ||
|
||
<para>The placement is responsible for finding the best node for a pod. | ||
Most often placement are handled automatically by Kubernetes. You can |
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.
Subject/Verb agreement: S/B Most often placements are handled
<sect2 id="YAML_FileStruct_Placement"> | ||
<title>Placements</title> | ||
|
||
<para>The Placements is a term used by HPCC Systems, which Kubernetes |
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.
remove word "The"
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.
Looks good from my POV
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.
Looks good from my POV
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.
Looks OK from my POV
|
||
<entry>This is the "Deployment" metadata name from the name of | ||
the array item of a type. For example, "eclwatch-", "mydali-", | ||
"thor-thoragent" This can be a regular expression since |
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.
@xwang2713 - are regular expressions supported or just wildcards?
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.
The regular expressions are preferred. But I think substrings are also OK . Helm docs (mustRegexMatch):
regexMatch, mustRegexMatch. Returns true if the input string contains any match of the regular expression.
<entry>The job name is typically a regular expression as well, | ||
since the job name is generated dynamically. For example, a | ||
compile job compile-54eB67e567e, could use "compile-" or | ||
"compile-*" or the exact match "^compile-.$"</entry> |
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.
@xwang2713 - I want to clarify if this supports regular expressions or just wildcards, "compile-*" is not an example of a regular expression (well it is, but would match 'compile----' , or 'compile', not 'compile-blah')
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.
Either "compile-.*" or "compile-". "compile-*" is not valid regular expression or substring
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.
Ok, then line 1308 needs changing to "compile-.*"
@g-pan
<para>NodeSelector, taints and tolerations, and other values can all | ||
be placed on the same pods: [list] both per zone and per node on | ||
Azure <programlisting>placements: | ||
- pods: ["eclwatch","roxie-workunit","^compile-.*$","mydali"] |
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.
but 'compile-.$' is a regex, so is it that it does support regex's, but the example 'compile-' is wrong?
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.
@g-pan - please see question re. regex/pattern match.
Assigned to @xwang2713 to answer Jake's questions. |
@g-pan, the jira is assigned to you. You have indicated that you have the information that you need |
@@ -1305,7 +1305,7 @@ thor: | |||
<entry>The job name is typically a regular expression as well, | |||
since the job name is generated dynamically. For example, a | |||
compile job compile-54eB67e567e, could use "compile-" or | |||
"compile-*" or the exact match "^compile-.$"</entry> | |||
"compile-.*" or the exact match "^compile-.$"</entry> |
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.
minor: sorry, I did not notice this before:
For example, a compile job compile-54eB67e567e, could use "compile-" or "compile-.*" or the exact match "^compile-.$"
"exact match" in this sentence is misleading/inaccurate, and the regular expression "compile-.$" does not match.
I'd probably drop that qualifier and correct the regex :
For example, a compile job compile-54eB67e567e, could use "compile-", "compile-.*" or "^compile-.*$"
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.
@g-pan - see follow-up comment.
added the last change and squashed (since it was minor) should be ready to merge now. |
<entry>The job name is typically a regular expression as well, | ||
since the job name is generated dynamically. For example, a | ||
compile job compile-54eB67e567e, could use "compile-" or | ||
"compile-.*" or "^compile-.$"</entry> |
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.
@g-pan - still not quite right, missing * before $, see previous comment
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.
@g-pan - back to you.
Signed-off-by: g-pan <[email protected]>
good catch! |
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.
@g-pan - looks good now.
Type of change:
Checklist:
Smoketest:
Testing:
Successful unit testing: http://10.224.20.18/view/Docs-gp/job/DocBuild-GPRepo3/