pub(super) struct ComputeOrchestrator {
inner: Arc<dyn NamespacedOrchestrator>,
clusterd_image: String,
init_container_image: Option<String>,
}
Fields§
§inner: Arc<dyn NamespacedOrchestrator>
§clusterd_image: String
§init_container_image: Option<String>
Implementations§
source§impl ComputeOrchestrator
impl ComputeOrchestrator
pub(super) fn new(
inner: Arc<dyn NamespacedOrchestrator>,
clusterd_image: String,
init_container_image: Option<String>
) -> Self
sourcepub(super) async fn ensure_replica_location(
&self,
instance_id: ComputeInstanceId,
replica_id: ReplicaId,
location: ComputeReplicaLocation
) -> Result<(Vec<String>, usize, Vec<String>), Error>
pub(super) async fn ensure_replica_location(
&self,
instance_id: ComputeInstanceId,
replica_id: ReplicaId,
location: ComputeReplicaLocation
) -> Result<(Vec<String>, usize, Vec<String>), Error>
Ensure that a service for the given replica exists at the given location
.
Returns a tuple (compute_addrs, workers, timely_addrs)
, where:
command_addrs
is the list of addresses on which the replica’s processes listen for controller connections.workers
is the number of timely workers per process.timely_addrs
is the list of addresses used by the timely cluster for inter-process communication.
pub(super) async fn ensure_replica(
&self,
instance_id: ComputeInstanceId,
replica_id: ReplicaId,
allocation: ComputeReplicaAllocation,
availability_zone: String
) -> Result<Box<dyn Service>, Error>
pub(super) async fn drop_replica(
&self,
instance_id: ComputeInstanceId,
replica_id: ReplicaId
) -> Result<(), Error>
pub(super) async fn list_replicas(
&self
) -> Result<impl Iterator<Item = (ComputeInstanceId, ReplicaId)>, Error>
pub(super) fn watch_services(&self) -> BoxStream<'static, ComputeInstanceEvent>
pub(super) async fn fetch_replica_metrics(
&self,
instance_id: ComputeInstanceId,
replica_id: ReplicaId
) -> Result<Vec<ServiceProcessMetrics>, Error>
Trait Implementations§
source§impl Clone for ComputeOrchestrator
impl Clone for ComputeOrchestrator
source§fn clone(&self) -> ComputeOrchestrator
fn clone(&self) -> ComputeOrchestrator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ComputeOrchestrator
impl Send for ComputeOrchestrator
impl Sync for ComputeOrchestrator
impl Unpin for ComputeOrchestrator
impl !UnwindSafe for ComputeOrchestrator
Blanket Implementations§
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.