Skip to content
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

Configurable shard-level concurrent reconciliation #1124

Merged
merged 1 commit into from
May 21, 2023
Merged

Configurable shard-level concurrent reconciliation #1124

merged 1 commit into from
May 21, 2023

Conversation

zcross
Copy link
Contributor

@zcross zcross commented Mar 6, 2023

Background: #1109
Related PR(s):

This PR adds a configurable level of concurrency to the operator for the purpose of CHI reconciliation, with concurrency being applied at the shards level.

Key design decisions:

  • First shard reconciliation (all replicas) is always done sequentially (regardless of config), and must succeed. This provides early warning of failures before otherwise applying changes broadly to several replicas in parallel
  • Users get two configuration "knobs," both at the operator level:
    • Goroutines available for shard reconciliation (use up to N)
    • Max percentage of the cluster's shards that may be reconciled concurrently (up to X% shards in parallel)
  • The default configuration is inert: matching the status quo of sequential reconciliation (users must opt-in)

Important items to consider before making a Pull Request

Please check items PR complies to:

  • All commits in the PR are squashed. More info
  • The PR is made into dedicated next-release branch, not into master branch1. More info
  • The PR is signed. More info

@zcross
Copy link
Contributor Author

zcross commented Mar 6, 2023

Here's an example operator config change, CRD definition, and logs showing the flow of reconciliation using this new mode:

Operator file config change:

    ################################################
    ##
    ## Reconcile Section
    ##
    ################################################
    reconcile:
      runtime:
        # Max number of concurrent reconciles in progress
        threadsNumber: 10
        shardsThreadNumber: 4
        shardsMaxConcurrencyPercent: 100

CRD example (2x4x2)

apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseInstallation"
metadata:
  name: "tiny"
spec:
  configuration:
    clusters:
      - name: "a"
        layout:
          shardsCount: 4
          replicasCount: 2
      - name: "b"
        layout:
          shardsCount: 4
          replicasCount: 2

Reconcile wall time via get pods view (simple):

NAME               READY   STATUS    RESTARTS   AGE
chi-tiny-a-0-0-0   1/1     Running   0          14m
chi-tiny-a-0-1-0   1/1     Running   0          13m
chi-tiny-a-1-0-0   1/1     Running   0          11m
chi-tiny-a-1-1-0   1/1     Running   0          8m
chi-tiny-a-2-0-0   1/1     Running   0          11m
chi-tiny-a-2-1-0   1/1     Running   0          8m
chi-tiny-a-3-0-0   1/1     Running   0          11m
chi-tiny-a-3-1-0   1/1     Running   0          8m
chi-tiny-b-0-0-0   1/1     Running   0          5m58s
chi-tiny-b-0-1-0   1/1     Running   0          4m56s
chi-tiny-b-1-0-0   1/1     Running   0          3m33s
chi-tiny-b-1-1-0   1/1     Running   0          69s
chi-tiny-b-2-0-0   1/1     Running   0          3m33s
chi-tiny-b-2-1-0   1/1     Running   0          74s
chi-tiny-b-3-0-0   1/1     Running   0          3m33s
chi-tiny-b-3-1-0   1/1     Running   0          69s

Full event log via kubectl describe chi


  Task I Ds Completed:
    6607fd90-777f-45c6-bc36-3ff9ffd12f18
  Task I Ds Started:
    eb2d5aa5-2bad-4643-9e6d-bfd060fb1335
