Skip to content

Conversation

@dockerymick
Copy link
Contributor

No description provided.

@dockerymick dockerymick requested a review from jlpadilla December 9, 2025 18:34
@openshift-ci
Copy link

openshift-ci bot commented Dec 9, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dockerymick

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@swopebe swopebe changed the title https://issues.redhat.com/browse/ACM-26272\# https://issues.redhat.com/browse/ACM-26272 Dec 10, 2025
== Customizing the search console

Customize your search results and limits. Complete the following tasks to perform the customization:
Customize your search results and limits to improve search results. The search operator watches the `search-v2-operator` custom resource, reconciles the changes and updates active pods.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This statement is correct, but I'd move it below around line 72.

Maybe we should divide this document in 2 parts.

  1. Customizing the search console.
    This section explains how to customize the search console (web UI). This includes things like how data is presented and how many results.

  2. Customizing the search service (or search back-end)
    This section is about customizing the search back-end components. Users might need to customize this to setup persistent storage, fine-tune for performance and scalability, or modify certain behaviors through environment variables. These configuration options are in the search-v2-oeprator resource.

oc get search search-v2-operator -o yaml
----

.. If the empty directory size is limited for your PostgreSQL database, save your PostgreSQL data on a persistent volume claim to improve search performance.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are changing the guidance to say that customers must configure a persistent volume for clusters in production.

Maybe this can be addressed in a different PR. Here's the jira task: https://issues.redhat.com/browse/ACM-25259

Customize your search results and limits. Complete the following tasks to perform the customization:
Customize your search console to specify how you want data and search results to be displayed.

*Required access:* Cluster administrator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a RHACM administrator access role? To make these changes user doesn't need full cluster admin. They only need to be admin on the ACM namespaces multicluster-engine and open-cluster-management

Copy link
Contributor Author

@dockerymick dockerymick Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can specify that, thanks! I am not sure we should mention mce in this file. We do have mce-acm integrations docs tho. Let me get some clarity from Brandi

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not see an ACM admin role, no we normally just writing Cluster administrator. @dockerymick


.Prerequisites

- Are there any prereqs?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No prereqs, just ACM installed.

+
<1> Add the namespace where search is enabled.

. Specify your search query by selecting the *Advanced search* drop-down button to filter the _Column_, _Operator_, and _Value_ options or add a search constraint.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this line is out of context here?

