pub struct SyncConfig {Show 23 fields
pub endpoint: Option<String>,
pub bucket: String,
pub region: Option<String>,
pub provider: Option<String>,
pub access_key: Option<String>,
pub secret_key: Option<String>,
pub start_from_checkpoint: Option<StartFromCheckpoint>,
pub fail_if_no_checkpoint: bool,
pub transfers: Option<u8>,
pub checkers: Option<u8>,
pub ignore_checksum: Option<bool>,
pub multi_thread_streams: Option<u8>,
pub multi_thread_cutoff: Option<String>,
pub optimize_download_resources: bool,
pub upload_concurrency: Option<u8>,
pub standby: bool,
pub standby_pull_interval: Option<ConfigDuration>,
pub checkpoint_push_interval: Option<ConfigDuration>,
pub flags: Option<Vec<String>>,
pub retention_min_count: u32,
pub min_retention: Option<ConfigDuration>,
pub read_bucket: Option<String>,
pub take_bucket_ownership: bool,
}Fields§
§endpoint: Option<String>The endpoint URL for the storage service.
This is typically required for custom or local S3-compatible storage providers like MinIO.
Example: http://localhost:9000
For a gs:// bucket this is the Google Cloud Storage JSON API base URL;
a bare host gets /storage/v1/ appended. Leave empty for the public service.
Relevant rclone config key: endpoint
bucket: StringThe name of the storage bucket.
This may include a path to a folder inside the bucket (e.g., my-bucket/data).
Prefix it with gs:// to sync to Google Cloud Storage through its native
API instead of S3. provider, access_key, and secret_key are then
ignored; rclone authenticates with Application Default Credentials, for
example a GKE Workload Identity.
region: Option<String>The region that this bucket is in.
Leave empty for Minio or the default region (us-east-1 for AWS).
provider: Option<String>The name of the cloud storage provider (e.g., "AWS", "Minio").
Used for provider-specific behavior in rclone.
If omitted, defaults to "Other".
access_key: Option<String>The access key used to authenticate with the storage provider.
If not provided, rclone will fall back to environment-based credentials, such as
RCLONE_S3_ACCESS_KEY_ID. In Kubernetes environments using IRSA (IAM Roles for Service Accounts),
this can be left empty to allow automatic authentication via the pod’s service account.
secret_key: Option<String>The secret key used together with the access key for authentication.
If not provided, rclone will fall back to environment-based credentials, such as
RCLONE_S3_SECRET_ACCESS_KEY. In Kubernetes environments using IRSA (IAM Roles for Service Accounts),
this can be left empty to allow automatic authentication via the pod’s service account.
start_from_checkpoint: Option<StartFromCheckpoint>When set, the pipeline will try fetch the specified checkpoint from the object store.
If fail_if_no_checkpoint is true, the pipeline will fail to initialize.
fail_if_no_checkpoint: boolWhen true, the pipeline will fail to initialize if fetching the specified checkpoint fails (missing, download error). When false, the pipeline will start from scratch instead.
False by default.
transfers: Option<u8>The number of file transfers to run in parallel. Default: 20
checkers: Option<u8>The number of checkers to run in parallel. Default: 20
ignore_checksum: Option<bool>Set to skip post copy check of checksums, and only check the file sizes. This can significantly improve the throughput. Defualt: false
multi_thread_streams: Option<u8>Number of streams to use for multi-thread downloads. Default: 10
multi_thread_cutoff: Option<String>Use multi-thread download for files above this size.
Format: [size][Suffix] (Example: 1G, 500M)
Supported suffixes: k|M|G|T
Default: 100M
optimize_download_resources: boolWhen true, checkpoint downloads use the maximum resources available on
the host: transfers and checkers are scaled to the number of CPUs,
and the download buffer is allowed to grow up to most of the available
memory. This maximizes download throughput at the cost of higher CPU and
memory usage during a pull.
When false, downloads use the values configured via transfers,
checkers, and the rclone defaults instead.
Default: true
upload_concurrency: Option<u8>The number of chunks of the same file that are uploaded for multipart uploads. Default: 10
standby: boolUse initial=standby when starting the pipeline instead.
Deprecated. Use initial=standby when starting the pipeline instead.
standby_pull_interval: Option<ConfigDuration>The interval between each attempt to fetch the latest checkpoint from
object store while in standby mode, for example 10s.
Applies only when start_from_checkpoint is set to latest. Unset
selects the default, DEFAULT_PULL_INTERVAL.
checkpoint_push_interval: Option<ConfigDuration>The interval between each push of checkpoints to object store, for
example 1h.
The default is no periodic push; null disables periodic pushes
explicitly.
flags: Option<Vec<String>>Extra flags to pass to rclone.
WARNING: Supplying incorrect or conflicting flags can break rclone.
Use with caution.
Refer to the docs to see the supported flags:
retention_min_count: u32The minimum number of checkpoints to retain in object store. No checkpoints will be deleted if the total count is below this threshold.
Default: 10
min_retention: Option<ConfigDuration>The minimum age a checkpoint must reach before it becomes eligible for
deletion, for example 30d. All younger checkpoints will be preserved.
Unset selects the default, DEFAULT_RETENTION_MIN_AGE.
read_bucket: Option<String>A read-only bucket used as a fallback checkpoint source.
When the pipeline has no local checkpoint and bucket contains no
checkpoint either, it will attempt to fetch the checkpoint from this
location instead. All connection settings (endpoint, region,
provider, access_key, secret_key) are shared with bucket. The
scheme is not: a gs:// bucket needs a gs:// read_bucket too,
because the prefix alone selects the object store.
The pipeline never writes to read_bucket.
Must point to a different location than bucket.
take_bucket_ownership: boolTake ownership of bucket when the pipeline starts, even if another
pipeline owns it.
A pipeline records its ownership of bucket in an owner.json file
at the root of bucket, and a push fails without writing anything if
that file names a different pipeline. When this is true, the
pipeline takes ownership as it starts (a standby pipeline, when it is
activated): it logs a warning naming the previous and new owners and
overwrites owner.json. The previous owner’s later pushes to
bucket then fail.
This only applies at startup. If another pipeline takes ownership of
bucket while this pipeline is running, this pipeline’s pushes fail.
Ownership changes before the pipeline opens its checkpoint, so it
sticks even if the pipeline then fails to start: the previous owner’s
pushes keep failing. To give bucket back, start the previous owner
with take_bucket_ownership set.
Use this to hand a checkpoint location over to a pipeline that
replaces another one, e.g., after deleting and recreating a pipeline.
Stop the previous owner first, and set this on only one of the
pipelines that share a bucket.
Default: false
Implementations§
Source§impl SyncConfig
impl SyncConfig
Sourcepub fn standby_pull_interval(&self) -> ConfigDuration
pub fn standby_pull_interval(&self) -> ConfigDuration
The standby pull interval in effect, or DEFAULT_PULL_INTERVAL.
The enterprise crates read the sync durations through these accessors
rather than the fields, so that one version of them compiles against
every feldera-types a pinned runtime may bring: the accessors exist
with these names on both sides of the rename.
Sourcepub fn checkpoint_push_interval(&self) -> Option<ConfigDuration>
pub fn checkpoint_push_interval(&self) -> Option<ConfigDuration>
The interval between checkpoint pushes, or None for no periodic push.
Sourcepub fn min_retention(&self) -> ConfigDuration
pub fn min_retention(&self) -> ConfigDuration
The checkpoint retention age in effect, or
DEFAULT_RETENTION_MIN_AGE.
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§impl Debug for SyncConfig
impl Debug for SyncConfig
Source§impl Default for SyncConfig
impl Default for SyncConfig
Source§impl<'de> Deserialize<'de> for SyncConfig
impl<'de> Deserialize<'de> for SyncConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for SyncConfig
Source§impl PartialEq for SyncConfig
impl PartialEq for SyncConfig
Source§impl Serialize for SyncConfig
impl Serialize for SyncConfig
impl StructuralPartialEq for SyncConfig
Auto Trait Implementations§
impl Forget for SyncConfig
impl Freeze for SyncConfig
impl Move for SyncConfig
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnsafeUnpin for SyncConfig
impl UnwindSafe for SyncConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more