Kind: SGShardedDbOps
listKind: SGShardedDbOpsList
plural: sgshardeddbops
singular: sgshardeddbops
shortNames sgsdo
The SGShardedDbOps
custom resource represents database operations that are performed on a Postgres sharded cluster.
Example:
apiVersion: stackgres.io/v1
kind: SGShardedDbOps
metadata:
name: restart
spec:
sgShardedCluster: my-cluster
op: restart
maxRetries: 1
restart:
mode: InPlace
Property |
Required |
Updatable |
May Require Restart |
Type |
Description |
---|---|---|---|---|---|
apiVersion | ✓ | string | stackgres.io/v1 | ||
kind | ✓ | string | SGShardedDbOps | ||
metadata | ✓ | ✓ | object | Refer to the Kubernetes API documentation for the fields of the metadata field. |
|
spec | ✓ | ✓ | object |
|
|
status | ✓ | object |
|
Property |
Required |
Updatable |
May Require Restart |
Type |
Description |
---|---|---|---|---|---|
op | ✓ | ✓ | string |
The kind of operation that will be performed on the SGCluster. Available operations are:
|
|
sgShardedCluster | ✓ | ✓ | string |
The name of SGShardedCluster on which the operation will be performed.
|
|
maxRetries | ✓ | integer |
The maximum number of retries the operation is allowed to do after a failure.
A value of |
||
resharding | ✓ | object |
Configuration for resharding. Resharding a sharded cluster is the operation that moves the data among shards in order to try to
balance the disk space used in each shard. See also https://docs.citusdata.com/en/stable/develop/api_udf.html#citus-rebalance-start
|
||
restart | ✓ | object |
Configuration of restart
|
||
runAt | ✓ | string |
An ISO 8601 date, that holds UTC scheduled date of the operation execution.
If not specified or if the date it’s in the past, it will be interpreted ASAP.
|
||
scheduling | ✓ | object |
Pod custom node scheduling and affinity configuration |
||
timeout | ✓ | string |
An ISO 8601 duration in the format PnDTnHnMn.nS , that specifies a timeout after which the operation execution will be canceled.
If the operation can not be performed due to timeout expiration, the condition If not specified the operation will never fail for timeout expiration.
|
Configuration for resharding. Resharding a sharded cluster is the operation that moves the data among shards in order to try to balance the disk space used in each shard. See also https://docs.citusdata.com/en/stable/develop/api_udf.html#citus-rebalance-start
Property |
Required |
Updatable |
May Require Restart |
Type |
Description |
---|---|---|---|---|---|
citus | ✓ | object |
Citus specific resharding parameters
|
Citus specific resharding parameters
Property |
Required |
Updatable |
May Require Restart |
Type |
Description |
---|---|---|---|---|---|
drainOnly | ✓ | boolean |
A float number between 0.0 and 1.0 which indicates the maximum difference ratio of node utilization from average utilization.
See also https://docs.citusdata.com/en/stable/develop/api_udf.html#citus-rebalance-start
|
||
rebalanceStrategy | ✓ | string |
The name of a strategy in Rebalancer strategy table. Will pick a default one if not specified
See also https://docs.citusdata.com/en/stable/develop/api_udf.html#citus-rebalance-start
|
||
threshold | ✓ | number |
A float number between 0.0 and 1.0 which indicates the maximum difference ratio of node utilization from average utilization.
See also https://docs.citusdata.com/en/stable/develop/api_udf.html#citus-rebalance-start
|
Configuration of restart
Property |
Required |
Updatable |
May Require Restart |
Type |
Description |
---|---|---|---|---|---|
method | ✓ | string |
The method used to perform the restart operation. Available methods are:
|
||
onlyPendingRestart | ✓ | boolean |
By default all Pods are restarted. Setting this option to true allow to restart only those Pods which
are in pending restart state as detected by the operation. Defaults to: false .
|
Pod custom node scheduling and affinity configuration
Property |
Required |
Updatable |
May Require Restart |
Type |
Description |
---|---|---|---|---|---|
nodeAffinity | ✓ | object |
Node affinity is a group of node affinity scheduling rules.
See: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#nodeaffinity-v1-core
|
||
nodeSelector | ✓ | map[string]string |
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node’s labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
|
||
podAffinity | ✓ | object |
Pod affinity is a group of inter pod affinity scheduling rules.
See: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#podaffinity-v1-core
|
||
podAntiAffinity | ✓ | object |
Pod anti affinity is a group of inter pod anti affinity scheduling rules.
See: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#podantiaffinity-v1-core
|
||
priorityClassName | ✓ | string |
Priority indicates the importance of a Pod relative to other Pods. If a Pod cannot be scheduled, the scheduler tries to preempt (evict) lower priority Pods to make scheduling of the pending Pod possible.
|
||
tolerations | ✓ | []object |
If specified, the pod’s tolerations.
See: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#toleration-v1-core
|
Property |
Required |
Updatable |
May Require Restart |
Type |
Description |
---|---|---|---|---|---|
conditions | ✓ | []object |
Possible conditions are:
|
||
opRetries | ✓ | integer |
The number of retries performed by the operation
|
||
opStarted | ✓ | string |
The ISO 8601 timestamp of when the operation started running
|
||
restart | ✓ | object |
The results of a restart
|
Property |
Required |
Updatable |
May Require Restart |
Type |
Description |
---|---|---|---|---|---|
lastTransitionTime | ✓ | string |
Last time the condition transitioned from one status to another. |
||
message | ✓ | string |
A human-readable message indicating details about the transition. |
||
reason | ✓ | string |
The reason for the condition last transition. |
||
status | ✓ | string |
Status of the condition, one of True , False or Unknown . |
||
type | ✓ | string |
Type of deployment condition. |
The results of a restart
Property |
Required |
Updatable |
May Require Restart |
Type |
Description |
---|---|---|---|---|---|
failure | ✓ | string |
A failure message (when available)
|
||
pendingToRestartSgClusters | ✓ | []string |
The SGClusters that are pending to be restarted
|
||
restartedSgClusters | ✓ | []string |
The SGClusters that have been restarted
|