Events:
  Type  Reason                  Age    From                 Message
  ----  ------                  ----   ----                 -------
  Info  ReconcileStarted        16m    clickhouse-operator  reconcile started, task id: eb2d5aa5-2bad-4643-9e6d-bfd060fb1335
  Info  CreateCompleted         16m    clickhouse-operator  Create ConfigMap marchsix/chi-tiny-common-configd
  Info  CreateCompleted         16m    clickhouse-operator  Create ConfigMap marchsix/chi-tiny-common-usersd
  Info  ReconcileStarted        16m    clickhouse-operator  Reconcile Host 0-0 started
  Info  CreateCompleted         16m    clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-a-0-0
  Info  CreateStarted           16m    clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-0-0 - started
  Info  CreateCompleted         15m    clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-0-0 - completed
  Info  CreateCompleted         15m    clickhouse-operator  Create Service marchsix/chi-tiny-a-0-0
  Info  CreateStarted           15m    clickhouse-operator  Adding tables on shard/host:0/0 cluster:a
  Info  CreateCompleted         15m    clickhouse-operator  Tables added successfully on shard/host:0/0 cluster:a
  Info  UpdateCompleted         15m    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  ReconcileCompleted      14m    clickhouse-operator  Reconcile Host 0-0 completed
  Info  ProgressHostsCompleted  14m    clickhouse-operator  ProgressHostsCompleted: 1 of 16
  Info  CreateCompleted         14m    clickhouse-operator  Create Service marchsix/clickhouse-tiny
  Info  ReconcileStarted        14m    clickhouse-operator  Reconcile Host 0-1 started
  Info  CreateCompleted         14m    clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-a-0-1
  Info  CreateStarted           14m    clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-0-1 - started
  Info  CreateCompleted         13m    clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-0-1 - completed
  Info  CreateCompleted         13m    clickhouse-operator  Create Service marchsix/chi-tiny-a-0-1
  Info  CreateStarted           13m    clickhouse-operator  Adding tables on shard/host:0/1 cluster:a
  Info  CreateCompleted         13m    clickhouse-operator  Tables added successfully on shard/host:0/1 cluster:a
  Info  UpdateCompleted         13m    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  ReconcileCompleted      13m    clickhouse-operator  Reconcile Host 0-1 completed
  Info  UpdateCompleted         13m    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-usersd
  Info  ProgressHostsCompleted  13m    clickhouse-operator  ProgressHostsCompleted: 2 of 16
  Info  ReconcileStarted        12m    clickhouse-operator  Reconcile Host 2-0 started
  Info  ReconcileStarted        12m    clickhouse-operator  Reconcile Host 3-0 started
  Info  ReconcileStarted        12m    clickhouse-operator  Reconcile Host 1-0 started
  Info  CreateCompleted         12m    clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-a-1-0
  Info  CreateCompleted         12m    clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-a-3-0
  Info  CreateCompleted         12m    clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-a-2-0
  Info  CreateStarted           12m    clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-3-0 - started
  Info  CreateStarted           12m    clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-2-0 - started
  Info  CreateStarted           12m    clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-1-0 - started
  Info  CreateCompleted         11m    clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-3-0 - completed
  Info  CreateCompleted         11m    clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-1-0 - completed
  Info  CreateCompleted         11m    clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-2-0 - completed
  Info  CreateCompleted         11m    clickhouse-operator  Create Service marchsix/chi-tiny-a-1-0
  Info  CreateCompleted         11m    clickhouse-operator  Create Service marchsix/chi-tiny-a-3-0
  Info  CreateCompleted         11m    clickhouse-operator  Create Service marchsix/chi-tiny-a-2-0
  Info  CreateStarted           11m    clickhouse-operator  Adding tables on shard/host:1/0 cluster:a
  Info  CreateStarted           11m    clickhouse-operator  Adding tables on shard/host:3/0 cluster:a
  Info  CreateStarted           11m    clickhouse-operator  Adding tables on shard/host:2/0 cluster:a
  Info  CreateCompleted         10m    clickhouse-operator  Tables added successfully on shard/host:3/0 cluster:a
  Info  CreateCompleted         10m    clickhouse-operator  Tables added successfully on shard/host:2/0 cluster:a
  Info  CreateCompleted         10m    clickhouse-operator  Tables added successfully on shard/host:1/0 cluster:a
  Info  UpdateCompleted         10m    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  UpdateCompleted         10m    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  UpdateCompleted         10m    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  ReconcileCompleted      10m    clickhouse-operator  Reconcile Host 1-0 completed
  Info  ReconcileCompleted      10m    clickhouse-operator  Reconcile Host 3-0 completed
  Info  ReconcileCompleted      10m    clickhouse-operator  Reconcile Host 2-0 completed
  Info  ProgressHostsCompleted  10m    clickhouse-operator  ProgressHostsCompleted: 5 of 16
  Info  ProgressHostsCompleted  10m    clickhouse-operator  ProgressHostsCompleted: 5 of 16
  Info  ProgressHostsCompleted  10m    clickhouse-operator  ProgressHostsCompleted: 5 of 16
  Info  UpdateCompleted         9m55s  clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-usersd
  Info  ReconcileStarted        9m54s  clickhouse-operator  Reconcile Host 2-1 started
  Info  ReconcileStarted        9m54s  clickhouse-operator  Reconcile Host 3-1 started
  Info  ReconcileStarted        9m54s  clickhouse-operator  Reconcile Host 1-1 started
  Info  CreateCompleted         9m36s  clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-a-3-1
  Info  CreateCompleted         9m36s  clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-a-2-1
  Info  CreateCompleted         9m36s  clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-a-1-1
  Info  CreateStarted           9m21s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-3-1 - started
  Info  CreateStarted           9m21s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-1-1 - started
  Info  CreateStarted           9m20s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-2-1 - started
  Info  UpdateCompleted         9m10s  clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-usersd
  Info  CreateCompleted         8m46s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-3-1 - completed
  Info  CreateCompleted         8m44s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-1-1 - completed
  Info  CreateCompleted         8m43s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-a-2-1 - completed
  Info  CreateCompleted         8m34s  clickhouse-operator  Create Service marchsix/chi-tiny-a-3-1
  Info  CreateCompleted         8m33s  clickhouse-operator  Create Service marchsix/chi-tiny-a-1-1
  Info  CreateCompleted         8m32s  clickhouse-operator  Create Service marchsix/chi-tiny-a-2-1
  Info  CreateStarted           8m24s  clickhouse-operator  Adding tables on shard/host:3/1 cluster:a
  Info  CreateStarted           8m22s  clickhouse-operator  Adding tables on shard/host:1/1 cluster:a
  Info  CreateStarted           8m21s  clickhouse-operator  Adding tables on shard/host:2/1 cluster:a
  Info  CreateCompleted         8m14s  clickhouse-operator  Tables added successfully on shard/host:3/1 cluster:a
  Info  CreateCompleted         8m12s  clickhouse-operator  Tables added successfully on shard/host:1/1 cluster:a
  Info  CreateCompleted         8m11s  clickhouse-operator  Tables added successfully on shard/host:2/1 cluster:a
  Info  UpdateCompleted         8m3s   clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  UpdateCompleted         8m1s   clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  UpdateCompleted         8m     clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  ReconcileCompleted      7m51s  clickhouse-operator  Reconcile Host 3-1 completed
  Info  ReconcileCompleted      7m49s  clickhouse-operator  Reconcile Host 1-1 completed
  Info  ReconcileCompleted      7m47s  clickhouse-operator  Reconcile Host 2-1 completed
  Info  ProgressHostsCompleted  7m37s  clickhouse-operator  ProgressHostsCompleted: 8 of 16
  Info  ProgressHostsCompleted  7m35s  clickhouse-operator  ProgressHostsCompleted: 8 of 16
  Info  ProgressHostsCompleted  7m34s  clickhouse-operator  ProgressHostsCompleted: 8 of 16
  Info  UpdateCompleted         7m25s  clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-usersd
  Info  ReconcileStarted        7m21s  clickhouse-operator  Reconcile Host 0-0 started
  Info  CreateCompleted         7m14s  clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-b-0-0
  Info  CreateStarted           7m9s   clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-0-0 - started
  Info  CreateCompleted         6m49s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-0-0 - completed
  Info  CreateCompleted         6m45s  clickhouse-operator  Create Service marchsix/chi-tiny-b-0-0
  Info  CreateStarted           6m41s  clickhouse-operator  Adding tables on shard/host:0/0 cluster:b
  Info  CreateCompleted         6m38s  clickhouse-operator  Tables added successfully on shard/host:0/0 cluster:b
  Info  UpdateCompleted         6m34s  clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  ReconcileCompleted      6m30s  clickhouse-operator  Reconcile Host 0-0 completed
  Info  UpdateCompleted         6m24s  clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-usersd
  Info  ProgressHostsCompleted  6m23s  clickhouse-operator  ProgressHostsCompleted: 9 of 16
  Info  ReconcileStarted        6m17s  clickhouse-operator  Reconcile Host 0-1 started
  Info  CreateCompleted         6m10s  clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-b-0-1
  Info  CreateStarted           6m6s   clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-0-1 - started
  Info  CreateCompleted         5m46s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-0-1 - completed
  Info  CreateCompleted         5m42s  clickhouse-operator  Create Service marchsix/chi-tiny-b-0-1
  Info  CreateStarted           5m39s  clickhouse-operator  Adding tables on shard/host:0/1 cluster:b
  Info  CreateCompleted         5m36s  clickhouse-operator  Tables added successfully on shard/host:0/1 cluster:b
  Info  UpdateCompleted         5m32s  clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  ReconcileCompleted      5m28s  clickhouse-operator  Reconcile Host 0-1 completed
  Info  ProgressHostsCompleted  5m21s  clickhouse-operator  ProgressHostsCompleted: 10 of 16
  Info  UpdateCompleted         5m21s  clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-usersd
  Info  ReconcileStarted        5m15s  clickhouse-operator  Reconcile Host 3-0 started
  Info  ReconcileStarted        5m15s  clickhouse-operator  Reconcile Host 2-0 started
  Info  ReconcileStarted        5m15s  clickhouse-operator  Reconcile Host 1-0 started
  Info  CreateCompleted         5m1s   clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-b-1-0
  Info  CreateCompleted         5m1s   clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-b-2-0
  Info  CreateCompleted         5m     clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-b-3-0
  Info  CreateStarted           4m51s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-2-0 - started
  Info  CreateStarted           4m50s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-1-0 - started
  Info  CreateStarted           4m50s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-3-0 - started
  Info  CreateCompleted         4m21s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-2-0 - completed
  Info  CreateCompleted         4m14s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-1-0 - completed
  Info  CreateCompleted         4m14s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-3-0 - completed
  Info  CreateCompleted         4m9s   clickhouse-operator  Create Service marchsix/chi-tiny-b-2-0
  Info  CreateCompleted         4m3s   clickhouse-operator  Create Service marchsix/chi-tiny-b-1-0
  Info  CreateCompleted         4m2s   clickhouse-operator  Create Service marchsix/chi-tiny-b-3-0
  Info  CreateStarted           3m59s  clickhouse-operator  Adding tables on shard/host:2/0 cluster:b
  Info  CreateStarted           3m53s  clickhouse-operator  Adding tables on shard/host:1/0 cluster:b
  Info  CreateStarted           3m52s  clickhouse-operator  Adding tables on shard/host:3/0 cluster:b
  Info  CreateCompleted         3m49s  clickhouse-operator  Tables added successfully on shard/host:2/0 cluster:b
  Info  CreateCompleted         3m42s  clickhouse-operator  Tables added successfully on shard/host:3/0 cluster:b
  Info  CreateCompleted         3m42s  clickhouse-operator  Tables added successfully on shard/host:1/0 cluster:b
  Info  UpdateCompleted         3m38s  clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  UpdateCompleted         3m32s  clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  UpdateCompleted         3m31s  clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  ReconcileCompleted      3m26s  clickhouse-operator  Reconcile Host 2-0 completed
  Info  ReconcileCompleted      3m17s  clickhouse-operator  Reconcile Host 1-0 completed
  Info  ReconcileCompleted      3m17s  clickhouse-operator  Reconcile Host 3-0 completed
  Info  ProgressHostsCompleted  3m12s  clickhouse-operator  ProgressHostsCompleted: 13 of 16
  Info  ProgressHostsCompleted  3m4s   clickhouse-operator  ProgressHostsCompleted: 13 of 16
  Info  ProgressHostsCompleted  3m3s   clickhouse-operator  ProgressHostsCompleted: 13 of 16
  Info  UpdateCompleted         3m     clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-usersd
  Info  ReconcileStarted        2m59s  clickhouse-operator  Reconcile Host 2-1 started
  Info  ReconcileStarted        2m50s  clickhouse-operator  Reconcile Host 3-1 started
  Info  ReconcileStarted        2m50s  clickhouse-operator  Reconcile Host 1-1 started
  Info  CreateCompleted         2m44s  clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-b-2-1
  Info  CreateCompleted         2m36s  clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-b-1-1
  Info  CreateCompleted         2m35s  clickhouse-operator  Create ConfigMap marchsix/chi-tiny-deploy-confd-b-3-1
  Info  CreateStarted           2m31s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-2-1 - started
  Info  CreateStarted           2m25s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-1-1 - started
  Info  CreateStarted           2m25s  clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-3-1 - started
  Info  CreateCompleted         2m3s   clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-2-1 - completed
  Info  CreateCompleted         114s   clickhouse-operator  Create Service marchsix/chi-tiny-b-2-1
  Info  CreateCompleted         110s   clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-1-1 - completed
  Info  CreateCompleted         110s   clickhouse-operator  Create StatefulSet marchsix/chi-tiny-b-3-1 - completed
  Info  CreateStarted           104s   clickhouse-operator  Adding tables on shard/host:2/1 cluster:b
  Info  CreateCompleted         98s    clickhouse-operator  Create Service marchsix/chi-tiny-b-3-1
  Info  CreateCompleted         98s    clickhouse-operator  Create Service marchsix/chi-tiny-b-1-1
  Info  CreateCompleted         94s    clickhouse-operator  Tables added successfully on shard/host:2/1 cluster:b
  Info  CreateStarted           88s    clickhouse-operator  Adding tables on shard/host:3/1 cluster:b
  Info  CreateStarted           88s    clickhouse-operator  Adding tables on shard/host:1/1 cluster:b
  Info  UpdateCompleted         83s    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  CreateCompleted         78s    clickhouse-operator  Tables added successfully on shard/host:1/1 cluster:b
  Info  CreateCompleted         78s    clickhouse-operator  Tables added successfully on shard/host:3/1 cluster:b
  Info  ReconcileCompleted      71s    clickhouse-operator  Reconcile Host 2-1 completed
  Info  UpdateCompleted         66s    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  UpdateCompleted         66s    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  UpdateCompleted         58s    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-usersd
  Info  ProgressHostsCompleted  57s    clickhouse-operator  ProgressHostsCompleted: 16 of 16
  Info  ReconcileCompleted      50s    clickhouse-operator  Reconcile Host 1-1 completed
  Info  ReconcileCompleted      50s    clickhouse-operator  Reconcile Host 3-1 completed
  Info  ProgressHostsCompleted  38s    clickhouse-operator  ProgressHostsCompleted: 16 of 16
  Info  ProgressHostsCompleted  38s    clickhouse-operator  ProgressHostsCompleted: 16 of 16
  Info  UpdateCompleted         34s    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-usersd
  Info  UpdateCompleted         27s    clickhouse-operator  Update ConfigMap marchsix/chi-tiny-common-configd
  Info  ReconcileInProgress     20s    clickhouse-operator  remove items scheduled for deletion
  Info  ReconcileInProgress     15s    clickhouse-operator  remove items scheduled for deletion
  Info  ReconcileInProgress     12s    clickhouse-operator  add CHI to monitoring
  Info  ReconcileCompleted      2s     clickhouse-operator  reconcile completed, task id: eb2d5aa5-2bad-4643-9e6d-bfd060fb1335

