OxL Reference

enum Prefer

Placement preference of cluster.pick.

Example:

oxl✓ checked in CI
fn main() io {
  match cluster.pick("Bank", prefer: .SameZone) {
    ClusterMember _ => print("found")
    none => print("none")
  }
}
Output
none
@derive(Copy)
pub(api) enum Prefer

Since. 1.0.0-beta

Variants

Any

Any node that serves the service.

SameZone

A node of the zone of this node when there is one.

Defined in: std/core/node.oxl:612

See also