[#customize-search-service]
= Customizing the Search service

Customize the Search service to improve search results. Set up persistent storage, fine-tune for performance and scalability, or modify certain behaviors through environment variables. Access the search configuration options from the search operator which watches the `search-v2-operator` custom resource, reconciles the changes, and updates active pods.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Customize the Search service to improve search results.

This statement is a little misleading because search results won't change. Typically users will need configure search to fine-tune to their specific environments or scale needs. The next sentence includes some specific reasons.

*Notes:*

- When you install {acm-short}, the PostgreSQL database is configured to save the PostgreSQL data in an empty directory (`emptyDir`) volume.
- To receive information-only alerts about search storage, consider setting up the persistent volume claim for search.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The alert is generated by us to remind users when the PVC is not configured.

Here's more context about the alert, see the Status section "SearchPVCNotPresent"
Image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The image isn't displaying

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

- When you install {acm-short}, the PostgreSQL database is configured to save the PostgreSQL data in an empty directory (`emptyDir`) volume.
- To receive information-only alerts about search storage, consider setting up the persistent volume claim for search.
.. To back up your search data, select a storage class from your {acm-short} hub cluster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. To back up your search data, select a storage class from your {acm-short} hub cluster.
.. To persist the search data, select a storage class from your {acm-short} hub cluster.

There's no backup. The difference is where the data is stored memory vs. persistent volume. The benefit is that memory is volatile and a persistent volume is well "persistent".

Comment on lines 8 to 9
* xref:../search/custom_search_service.adoc#custom-search-console[Customizing the Search service]
* xref:../search/custom_search_console.adoc#custom-search-console[Customizing the search console]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalization inconsistency Search vs. search.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used a capital "s" when referring to the service because we capitalize the names of a feature. If we are simply writing the word "search" as a verb, I use a lowercase "s". Maybe we can say "Customizing the console for Search", since there is not an independent search console.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, it just looks odd when looking at both lines together.
I like "Customizing the console for Search", and as you point out it's also more accurate.

.Procedure

Search returns and lists each cluster with the resource that you search.
For resources in the _hub_ cluster, the cluster name is displayed as _local-cluster_.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not always true. There was a new feature in 2.13/2.14(?) that allows users to rename local-cluster to their custom name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this note used in our doc, "Note: If you change the default name of your local-cluster to another value, the results appear within the changed local cluster name."

Copy link
Contributor

@swopebe swopebe Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was part of a large effort to allow the user to change their name of the local cluster. We discussed this quite a bit in a couple meetings.

This is discussed in adv install:


For resources in the hub cluster, the cluster name is displayed as local-cluster.[#local-cluster]
== Local-cluster enablement

By default, the cluster that is running {mce-short} is the local cluster, which is a hub cluster that manages itself and is designated as the local-cluster in the list of clusters.

In the MultiClusterEngine resource, the local cluster name is set from the spec.localClusterName value. The enabled setting specifies whether the feature is enabled or disabled.

The enabled: true setting designates your cluster as a local-cluster, and the enabled: false setting does not. See the following sample where the local-cluster is enabled with the enabled: true value.

[source,yaml]

You can change the local-cluster name if the enabled field is set to false. You must use 34 or fewer characters for the <your-local-cluster-name> value. The local-cluster cannot be renamed if it is set as enabled: true.

To install {mce-short} without designating it as a local-cluster, change the spec.overrides.components settings to enabled: false. See the following YAML sample:


I think we need to say that it can be changed, but then document any consequences as a result. I think it should be more than a note.

@dockerymick dockerymick requested a review from smcavey December 16, 2025 18:38
[#customize-search-service]
= Customizing the Search service

Customize the Search service set up persistent storage, fine-tune for performance and scalability, or modify certain behaviors through environment variables. Access the search configuration options from the search operator which watches the `search-v2-operator` custom resource, reconciles the changes, and updates active pods.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading this description out loud, it is a bit confusing.
There is one missing comma before which, but more is needed to make the first line agree or be clearer.

Customize your search results and limits. Complete the following tasks to perform the customization:
Customize your console for Search to specify how you want data and search results to be displayed.

*Required access:* Cluster administrator in the `open-cluster-management` namespace
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't normally write this. In the prereqs, you would put that you need access to the namespace. This line should look similar across the doc, so you can check to see how it is written elsewhere, but we usually just put the role here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! I was thinking about how I specified roles for the fine-grain topic. Even then, the fine-grain doc is consistent with not having the namespace in the required access portion. Great callout!

[#customize-search-service]
= Customizing the Search service

Customize the Search service to set up persistent storage, fine-tune for performance and scalability, or modify certain behaviors through environment variables. Access the search configuration options from the search operator which watches the `search-v2-operator` custom resource, reconciles the changes, and updates active pods.
Copy link
Contributor

@swopebe swopebe Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine-tune here is odd, in that it is written in a way to be taken as a noun.

do you mean to "fine-tune performance and scalability" or create a "fine-tune"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine-tune is the verb. What do you think about us saying "adjust settings for performance and scalability..."

- effect: NoSchedule
key: node-role.kubernetes.io/infra
operator: Exists
----
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the rest of the content looks really good.

== Additional resources

- For more topics about the {acm} console, see link:../console/console_intro.adoc#web-console[Web console].
- If you want to disable search on your managed cluster, see link:../add-ons/modify_endpoint.adoc#modify-klusterlet-add-ons[Modifying the klusterlet add-ons settings of your cluster] for more information.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- If you want to disable search on your managed cluster, see link:../add-ons/modify_endpoint.adoc#modify-klusterlet-add-ons[Modifying the klusterlet add-ons settings of your cluster] for more information.
- If you want to disable the Search service on your managed cluster, see link:../add-ons/modify_endpoint.adoc#modify-klusterlet-add-ons[Modifying the klusterlet add-ons settings of your cluster] for more information.

@smcavey
Copy link

smcavey commented Dec 17, 2025

The updated note on the SearchPVCNotPresent alert looks good to me 👍

Copy link
Contributor

@swopebe swopebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few comments

Comment on lines +14 to +17
Search returns and lists each cluster with the resource that you search.
For resources in the _hub_ cluster, the cluster name is displayed as _local-cluster_.

*Note:* If you change the default name of your _local-cluster_ to another value, the results appear within the changed local cluster name.
Copy link
Contributor Author

@dockerymick dockerymick Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Search returns and lists each cluster with the resource that you search.
For resources in the _hub_ cluster, the cluster name is displayed as _local-cluster_.
*Note:* If you change the default name of your _local-cluster_ to another value, the results appear within the changed local cluster name.
Search returns and lists each cluster with the resource that you search. For resources in the _hub_ cluster, the cluster name is displayed as _local-cluster_.
You can change the `local-cluster` name if the `enabled` field is set to `false`. You must use 34 or fewer characters for the `<your-local-cluster-name>` value. The `local-cluster` cannot be renamed if it is set as `enabled: true`.
*Note:* If you change the default name of your `local-cluster` to another value, the results appear within the changed local cluster name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jlpadilla are there any other consequences that need to be mentioned ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No other consequences, we just change the cluster name from "local-cluster" to the configured name.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants