Skip to content

Commit

Permalink
feat: support offloadThreshold policy on Namespace
Browse files Browse the repository at this point in the history
Signed-off-by: ericsyh <[email protected]>
  • Loading branch information
ericsyh committed Sep 2, 2024
1 parent 83ea5ac commit da3be8f
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 2 deletions.
10 changes: 10 additions & 0 deletions api/v1alpha1/pulsarnamespace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ type PulsarNamespaceSpec struct {
// +optional
BacklogQuotaType *string `json:"backlogQuotaType,omitempty"`

// OffloadThresholdTime specifies the time limit for message offloading.
// Messages older than this limit will be offloaded to the tiered storage.
// +optional
OffloadThresholdTime *utils.Duration `json:"offloadThresholdTime,omitempty"`

// OffloadThresholdSize specifies the size limit for message offloading.
// When the limit is reached, older messages will be offloaded to the tiered storage.
// +optional
OffloadThresholdSize *resource.Quantity `json:"offloadThresholdSize,omitempty"`

// GeoReplicationRefs is a list of references to PulsarGeoReplication resources,
// used to configure geo-replication for this namespace.
// This is **ONLY** used when you are using PulsarGeoReplication for setting up geo-replication
Expand Down
10 changes: 10 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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

Loading

0 comments on commit da3be8f

Please sign in to comment.