pub struct PersistencePolicies {
pub bookkeeper_ensemble: i32,
pub bookkeeper_write_quorum: i32,
pub bookkeeper_ack_quorum: i32,
pub managed_ledger_max_mark_delete_rate: f64,
}Expand description
Java PersistencePolicies — namespace-level BookKeeper layout +
managed-ledger write-shaping knobs. Maps to the broker’s
org.apache.pulsar.common.policies.data.PersistencePolicies.
Default::default() returns the broker’s documented default for a
new namespace (2/2/2/0.0), NOT all zeros — the broker rejects
ensemble values < 1 on set, so an all-zero policy is unusable
for a round-trip. Missing fields on decode default the same way:
a partial body where the broker omits one field round-trips with
the legal default, never with the illegal 0.
Fields§
§bookkeeper_ensemble: i32BookKeeper ensemble size — the number of bookies the managed
ledger striping is spread across. Default: 2.
bookkeeper_write_quorum: i32BookKeeper write quorum — the number of bookies each entry is
written to. Default: 2.
bookkeeper_ack_quorum: i32BookKeeper ack quorum — the number of acks required before an
add is considered durable. Default: 2.
managed_ledger_max_mark_delete_rate: f64Managed-ledger mark-delete-rate cap (ops/sec). 0.0 disables
the throttle. Default: 0.0 (disabled).
Trait Implementations§
Source§impl Clone for PersistencePolicies
impl Clone for PersistencePolicies
Source§fn clone(&self) -> PersistencePolicies
fn clone(&self) -> PersistencePolicies
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more