@zcross
Copy link
Contributor Author

zcross commented Mar 6, 2023

and: fyi @sunsingerus .

@alex-zaitsev
Copy link
Member

Thank you, @zcross , nice work! We are busy with 0.21.0 release that should be complete in a couple of weeks, it will go to the next one.

@zcross
Copy link
Contributor Author

zcross commented Mar 7, 2023

Thanks for that update! I'll avoid adding any chatter to the PRs then, unless I discover any new open questions or run into any problems while doing some local manual testing / e2e testing.

@zcross
Copy link
Contributor Author

zcross commented Mar 7, 2023

Another example: one cluster (for brevity), but this time 8 shards x 2 replicas. Still using 100% concurrency percent and 4 goroutines:

kubectl get pods

NAME                    READY   STATUS    RESTARTS   AGE
chi-larger-mono-0-0-0   1/1     Running   0          13m
chi-larger-mono-0-1-0   1/1     Running   0          12m
chi-larger-mono-1-0-0   1/1     Running   0          10m
chi-larger-mono-1-1-0   1/1     Running   0          7m32s
chi-larger-mono-2-0-0   1/1     Running   0          10m
chi-larger-mono-2-1-0   1/1     Running   0          7m28s
chi-larger-mono-3-0-0   1/1     Running   0          10m
chi-larger-mono-3-1-0   1/1     Running   0          7m32s
chi-larger-mono-4-0-0   1/1     Running   0          10m
chi-larger-mono-4-1-0   1/1     Running   0          7m40s
chi-larger-mono-5-0-0   1/1     Running   0          4m38s
chi-larger-mono-5-1-0   1/1     Running   0          2m19s
chi-larger-mono-6-0-0   1/1     Running   0          4m37s
chi-larger-mono-6-1-0   1/1     Running   0          2m13s
chi-larger-mono-7-0-0   1/1     Running   0          4m38s
chi-larger-mono-7-1-0   1/1     Running   0          2m13s
kubectl describe chi 

  Pods:
    chi-larger-mono-0-0-0
    chi-larger-mono-0-1-0
    chi-larger-mono-1-0-0
    chi-larger-mono-1-1-0
    chi-larger-mono-2-0-0
    chi-larger-mono-2-1-0
    chi-larger-mono-3-0-0
    chi-larger-mono-3-1-0
    chi-larger-mono-4-0-0
    chi-larger-mono-4-1-0
    chi-larger-mono-5-0-0
    chi-larger-mono-5-1-0
    chi-larger-mono-6-0-0
    chi-larger-mono-6-1-0
    chi-larger-mono-7-0-0
    chi-larger-mono-7-1-0
  Shards:   8
  Status:   Completed
  Task ID:  fddd57c5-6b94-4256-be54-0017bcbd743e
  Task I Ds Completed:
    fddd57c5-6b94-4256-be54-0017bcbd743e
  Task I Ds Started:
    6ab3b529-0d90-4a52-804a-62ae93f06387
