Sharded Cluster Non-Production Options

Please refer to the Cluster Non-Production Options page since those apply also the the Sharded Cluster.

The only difference is that, after setting those options you will have to restart the Postgres cluster Pods by simply deleting them (or using a restart SGDbOps) for each cluster that belongs to the sharded cluster:

kubectl get sgcluster -l app=StackGresShardedCluster,stackgres.io/shardedcluster-name=simple -o name \
  | cut -d / -f 2 \
  | while read -r CLUSTER_NAME
    do
      kubectl delete pod -l app=StackGresCluster,stackgres.io/cluster-name=$CLUSTER_NAME
    done