From 700cd7a18edcb4997616a962ec7209142348b182 Mon Sep 17 00:00:00 2001 From: concaf Date: Thu, 7 Dec 2023 07:30:11 +0000 Subject: [PATCH] deploy: e73ec6a10b7ad988d30df7c318939d2b1adc5c18 --- .../hashicorp-integration-with-chains.html | 7 +- docs/latest/index.html | 7 +- .../operator/high-availability-1.12.html | 294 ++++++++++++++++++ docs/latest/operator/high-availability.html | 13 +- docs/latest/operator/install-result.html | 9 +- docs/latest/operator/troubleshooting.html | 7 +- docs/latest/pipeline/auth.html | 7 +- docs/latest/pipeline/cache-in-tekton.html | 7 +- docs/latest/pipeline/unprivileged-builds.html | 7 +- docs/latest/results/query-using-opc.html | 7 +- sitemap.xml | 22 +- 11 files changed, 356 insertions(+), 31 deletions(-) create mode 100644 docs/latest/operator/high-availability-1.12.html diff --git a/docs/latest/chains/hashicorp-integration-with-chains.html b/docs/latest/chains/hashicorp-integration-with-chains.html index 4651179..8aa1660 100644 --- a/docs/latest/chains/hashicorp-integration-with-chains.html +++ b/docs/latest/chains/hashicorp-integration-with-chains.html @@ -76,10 +76,13 @@

Documentation

Troubleshooting + diff --git a/docs/latest/index.html b/docs/latest/index.html index b9a255a..5e6573d 100644 --- a/docs/latest/index.html +++ b/docs/latest/index.html @@ -76,10 +76,13 @@

Documentation

Troubleshooting + diff --git a/docs/latest/operator/high-availability-1.12.html b/docs/latest/operator/high-availability-1.12.html new file mode 100644 index 0000000..ecb6051 --- /dev/null +++ b/docs/latest/operator/high-availability-1.12.html @@ -0,0 +1,294 @@ + + + + + + High Availability for Tekton Pipelines Controller from OpenShift Pipelines 1.12 :: Red Hat OpenShift Pipelines previews + + + + + + + + + + + +
+ +
+ +
+
+
+

High Availability for Tekton Pipelines Controller from OpenShift Pipelines 1.12

+
+

High Availability for Tekton Pipelines Controller

+
+
+

If you want to run Tekton Pipelines to support high concurrent workload +scenarios, you need to follow following steps to enable high +availability for tekton-pipelines-controller. With this approach, you +divide the workqueue in buckets, and each replica owns a subset of those +buckets and process the load if that replica is the leader of that +bucket.

+
+ +++ + + + + + +

NOTE: This doc has been valid for OpenShift Pipelines from v1.12.0 onwards.

+
+

Enable High Availability With Operator on OpenShift:

+
+
    +
  1. +

    First, specify the number of buckets across which you want to +distribute workqueue. The maximum supported value for bucket is 10. +Also specify the number of replicas of tekton-pipelines-controller +you need to share the workloads process by the controller. +You need to update the config CR with the required number of buckets and replicas.

    +
  2. +
+
+
+
+
oc edit tektonconfig config
+
+
+
+
+
apiVersion: operator.tekton.dev/v1alpha1
+kind: TektonConfig
+metadata:
+    name: config
+spec:
+    <<--->>
+    pipeline:
+        <<--->>
+        performance:
+            disable-ha: false
+            buckets: < buckets required >
+            replicas: < replicas required >
+        <<--->>
+
+
+
+
    +
  1. +

    Now delete the existing leases so that old replica removes hold and +new leases gets created which get acquired by different replicas.

    +
  2. +
+
+
+
+
oc delete -n openshift-pipelines $(oc get leases -n openshift-pipelines -o name | grep tekton-pipelines-controller)
+
+
+
+

Note:

+
+
+
    +
  • +

    If by chance the leases are not properly divided over multiple +pods, you can try recreating them.

    +
  • +
  • +

    Configmap config-leader-election is +by default getting used in knative controllers. So the change in data of +this gets read by all other components too. It is fixed for +pipelines-controller in +1.11.1 and for others in +1.13.0

    +
  • +
+
+
+
+

Disable High Availability With Operator on OpenShift:

+
+
    +
  1. +

    Remove the bucket and replicas field on the TektonConfig CR to remove the +workqueue distribution or set them both to 1

    +
  2. +