Events:
  Type  Reason                  Age    From                 Message
  ----  ------                  ----   ----                 -------
  Info  ReconcileStarted        14m    clickhouse-operator  reconcile started, task id: 6ab3b529-0d90-4a52-804a-62ae93f06387
  Info  CreateCompleted         13m    clickhouse-operator  Create ConfigMap marchseven/chi-larger-common-configd
  Info  CreateCompleted         13m    clickhouse-operator  Create ConfigMap marchseven/chi-larger-common-usersd
  Info  ReconcileStarted        13m    clickhouse-operator  Reconcile Host 0-0 started
  Info  CreateCompleted         13m    clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-0-0
  Info  CreateStarted           13m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-0-0 - started
  Info  CreateCompleted         13m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-0-0 - completed
  Info  CreateCompleted         13m    clickhouse-operator  Create Service marchseven/chi-larger-mono-0-0
  Info  CreateStarted           13m    clickhouse-operator  Adding tables on shard/host:0/0 cluster:mono
  Info  CreateCompleted         13m    clickhouse-operator  Tables added successfully on shard/host:0/0 cluster:mono
  Info  UpdateCompleted         13m    clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  ReconcileCompleted      13m    clickhouse-operator  Reconcile Host 0-0 completed
  Info  ProgressHostsCompleted  13m    clickhouse-operator  ProgressHostsCompleted: 1 of 16
  Info  CreateCompleted         12m    clickhouse-operator  Create Service marchseven/clickhouse-larger
  Info  ReconcileStarted        12m    clickhouse-operator  Reconcile Host 0-1 started
  Info  CreateCompleted         12m    clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-0-1
  Info  CreateStarted           12m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-0-1 - started
  Info  CreateCompleted         12m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-0-1 - completed
  Info  CreateCompleted         12m    clickhouse-operator  Create Service marchseven/chi-larger-mono-0-1
  Info  CreateStarted           12m    clickhouse-operator  Adding tables on shard/host:0/1 cluster:mono
  Info  CreateCompleted         12m    clickhouse-operator  Tables added successfully on shard/host:0/1 cluster:mono
  Info  UpdateCompleted         12m    clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  ReconcileCompleted      12m    clickhouse-operator  Reconcile Host 0-1 completed
  Info  ProgressHostsCompleted  12m    clickhouse-operator  ProgressHostsCompleted: 2 of 16
  Info  UpdateCompleted         12m    clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-usersd
  Info  ReconcileStarted        11m    clickhouse-operator  Reconcile Host 2-0 started
  Info  ReconcileStarted        11m    clickhouse-operator  Reconcile Host 1-0 started
  Info  ReconcileStarted        11m    clickhouse-operator  Reconcile Host 4-0 started
  Info  ReconcileStarted        11m    clickhouse-operator  Reconcile Host 3-0 started
  Info  CreateCompleted         11m    clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-4-0
  Info  CreateCompleted         11m    clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-2-0
  Info  CreateCompleted         11m    clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-3-0
  Info  CreateCompleted         11m    clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-1-0
  Info  CreateStarted           11m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-3-0 - started
  Info  CreateStarted           11m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-1-0 - started
  Info  CreateStarted           11m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-4-0 - started
  Info  CreateStarted           11m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-2-0 - started
  Info  CreateCompleted         10m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-4-0 - completed
  Info  CreateCompleted         10m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-3-0 - completed
  Info  CreateCompleted         10m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-1-0 - completed
  Info  CreateCompleted         10m    clickhouse-operator  Create Service marchseven/chi-larger-mono-4-0
  Info  CreateCompleted         10m    clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-2-0 - completed
  Info  CreateCompleted         10m    clickhouse-operator  Create Service marchseven/chi-larger-mono-3-0
  Info  CreateCompleted         10m    clickhouse-operator  Create Service marchseven/chi-larger-mono-1-0
  Info  CreateStarted           10m    clickhouse-operator  Adding tables on shard/host:4/0 cluster:mono
  Info  CreateCompleted         10m    clickhouse-operator  Create Service marchseven/chi-larger-mono-2-0
  Info  CreateStarted           10m    clickhouse-operator  Adding tables on shard/host:1/0 cluster:mono
  Info  CreateStarted           10m    clickhouse-operator  Adding tables on shard/host:3/0 cluster:mono
  Info  CreateCompleted         10m    clickhouse-operator  Tables added successfully on shard/host:4/0 cluster:mono
  Info  CreateStarted           10m    clickhouse-operator  Adding tables on shard/host:2/0 cluster:mono
  Info  CreateCompleted         10m    clickhouse-operator  Tables added successfully on shard/host:1/0 cluster:mono
  Info  CreateCompleted         10m    clickhouse-operator  Tables added successfully on shard/host:3/0 cluster:mono
  Info  UpdateCompleted         9m55s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  CreateCompleted         9m53s  clickhouse-operator  Tables added successfully on shard/host:2/0 cluster:mono
  Info  UpdateCompleted         9m46s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  UpdateCompleted         9m45s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  ReconcileCompleted      9m39s  clickhouse-operator  Reconcile Host 4-0 completed
  Info  UpdateCompleted         9m38s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  ReconcileCompleted      9m27s  clickhouse-operator  Reconcile Host 1-0 completed
  Info  ReconcileCompleted      9m27s  clickhouse-operator  Reconcile Host 3-0 completed
  Info  ProgressHostsCompleted  9m22s  clickhouse-operator  ProgressHostsCompleted: 6 of 16
  Info  ReconcileCompleted      9m18s  clickhouse-operator  Reconcile Host 2-0 completed
  Info  ProgressHostsCompleted  9m10s  clickhouse-operator  ProgressHostsCompleted: 6 of 16
  Info  ProgressHostsCompleted  9m10s  clickhouse-operator  ProgressHostsCompleted: 6 of 16
  Info  ReconcileStarted        9m5s   clickhouse-operator  Reconcile Host 4-1 started
  Info  ProgressHostsCompleted  9m1s   clickhouse-operator  ProgressHostsCompleted: 6 of 16
  Info  ReconcileStarted        8m53s  clickhouse-operator  Reconcile Host 3-1 started
  Info  ReconcileStarted        8m53s  clickhouse-operator  Reconcile Host 1-1 started
  Info  UpdateCompleted         8m50s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-usersd
  Info  CreateCompleted         8m47s  clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-4-1
  Info  ReconcileStarted        8m44s  clickhouse-operator  Reconcile Host 2-1 started
  Info  CreateCompleted         8m35s  clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-3-1
  Info  CreateCompleted         8m35s  clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-1-1
  Info  CreateStarted           8m30s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-4-1 - started
  Info  CreateCompleted         8m26s  clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-2-1
  Info  CreateStarted           8m18s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-3-1 - started
  Info  CreateStarted           8m18s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-1-1 - started
  Info  CreateStarted           8m11s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-2-1 - started
  Info  CreateCompleted         7m54s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-4-1 - completed
  Info  CreateCompleted         7m42s  clickhouse-operator  Create Service marchseven/chi-larger-mono-4-1
  Info  CreateCompleted         7m40s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-3-1 - completed
  Info  CreateCompleted         7m40s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-1-1 - completed
  Info  CreateCompleted         7m30s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-2-1 - completed
  Info  CreateStarted           7m29s  clickhouse-operator  Adding tables on shard/host:4/1 cluster:mono
  Info  CreateCompleted         7m25s  clickhouse-operator  Create Service marchseven/chi-larger-mono-3-1
  Info  CreateCompleted         7m25s  clickhouse-operator  Create Service marchseven/chi-larger-mono-1-1
  Info  CreateCompleted         7m15s  clickhouse-operator  Tables added successfully on shard/host:4/1 cluster:mono
  Info  CreateCompleted         7m15s  clickhouse-operator  Create Service marchseven/chi-larger-mono-2-1
  Info  CreateStarted           7m12s  clickhouse-operator  Adding tables on shard/host:1/1 cluster:mono
  Info  CreateStarted           7m11s  clickhouse-operator  Adding tables on shard/host:3/1 cluster:mono
  Info  UpdateCompleted         7m1s   clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  CreateStarted           7m1s   clickhouse-operator  Adding tables on shard/host:2/1 cluster:mono
  Info  CreateCompleted         6m58s  clickhouse-operator  Tables added successfully on shard/host:1/1 cluster:mono
  Info  CreateCompleted         6m58s  clickhouse-operator  Tables added successfully on shard/host:3/1 cluster:mono
  Info  CreateCompleted         6m47s  clickhouse-operator  Tables added successfully on shard/host:2/1 cluster:mono
  Info  ReconcileCompleted      6m45s  clickhouse-operator  Reconcile Host 4-1 completed
  Info  UpdateCompleted         6m43s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  UpdateCompleted         6m43s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  UpdateCompleted         6m30s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  UpdateCompleted         6m28s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-usersd
  Info  ProgressHostsCompleted  6m28s  clickhouse-operator  ProgressHostsCompleted: 10 of 16
  Info  ReconcileCompleted      6m23s  clickhouse-operator  Reconcile Host 3-1 completed
  Info  ReconcileCompleted      6m23s  clickhouse-operator  Reconcile Host 1-1 completed
  Info  ReconcileCompleted      6m10s  clickhouse-operator  Reconcile Host 2-1 completed
  Info  ProgressHostsCompleted  6m7s   clickhouse-operator  ProgressHostsCompleted: 10 of 16
  Info  ProgressHostsCompleted  6m7s   clickhouse-operator  ProgressHostsCompleted: 10 of 16
  Info  ProgressHostsCompleted  5m56s  clickhouse-operator  ProgressHostsCompleted: 10 of 16
  Info  UpdateCompleted         5m49s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-usersd
  Info  ReconcileStarted        5m48s  clickhouse-operator  Reconcile Host 7-0 started
  Info  ReconcileStarted        5m48s  clickhouse-operator  Reconcile Host 5-0 started
  Info  ReconcileStarted        5m48s  clickhouse-operator  Reconcile Host 6-0 started
  Info  CreateCompleted         5m34s  clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-7-0
  Info  CreateCompleted         5m34s  clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-5-0
  Info  CreateCompleted         5m33s  clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-6-0
  Info  CreateStarted           5m21s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-6-0 - started
  Info  CreateStarted           5m21s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-5-0 - started
  Info  CreateStarted           5m21s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-7-0 - started
  Info  CreateCompleted         4m51s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-5-0 - completed
  Info  CreateCompleted         4m45s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-7-0 - completed
  Info  CreateCompleted         4m44s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-6-0 - completed
  Info  CreateCompleted         4m40s  clickhouse-operator  Create Service marchseven/chi-larger-mono-5-0
  Info  CreateCompleted         4m33s  clickhouse-operator  Create Service marchseven/chi-larger-mono-6-0
  Info  CreateCompleted         4m33s  clickhouse-operator  Create Service marchseven/chi-larger-mono-7-0
  Info  CreateStarted           4m29s  clickhouse-operator  Adding tables on shard/host:5/0 cluster:mono
  Info  CreateStarted           4m23s  clickhouse-operator  Adding tables on shard/host:7/0 cluster:mono
  Info  CreateStarted           4m23s  clickhouse-operator  Adding tables on shard/host:6/0 cluster:mono
  Info  CreateCompleted         4m19s  clickhouse-operator  Tables added successfully on shard/host:5/0 cluster:mono
  Info  CreateCompleted         4m13s  clickhouse-operator  Tables added successfully on shard/host:7/0 cluster:mono
  Info  CreateCompleted         4m12s  clickhouse-operator  Tables added successfully on shard/host:6/0 cluster:mono
  Info  UpdateCompleted         4m8s   clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  UpdateCompleted         4m2s   clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  UpdateCompleted         4m2s   clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  ReconcileCompleted      3m56s  clickhouse-operator  Reconcile Host 5-0 completed
  Info  ReconcileCompleted      3m48s  clickhouse-operator  Reconcile Host 7-0 completed
  Info  ReconcileCompleted      3m47s  clickhouse-operator  Reconcile Host 6-0 completed
  Info  ProgressHostsCompleted  3m43s  clickhouse-operator  ProgressHostsCompleted: 13 of 16
  Info  ProgressHostsCompleted  3m34s  clickhouse-operator  ProgressHostsCompleted: 13 of 16
  Info  ProgressHostsCompleted  3m34s  clickhouse-operator  ProgressHostsCompleted: 13 of 16
  Info  UpdateCompleted         3m31s  clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-usersd
  Info  ReconcileStarted        3m29s  clickhouse-operator  Reconcile Host 5-1 started
  Info  ReconcileStarted        3m21s  clickhouse-operator  Reconcile Host 7-1 started
  Info  ReconcileStarted        3m20s  clickhouse-operator  Reconcile Host 6-1 started
  Info  CreateCompleted         3m15s  clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-5-1
  Info  CreateCompleted         3m6s   clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-6-1
  Info  CreateCompleted         3m6s   clickhouse-operator  Create ConfigMap marchseven/chi-larger-deploy-confd-mono-7-1
  Info  CreateStarted           3m2s   clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-5-1 - started
  Info  CreateStarted           2m55s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-7-1 - started
  Info  CreateStarted           2m55s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-6-1 - started
  Info  CreateCompleted         2m33s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-5-1 - completed
  Info  CreateCompleted         2m25s  clickhouse-operator  Create Service marchseven/chi-larger-mono-5-1
  Info  CreateCompleted         2m20s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-7-1 - completed
  Info  CreateCompleted         2m20s  clickhouse-operator  Create StatefulSet marchseven/chi-larger-mono-6-1 - completed
  Info  CreateStarted           2m15s  clickhouse-operator  Adding tables on shard/host:5/1 cluster:mono
  Info  CreateCompleted         2m9s   clickhouse-operator  Create Service marchseven/chi-larger-mono-6-1
  Info  CreateCompleted         2m8s   clickhouse-operator  Create Service marchseven/chi-larger-mono-7-1
  Info  CreateCompleted         2m5s   clickhouse-operator  Tables added successfully on shard/host:5/1 cluster:mono
  Info  CreateStarted           118s   clickhouse-operator  Adding tables on shard/host:6/1 cluster:mono
  Info  CreateStarted           118s   clickhouse-operator  Adding tables on shard/host:7/1 cluster:mono
  Info  UpdateCompleted         114s   clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  CreateCompleted         108s   clickhouse-operator  Tables added successfully on shard/host:7/1 cluster:mono
  Info  CreateCompleted         108s   clickhouse-operator  Tables added successfully on shard/host:6/1 cluster:mono
  Info  ReconcileCompleted      102s   clickhouse-operator  Reconcile Host 5-1 completed
  Info  UpdateCompleted         96s    clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  UpdateCompleted         96s    clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  UpdateCompleted         89s    clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-usersd
  Info  ProgressHostsCompleted  88s    clickhouse-operator  ProgressHostsCompleted: 16 of 16
  Info  ReconcileCompleted      80s    clickhouse-operator  Reconcile Host 7-1 completed
  Info  ReconcileCompleted      80s    clickhouse-operator  Reconcile Host 6-1 completed
  Info  ProgressHostsCompleted  68s    clickhouse-operator  ProgressHostsCompleted: 16 of 16
  Info  ProgressHostsCompleted  68s    clickhouse-operator  ProgressHostsCompleted: 16 of 16
  Info  UpdateCompleted         65s    clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-usersd
  Info  UpdateCompleted         57s    clickhouse-operator  Update ConfigMap marchseven/chi-larger-common-configd
  Info  ReconcileInProgress     50s    clickhouse-operator  remove items scheduled for deletion
  Info  ReconcileInProgress     45s    clickhouse-operator  remove items scheduled for deletion
  Info  ReconcileInProgress     42s    clickhouse-operator  add CHI to monitoring
  Info  ReconcileCompleted      32s    clickhouse-operator  reconcile completed, task id: 6ab3b529-0d90-4a52-804a-62ae93f06387

