diff --git a/components/pipeline-service/development/bump-results-watcher-replicas.yaml b/components/pipeline-service/development/bump-results-watcher-replicas.yaml index bcd64c5fb6d..dd1942ff27e 100644 --- a/components/pipeline-service/development/bump-results-watcher-replicas.yaml +++ b/components/pipeline-service/development/bump-results-watcher-replicas.yaml @@ -1,4 +1,4 @@ - op: replace path: /spec/replicas # default pipeline-service setting is 1 - value: 2 \ No newline at end of file + value: 1 \ No newline at end of file diff --git a/components/pipeline-service/development/config.env b/components/pipeline-service/development/config.env new file mode 100644 index 00000000000..45c7366e68f --- /dev/null +++ b/components/pipeline-service/development/config.env @@ -0,0 +1,32 @@ +DB_USER= +DB_PASSWORD= +DB_HOST= +DB_PORT=5432 +DB_NAME= +DB_SSLMODE=disable +DB_SSLROOTCERT= +DB_ENABLE_AUTO_MIGRATION=true +SERVER_PORT=8080 +PROMETHEUS_PORT=9090 +PROMETHEUS_HISTOGRAM=true +TLS_PATH=/etc/tls +AUTH_DISABLE=false +AUTH_IMPERSONATE=true +LOG_LEVEL=info +LOGS_API=false +LOGS_TYPE=File +LOGS_BUFFER_SIZE=5242880 +LOGS_PATH=/logs +S3_BUCKET_NAME= +S3_ENDPOINT= +S3_HOSTNAME_IMMUTABLE=false +S3_REGION= +S3_ACCESS_KEY_ID= +S3_SECRET_ACCESS_KEY= +S3_MULTI_PART_SIZE=5242880 +GCS_BUCKET_NAME= +STORAGE_EMULATOR_HOST= +K8S_QPS=50 +K8S_BURST=100 +PROFILING=true +PROFILING_PORT=6060 \ No newline at end of file diff --git a/components/pipeline-service/development/kustomization.yaml b/components/pipeline-service/development/kustomization.yaml index 6c062957851..b3172399fe7 100644 --- a/components/pipeline-service/development/kustomization.yaml +++ b/components/pipeline-service/development/kustomization.yaml @@ -18,6 +18,19 @@ images: - name: quay.io/redhat-appstudio/tekton-results-watcher newTag: 3ed2e97d4eacb0252b153edd2d6006637acb528e +# generate a new configmap with updated values (logs api, db ssl mode) and replace the default one +configMapGenerator: + - behavior: replace + files: + - config.env + name: api-config + options: + disableNameSuffixHash: true + - behavior: merge + name: config-observability + literals: + - profiling.enable="true" + patches: - path: chains-tekton-config-patches.yaml target: @@ -56,3 +69,8 @@ patches: target: kind: TektonConfig name: config + - path: update-results-watcher-performance.yaml + target: + kind: Deployment + namespace: tekton-results + name: tekton-results-watcher \ No newline at end of file diff --git a/components/pipeline-service/development/update-results-watcher-performance.yaml b/components/pipeline-service/development/update-results-watcher-performance.yaml new file mode 100644 index 00000000000..03b0fe44ac4 --- /dev/null +++ b/components/pipeline-service/development/update-results-watcher-performance.yaml @@ -0,0 +1,31 @@ +--- +- op: add + path: /spec/template/spec/containers/0/args/- + value: -threadiness +- op: add + path: /spec/template/spec/containers/0/args/- + value: "50" +- op: add + path: /spec/template/spec/containers/0/args/- + value: -qps +- op: add + path: /spec/template/spec/containers/0/args/- + value: "50" +- op: add + path: /spec/template/spec/containers/0/args/- + value: -burst +- op: add + path: /spec/template/spec/containers/0/args/- + value: "100" +- op: add + path: /spec/template/spec/containers/0/args/- + value: -update_log_timeout +- op: add + path: /spec/template/spec/containers/0/args/- + value: "9m" +- op: add + path: /spec/template/spec/containers/0/args/- + value: -dynamic_reconcile_timeout +- op: add + path: /spec/template/spec/containers/0/args/- + value: "9m" diff --git a/components/pipeline-service/staging/base/bump-results-watcher-replicas.yaml b/components/pipeline-service/staging/base/bump-results-watcher-replicas.yaml index bcd64c5fb6d..dd1942ff27e 100644 --- a/components/pipeline-service/staging/base/bump-results-watcher-replicas.yaml +++ b/components/pipeline-service/staging/base/bump-results-watcher-replicas.yaml @@ -1,4 +1,4 @@ - op: replace path: /spec/replicas # default pipeline-service setting is 1 - value: 2 \ No newline at end of file + value: 1 \ No newline at end of file diff --git a/components/pipeline-service/staging/base/config.env b/components/pipeline-service/staging/base/config.env new file mode 100644 index 00000000000..45c7366e68f --- /dev/null +++ b/components/pipeline-service/staging/base/config.env @@ -0,0 +1,32 @@ +DB_USER= +DB_PASSWORD= +DB_HOST= +DB_PORT=5432 +DB_NAME= +DB_SSLMODE=disable +DB_SSLROOTCERT= +DB_ENABLE_AUTO_MIGRATION=true +SERVER_PORT=8080 +PROMETHEUS_PORT=9090 +PROMETHEUS_HISTOGRAM=true +TLS_PATH=/etc/tls +AUTH_DISABLE=false +AUTH_IMPERSONATE=true +LOG_LEVEL=info +LOGS_API=false +LOGS_TYPE=File +LOGS_BUFFER_SIZE=5242880 +LOGS_PATH=/logs +S3_BUCKET_NAME= +S3_ENDPOINT= +S3_HOSTNAME_IMMUTABLE=false +S3_REGION= +S3_ACCESS_KEY_ID= +S3_SECRET_ACCESS_KEY= +S3_MULTI_PART_SIZE=5242880 +GCS_BUCKET_NAME= +STORAGE_EMULATOR_HOST= +K8S_QPS=50 +K8S_BURST=100 +PROFILING=true +PROFILING_PORT=6060 \ No newline at end of file diff --git a/components/pipeline-service/staging/base/kustomization.yaml b/components/pipeline-service/staging/base/kustomization.yaml index 46568fbf687..bdcce39ced8 100644 --- a/components/pipeline-service/staging/base/kustomization.yaml +++ b/components/pipeline-service/staging/base/kustomization.yaml @@ -20,6 +20,19 @@ images: - name: quay.io/redhat-appstudio/tekton-results-watcher newTag: 3ed2e97d4eacb0252b153edd2d6006637acb528e +# generate a new configmap with updated values (logs api, db ssl mode) and replace the default one +configMapGenerator: + - behavior: replace + files: + - config.env + name: api-config + options: + disableNameSuffixHash: true + - behavior: merge + name: config-observability + literals: + - profiling.enable="true" + patches: - path: chains-tekton-config-patches.yaml target: diff --git a/components/pipeline-service/staging/base/update-results-watcher-performance.yaml b/components/pipeline-service/staging/base/update-results-watcher-performance.yaml index ec2b073856e..99ad99930a9 100644 --- a/components/pipeline-service/staging/base/update-results-watcher-performance.yaml +++ b/components/pipeline-service/staging/base/update-results-watcher-performance.yaml @@ -4,4 +4,34 @@ value: "250m" - op: replace path: /spec/template/spec/containers/1/resources/limits/cpu - value: "250m" \ No newline at end of file + value: "250m" +- op: add + path: /spec/template/spec/containers/1/args/- + value: -threadiness +- op: add + path: /spec/template/spec/containers/1/args/- + value: "50" +- op: add + path: /spec/template/spec/containers/1/args/- + value: -qps +- op: add + path: /spec/template/spec/containers/1/args/- + value: "50" +- op: add + path: /spec/template/spec/containers/1/args/- + value: -burst +- op: add + path: /spec/template/spec/containers/1/args/- + value: "100" +- op: add + path: /spec/template/spec/containers/1/args/- + value: -update_log_timeout +- op: add + path: /spec/template/spec/containers/1/args/- + value: "9m" +- op: add + path: /spec/template/spec/containers/1/args/- + value: -dynamic_reconcile_timeout +- op: add + path: /spec/template/spec/containers/1/args/- + value: "9m" diff --git a/components/pipeline-service/staging/stone-stage-p01/deploy.yaml b/components/pipeline-service/staging/stone-stage-p01/deploy.yaml index f0c2c139eb3..e782167d0a9 100644 --- a/components/pipeline-service/staging/stone-stage-p01/deploy.yaml +++ b/components/pipeline-service/staging/stone-stage-p01/deploy.yaml @@ -897,7 +897,7 @@ subjects: --- apiVersion: v1 data: - config.env: | + config.env: |- DB_USER= DB_PASSWORD= DB_HOST= @@ -926,6 +926,10 @@ data: S3_MULTI_PART_SIZE=5242880 GCS_BUCKET_NAME= STORAGE_EMULATOR_HOST= + K8S_QPS=50 + K8S_BURST=100 + PROFILING=true + PROFILING_PORT=6060 kind: ConfigMap metadata: annotations: @@ -1054,6 +1058,7 @@ data: metrics.taskrun.duration-type: "histogram" metrics.pipelinerun.level: "pipeline" metrics.pipelinerun.duration-type: "histogram" + profiling.enable: "true" kind: ConfigMap metadata: annotations: @@ -1404,7 +1409,7 @@ metadata: name: tekton-results-watcher namespace: tekton-results spec: - replicas: 2 + replicas: 1 selector: matchLabels: app.kubernetes.io/name: tekton-results-watcher @@ -1470,6 +1475,16 @@ spec: - -check_owner=false - -completed_run_grace_period - 10m + - -threadiness + - "50" + - -qps + - "50" + - -burst + - "100" + - -update_log_timeout + - 9m + - -dynamic_reconcile_timeout + - 9m env: - name: SYSTEM_NAMESPACE valueFrom: diff --git a/components/pipeline-service/staging/stone-stg-m01/deploy.yaml b/components/pipeline-service/staging/stone-stg-m01/deploy.yaml index a1a96ffd5ca..4657ca5d795 100644 --- a/components/pipeline-service/staging/stone-stg-m01/deploy.yaml +++ b/components/pipeline-service/staging/stone-stg-m01/deploy.yaml @@ -897,7 +897,7 @@ subjects: --- apiVersion: v1 data: - config.env: | + config.env: |- DB_USER= DB_PASSWORD= DB_HOST= @@ -926,6 +926,10 @@ data: S3_MULTI_PART_SIZE=5242880 GCS_BUCKET_NAME= STORAGE_EMULATOR_HOST= + K8S_QPS=50 + K8S_BURST=100 + PROFILING=true + PROFILING_PORT=6060 kind: ConfigMap metadata: annotations: @@ -1054,6 +1058,7 @@ data: metrics.taskrun.duration-type: "histogram" metrics.pipelinerun.level: "pipeline" metrics.pipelinerun.duration-type: "histogram" + profiling.enable: "true" kind: ConfigMap metadata: annotations: @@ -1404,7 +1409,7 @@ metadata: name: tekton-results-watcher namespace: tekton-results spec: - replicas: 2 + replicas: 1 selector: matchLabels: app.kubernetes.io/name: tekton-results-watcher @@ -1470,6 +1475,16 @@ spec: - -check_owner=false - -completed_run_grace_period - 10m + - -threadiness + - "50" + - -qps + - "50" + - -burst + - "100" + - -update_log_timeout + - 9m + - -dynamic_reconcile_timeout + - 9m env: - name: SYSTEM_NAMESPACE valueFrom: diff --git a/components/pipeline-service/staging/stone-stg-rh01/deploy.yaml b/components/pipeline-service/staging/stone-stg-rh01/deploy.yaml index 8c5f4012128..6ba1768a03c 100644 --- a/components/pipeline-service/staging/stone-stg-rh01/deploy.yaml +++ b/components/pipeline-service/staging/stone-stg-rh01/deploy.yaml @@ -897,7 +897,7 @@ subjects: --- apiVersion: v1 data: - config.env: | + config.env: |- DB_USER= DB_PASSWORD= DB_HOST= @@ -926,6 +926,10 @@ data: S3_MULTI_PART_SIZE=5242880 GCS_BUCKET_NAME= STORAGE_EMULATOR_HOST= + K8S_QPS=50 + K8S_BURST=100 + PROFILING=true + PROFILING_PORT=6060 kind: ConfigMap metadata: annotations: @@ -1054,6 +1058,7 @@ data: metrics.taskrun.duration-type: "histogram" metrics.pipelinerun.level: "pipeline" metrics.pipelinerun.duration-type: "histogram" + profiling.enable: "true" kind: ConfigMap metadata: annotations: @@ -1404,7 +1409,7 @@ metadata: name: tekton-results-watcher namespace: tekton-results spec: - replicas: 2 + replicas: 1 selector: matchLabels: app.kubernetes.io/name: tekton-results-watcher @@ -1470,6 +1475,16 @@ spec: - -check_owner=false - -completed_run_grace_period - 10m + - -threadiness + - "50" + - -qps + - "50" + - -burst + - "100" + - -update_log_timeout + - 9m + - -dynamic_reconcile_timeout + - 9m env: - name: SYSTEM_NAMESPACE valueFrom: