-
Notifications
You must be signed in to change notification settings - Fork 118
https://issues.redhat.com/browse/ACM-26272 #8448
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
Open
dockerymick
wants to merge
12
commits into
2.15_stage
Choose a base branch
from
mj-ACM-26272-2
base: 2.15_stage
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+178
−143
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
bf0d96e
https://issues.redhat.com/browse/ACM-26272\#
dockerymick 44ddaab
Apply suggestion from @jlpadilla
dockerymick f04eb44
Updates after dev review
dockerymick e27f379
Updates after dev review
dockerymick 3d5fc03
More updates after dev review
dockerymick f517482
More updates after review
dockerymick f07ea2f
Updates after peer review
dockerymick d9b465a
Adding suggestion from @swopebe
dockerymick d262634
Adding suggestion from @swopebe
dockerymick 9a276e4
Apply suggestion from @dockerymick
dockerymick 033914e
Apply suggestion from @swopebe
dockerymick d1a73a7
Update search/query_search_console.adoc
dockerymick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| [#customize-search-service] | ||
| = Customizing the Search service | ||
|
|
||
| Customize the Search service to set up persistent storage, to fine-tune for performance and scalability, or to 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. | ||
|
|
||
| *Required access:* Cluster administrator | ||
|
|
||
| .Prerequisites | ||
|
|
||
| - You must have access to the `open-cluster-management` namespace. | ||
|
|
||
| .Procedure | ||
|
|
||
| Complete the following steps to customize the Search service: | ||
|
|
||
| . Modify the default values in the `search-v2-operator` custom resource. | ||
| .. To view details of the custom resource, run the following command: | ||
|
|
||
| + | ||
| [source,bash] | ||
| ---- | ||
| oc get search search-v2-operator -n <acm-namespace> -o yaml | ||
| ---- | ||
|
|
||
| .. Configure a persistent volume claim for your clusters that are in production. If the empty directory size is limited for your PostgreSQL database, save your PostgreSQL data on a persistent volume claim to improve search performance. | ||
|
|
||
| + | ||
| *Notes:* | ||
|
|
||
| - When you install {acm-short}, the PostgreSQL database is configured to save the PostgreSQL data in an empty directory (`emptyDir`) volume. | ||
| - When a persistent volume claim is not configured, the `SearchPVCNotPresent` alert is displayed in the Status pane. | ||
|
|
||
| .. To persist your search data, select a storage class from your {acm-short} hub cluster. | ||
| .. For example, create a persistent volume claim if you select the `gp2` storageclass and mount the claim to the `search-postgres` pod. Your configuration might resemble the following example: | ||
|
|
||
| + | ||
| [source,yaml] | ||
| ---- | ||
| apiVersion: search.open-cluster-management.io/v1alpha1 | ||
| kind: Search | ||
| metadata: | ||
| name: search-v2-operator | ||
| namespace: open-cluster-management | ||
| labels: | ||
| cluster.open-cluster-management.io/backup: "" | ||
| spec: | ||
| dbStorage: | ||
| size: 10Gi | ||
| storageClassName: gp2 | ||
| ---- | ||
|
|
||
| .. Modify the storage size if you need to. By default, the storage size is `10Gi`. For example, `20Gi` might be sufficient for about 200 managed clusters. | ||
|
|
||
| . Optimize cost by tuning the pod memory or CPU requirements, replica count, and update log levels for any of the four search pods: `indexer`, `database`, `queryapi`, or `collector`. | ||
|
|
||
| .. Update the `deployment` section of the `search-v2-operator` custom resource. There are four deployments managed by the `search-v2-operator`, which can be updated individually. | ||
| .. Apply resources for the `indexer`, `database`, `queryapi`, or `collector` pod. | ||
| .. Add multiple environment variables in the `envVar` section to specify a value for each variable that you name. | ||
| .. Specify a value for each variable that you name by adding multiple environment variables in the `envVar` specification. | ||
| .. Add the `- -v=3` argument for the `queryapi` specification to control the log level verbosity for any of the four pods. | ||
| Your `search-v2-operator` custom resource might resemble the following file: | ||
|
|
||
| + | ||
| [source,yaml] | ||
| ---- | ||
| apiVersion: search.open-cluster-management.io/v1alpha1 | ||
| kind: Search | ||
| metadata: | ||
| name: search-v2-operator | ||
| namespace: open-cluster-management | ||
| spec: | ||
| deployments: | ||
| collector: | ||
| resources: | ||
| limits: | ||
| cpu: 500m | ||
| memory: 128Mi | ||
| requests: | ||
| cpu: 250m | ||
| memory: 64Mi | ||
| indexer: | ||
| replicaCount: 3 | ||
| database: | ||
| envVar: | ||
| - name: POSTGRESQL_EFFECTIVE_CACHE_SIZE | ||
| value: 1024MB | ||
| - name: POSTGRESQL_SHARED_BUFFERS | ||
| value: 512MB | ||
| - name: WORK_MEM | ||
| value: 128MB | ||
| queryapi: | ||
| arguments: | ||
| - -v=3 | ||
| ---- | ||
|
|
||
| . Apply memory resources for the `indexer` pod. See the following example: | ||
|
|
||
| + | ||
| [source,yaml] | ||
| ---- | ||
| indexer: | ||
| resources: | ||
| limits: | ||
| memory: 5Gi | ||
| requests: | ||
| memory: 1Gi | ||
| ---- | ||
|
|
||
| . Define the node placement for search pods. | ||
| .. Update the `Placement` resource of search pods by using the `nodeSelector` parameter, or the `tolerations` parameter. View the following example configuration: | ||
|
|
||
| + | ||
| [source,yaml] | ||
| ---- | ||
| spec: | ||
| dbStorage: | ||
| size: 10Gi | ||
| deployments: | ||
| collector: {} | ||
| database: {} | ||
| indexer: {} | ||
| queryapi: {} | ||
| nodeSelector: | ||
| node-role.kubernetes.io/infra: "" | ||
| tolerations: | ||
| - effect: NoSchedule | ||
| key: node-role.kubernetes.io/infra | ||
| operator: Exists | ||
| ---- | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 rest of the content looks really good.