+
+
+
+
oc edit tektonconfig config
+
+
+
+
+
apiVersion: operator.tekton.dev/v1alpha1
+kind: TektonConfig
+metadata:
+    name: config
+spec:
+    <<--->>
+    pipeline:
+        <<--->>
+        performance:
+            disable-ha: false
+        <<--->>
+
+
+
+
    +
  1. +

    Next is to delete the dangling leases which were acquired previously +by the replicas

    +
  2. +
+
+
+
+
oc delete -n openshift-pipelines $(oc get leases -n openshift-pipelines -o name | grep tekton-pipelines-controller)
+
+
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/docs/latest/operator/high-availability.html b/docs/latest/operator/high-availability.html index 3431313..3818482 100644 --- a/docs/latest/operator/high-availability.html +++ b/docs/latest/operator/high-availability.html @@ -3,7 +3,7 @@ - High Availability for Tekton Pipelines Controller :: Red Hat OpenShift Pipelines previews + High Availability for Tekton Pipelines Controller on OpenShift Pipeline 1.10 and 1.11 :: Red Hat OpenShift Pipelines previews @@ -75,11 +75,14 @@

Documentation

+ @@ -133,14 +136,14 @@

Documentation

-

High Availability for Tekton Pipelines Controller

+

High Availability for Tekton Pipelines Controller on OpenShift Pipeline 1.10 and 1.11

High Availability for Tekton Pipelines Controller

diff --git a/docs/latest/operator/install-result.html b/docs/latest/operator/install-result.html index 415f5ad..7084ebb 100644 --- a/docs/latest/operator/install-result.html +++ b/docs/latest/operator/install-result.html @@ -75,12 +75,15 @@

Documentation

- + + + diff --git a/docs/latest/pipeline/auth.html b/docs/latest/pipeline/auth.html index 0f5af28..c0764d7 100644 --- a/docs/latest/pipeline/auth.html +++ b/docs/latest/pipeline/auth.html @@ -76,10 +76,13 @@

Documentation

Troubleshooting + diff --git a/docs/latest/pipeline/cache-in-tekton.html b/docs/latest/pipeline/cache-in-tekton.html index 9cb5f71..28af89a 100644 --- a/docs/latest/pipeline/cache-in-tekton.html +++ b/docs/latest/pipeline/cache-in-tekton.html @@ -76,10 +76,13 @@

Documentation

Troubleshooting + diff --git a/docs/latest/pipeline/unprivileged-builds.html b/docs/latest/pipeline/unprivileged-builds.html index 751b4c9..570bfbf 100644 --- a/docs/latest/pipeline/unprivileged-builds.html +++ b/docs/latest/pipeline/unprivileged-builds.html @@ -76,10 +76,13 @@

Documentation

Troubleshooting + diff --git a/docs/latest/results/query-using-opc.html b/docs/latest/results/query-using-opc.html index 0a0ba76..7024322 100644 --- a/docs/latest/results/query-using-opc.html +++ b/docs/latest/results/query-using-opc.html @@ -76,10 +76,13 @@

Documentation

Troubleshooting + diff --git a/sitemap.xml b/sitemap.xml index 61aa878..5026250 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2,38 +2,42 @@ https://docs.openshift-pipelines.org/docs/latest/chains/hashicorp-integration-with-chains.html -2023-11-22T10:59:21.724Z +2023-12-07T07:30:09.864Z https://docs.openshift-pipelines.org/docs/latest/index.html -2023-11-22T10:59:21.724Z +2023-12-07T07:30:09.864Z + + +https://docs.openshift-pipelines.org/docs/latest/operator/high-availability-1.12.html +2023-12-07T07:30:09.864Z https://docs.openshift-pipelines.org/docs/latest/operator/high-availability.html -2023-11-22T10:59:21.724Z +2023-12-07T07:30:09.864Z https://docs.openshift-pipelines.org/docs/latest/operator/install-result.html -2023-11-22T10:59:21.724Z +2023-12-07T07:30:09.864Z https://docs.openshift-pipelines.org/docs/latest/operator/troubleshooting.html -2023-11-22T10:59:21.724Z +2023-12-07T07:30:09.864Z https://docs.openshift-pipelines.org/docs/latest/pipeline/auth.html -2023-11-22T10:59:21.724Z +2023-12-07T07:30:09.864Z https://docs.openshift-pipelines.org/docs/latest/pipeline/cache-in-tekton.html -2023-11-22T10:59:21.724Z +2023-12-07T07:30:09.864Z https://docs.openshift-pipelines.org/docs/latest/pipeline/unprivileged-builds.html -2023-11-22T10:59:21.724Z +2023-12-07T07:30:09.864Z https://docs.openshift-pipelines.org/docs/latest/results/query-using-opc.html -2023-11-22T10:59:21.724Z +2023-12-07T07:30:09.864Z