Skip to content

Commit

Permalink
More options for store locations.
Browse files Browse the repository at this point in the history
Watermark: Location watermark threshold in percents of volume size.
MaxTrashMilliseconds: Max TTL of trash in milliseconds.
  • Loading branch information
sgburtsev committed Jun 25, 2024
1 parent 29749ed commit 2ebe3a0
Show file tree
Hide file tree
Showing 15 changed files with 779 additions and 14 deletions.
8 changes: 8 additions & 0 deletions api/v1/ytsaurus_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ type LocationSpec struct {
// Disk space quota, default is size of related volume.
//+optional
Quota *resource.Quantity `json:"quota,omitempty"`
// Location watermark threshold in percents of volume size.
//+kubebuilder:default:=10
//+kubebuilder:validation:Minimum:=1
//+kubebuilder:validation:Maximum:=50
Watermark int32 `json:"watermark,omitempty"`
// Max TTL of trash in milliseconds.
//+kubebuilder:validation:Minimum:=60000
MaxTrashMilliseconds *int64 `json:"maxTrashMilliseconds,omitempty"`
}

// LogLevel string describes possible Ytsaurus logging level.
Expand Down
5 changes: 5 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions config/crd/bases/cluster.ytsaurus.tech_remoteexecnodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,11 @@ spec:
description: LocationType string describes types of disk locations
for YT components.
type: string
maxTrashMilliseconds:
description: Max TTL of trash in milliseconds.
format: int64
minimum: 60000
type: integer
medium:
default: default
type: string
Expand All @@ -896,6 +901,14 @@ spec:
description: Disk space quota, default is size of related volume.
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
watermark:
default: 10
description: Location watermark threshold in percents of volume
size.
format: int32
maximum: 50
minimum: 1
type: integer
type: object
type: array
loggers:
Expand Down
13 changes: 13 additions & 0 deletions config/crd/bases/cluster.ytsaurus.tech_remoteytsaurus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,11 @@ spec:
description: LocationType string describes types of disk locations
for YT components.
type: string
maxTrashMilliseconds:
description: Max TTL of trash in milliseconds.
format: int64
minimum: 60000
type: integer
medium:
default: default
type: string
Expand All @@ -677,6 +682,14 @@ spec:
description: Disk space quota, default is size of related volume.
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
watermark:
default: 10
description: Location watermark threshold in percents of volume
size.
format: int32
maximum: 50
minimum: 1
type: integer
type: object
type: array
loggers:
Expand Down
Loading

0 comments on commit 2ebe3a0

Please sign in to comment.