@zcross
Copy link
Contributor Author

zcross commented Mar 9, 2023

Update: I'm working on a change to support overriding the k8s rate limit QPS and burst parameters, basically necessary to get around the above. Currently pondering how to do it if not through CHOP YAML config (due to the ConfigManager resolving some parts -- secrets -- using a k8s client)...

... edit: see newest commit for simple passage of this via env vars, which avoided refactoring of the initialization of chop and of ConfigManager.

@zcross
Copy link
Contributor Author

zcross commented Mar 9, 2023

However, some celebration worthy early results: I was just able to test this out in a real environment instead of minikube and reconciled a 32-replica cluster in about 20 minutes instead of the several hours that we typically observe! Needless to say, my team is pretty excited about the potential value this will have for us (especially in incident response)

@zcross
Copy link
Contributor Author

zcross commented Apr 18, 2023

Just resolved (trivial, import lines) merge conflicts after doing the same in #1119

Signed-off-by: Zach Cross <zcross@chronosphere.io>
@zcross
Copy link
Contributor Author

zcross commented Apr 25, 2023

Just rebased off latest 0.21.0 with my status-refactoring branch.

@zcross
Copy link
Contributor Author

zcross commented Apr 27, 2023

Apologies for not offering up a bunch of new e2e test coverage. I'd like to, but:

  • I'm struggling to get tests running locally (due to MacOS + M2 aka arm64 pains) after several from-scratch attempts
  • I know that tests can be triggered via GH actions but that seems inappropriate (not to mention inefficient) without knowing they pass locally

For example, I'd like to at least have one test case do something like "bring up a n>2 shards cluster results in a healthy cluster" with the new reconcileShardsThreadsNumber var set to some n>2 and reconcileShardsMaxConcurrencyPercent set to 100%... just to exercise the new behavior at all in e2e.

By the way: since the other 2 PRs landed – what are the chances this makes it into 0.21.0? I'm hoping the off-by-default behavior makes it palatable?

Thanks!

@sunsingerus sunsingerus changed the base branch from 0.21.0 to 0.21.1 May 11, 2023 09:04
@sunsingerus sunsingerus merged commit 0fb28c7 into Altinity:0.21.1 May 21, 2023
@zcross
Copy link
Contributor Author

zcross commented May 22, 2023

Thanks @sunsingerus !

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.

None yet

3 participants