DOCTEAM-1775: HA resources and constraints#674
Conversation
jsc#DOCTEAM-1775
a501f66 to
5e3f1f0
Compare
| </listitem> | ||
| </itemizedlist> | ||
| <para> | ||
| For more information, see <link xlink:href="https://clusterlabs.org/projects/pacemaker/doc/3.0/Pacemaker_Explained/html/collective.html#determining-which-instance-is-promoted"/> |
There was a problem hiding this comment.
Somehow, in the PDF, if I hover over somewhere around the link, the link will break due to the extra - in the first line of the link text.
There was a problem hiding this comment.
Oh weird... I see what you mean in the text about the line-joining - (Pacemak-er), but it doesn't break anything for me; the link still works. I wonder why it breaks for you? I'm not sure if there's anything I can do about it 🤔
@tomschr Do you know if there's a way to stop the PDF build from adding a - when a link spans two lines?
There was a problem hiding this comment.
@tahliar Thanks for the notice. 👍
I'm aware of this situation and I haven't found a good solution. We had some line breaking algorithm in the past, however, I disabled that as it was unreliable.
I have a dilemma here: I could disable hyphenation for links completely. However, that would result in gaps, excessively long lines, or lines extending beyond the margin.
If we leave it like this, it will break in unfortunate places. So either way, it's bad.
If you want to solve this, you need to play a bit around. You can try one of the following ideas:
-
Add a link text into
<link xlink:href="...">The text</link>This may not solve the issue, but it may introduce some text that can shift the unfavorable line breaks.
-
Offer some breaking points with ZERO WIDTH SPACE (U+200B)
It's not a guarantee that FOP will follow that. The idea is to add the URL in the
xlink:hrefattribute, but add the link as text together with an U+200B character.<link xlink:href="https://...">https://clusterlabs.org/projects/pacemaker/doc/3.0/​Pacemaker​_Explained/html/..."</link>
-
Enable or disable the hyphenation algorithm
In your DC file, set the XSLT parameter
ulink.hyphenateto an empty string:XSLTPARAM+=" --param ulink.hyphenate 1" XSLTPARAM+=" --stringparam ulink.hyphenate.chars=:/@&?.#​" -
Combine U+200B with
ulink.hyphenate
For more information, see
There was a problem hiding this comment.
Oh weird... I see what you mean in the text about the line-joining
-(Pacemak-er), but it doesn't break anything for me; the link still works. I wonder why it breaks for you? I'm not sure if there's anything I can do about it 🤔
It doesn't break if the cursor is exactly on the link text. But if the cursor is somewhere nearby, the link breaks.
gao-yan
left a comment
There was a problem hiding this comment.
Just went through a few more sections.
| <step performance="optional"> | ||
| <para> | ||
| If required, select a role (<literal>Started</literal>, <literal>Stopped</literal>, | ||
| <literal>Promoted</literal> or <literal>Promotable</literal>) from the drop-down list |
There was a problem hiding this comment.
Hmm, I see Promoted and Promotable in the Hawk UI in my 16.0 test cluster. I'm running updates now though and will also install a 16.1 test cluster soon with the public beta.
There was a problem hiding this comment.
Ok. It sounds like a bug of hawk in 16.0 anyway.
| </para> | ||
| </step> | ||
| <step> | ||
| <!-- tahliar 2026-04-08: Hawk UI still says multi-state instead of promotable --> |
| Currently, &hawk; can only create standard clones, not promotable clones. | ||
| </para> | ||
| <!-- tahliar 2026-04-08: When I try to create a promotable clone via Add Resource -> Multi-state, | ||
| it fails with "Unable to create: [31mERROR[0m: configure.ms: No such command" --> |
There was a problem hiding this comment.
Likewise, could you please file a bug for hawk?
| <para> | ||
| You can hover the cursor over each meta attribute to see a description. | ||
| </para> | ||
| <!-- tahliar 2026-04-08: Hawk UI still says master-max instead of promoted-max --> |
| Currently, &hawk; can't add <guimenu>Utilization</guimenu> attributes to | ||
| primitive resources. | ||
| <!-- Despite changing the placement strategy and adding utilization attributes to the nodes, | ||
| nothing appears under the <guimenu>Utilization</guimenu> category for primitives. Might be a bug? --> |
There was a problem hiding this comment.
I assume so. Is hawk able to display and edit existing utilization attributes at all? It at least should be able to do so.
There was a problem hiding this comment.
Just checked: crm configure show shows that I have a resource with utilization memory=512, but when I edit that resource in Hawk there is nothing under the Utilization section.
gao-yan
left a comment
There was a problem hiding this comment.
@aleksei-burlakov, you definitely want to go through all the parts that involve hawk. Please especially pay attention to the issues of hawk that we are bringing up in all the relevant comments.
| <step performance="optional"> | ||
| <para> | ||
| If required, select a role (<literal>Started</literal>, <literal>Stopped</literal>, | ||
| <literal>Promoted</literal> or <literal>Promotable</literal>) from the drop-down list |
There was a problem hiding this comment.
Ok. It sounds like a bug of hawk in 16.0 anyway.

PR creator: Description
At long last, here are the articles for managing resources and constraints. Sorry it's such a big PR; the content was too inter-related to split up.
These aren't the most ideal Smart Docs, but this generic content does need to exist as it's the foundation of how to use the product. I will be doing plenty of focused articles on specific tasks later.
PDFs:
Configuring HA Cluster Resources: HA-resources-configuring_en.pdf
Adding Constraints to HA Cluster Resources: HA-resources-adding-constraints_en.pdf
Managing HA Cluster Resources: HA-resources-managing_en.pdf
Note that the crmsh/Hawk procedures appear one after the other in the PDFs, but in the published HTML they'll look like this:
This was the the smoothest solution I could see for having two methods to do things; having a separate topic for each method would blow out to way too many topics to reasonably keep track of.
Tasks for later:
There was more I still wanted to do, but I can't keep working on one PR forever, so I split some things off for later. If a topic seems to be missing, it might be in this list:
PR creator: Are there any relevant issues/feature requests?
PR reviewer: Checklist for editorial review
Apart from the usual checks, please double-check also the following: