-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve stateproof API performance in v2 (#9283)
Improve `/api/v1/transactions/{id}/stateproof` API performance. * Change grpc requests to match performance environments * Change transaction ID query to clamp consensus timestamp to `[validStart, validStart + 35m]` * Change record file query to clamp consensus timestamp to `[timestamp, timestamp+10s]` * Fix and clean up Stackgres upgrade documentation * Rename `consensusNs` to `consensusTimestamp` in `stateproof.js` --------- Signed-off-by: Steven Sheehy <[email protected]>
- Loading branch information
1 parent
63d8ab6
commit d2f7848
Showing
5 changed files
with
152 additions
and
127 deletions.
There are no files selected for viewing
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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,45 @@ | ||
# Stackgres Upgrade | ||
|
||
## Problem | ||
|
||
After upgrading the Stackgres Helm chart version, we need to perform a security upgrade to ensure all its components | ||
are updated in the current cluster. | ||
|
||
## Execution | ||
|
||
After successful deployment of the upgraded Stackgres Helm chart, we need to perform the following steps: | ||
|
||
1. Determine the namespace and name of each sharded cluster and generate the yaml file below for each instance. | ||
|
||
``` | ||
kubectl get sgshardedclusters -A | ||
NAMESPACE NAME VERSION | ||
mainnet-citus mirror-citus 16.2 | ||
``` | ||
|
||
2. Create a file containing the below yaml with `<namespace>` and `sgShardedCluster` replaced with the correct | ||
values from step one and execute the command: | ||
``` | ||
kubectl apply -n <namespace> -f - <<EOF | ||
apiVersion: stackgres.io/v1 | ||
kind: SGShardedDbOps | ||
metadata: | ||
name: stackgres-upgrade | ||
spec: | ||
maxRetries: 1 | ||
op: securityUpgrade | ||
priorityClassName: critical | ||
securityUpgrade: | ||
method: InPlace | ||
sgShardedCluster: mirror-citus | ||
EOF | ||
``` | ||
3. Verify that the clusters are annotated with the correct Stackgres version. | ||
``` | ||
kubectl get sgclusters -n <namespace> -o json | jq '.items[].metadata.annotations."stackgres.io/operatorVersion"' | ||
``` | ||
4. Once the op completes successfully, you should delete the SGShardedDbOps resource(s). | ||
``` | ||
kubectl delete sgshardeddbops -n <namespace> stackgres-upgrade | ||
``` |
This file contains 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.