public static final class Protos.DomainInfo extends com.google.protobuf.GeneratedMessageV3 implements Protos.DomainInfoOrBuilder
Describes a domain. A domain is a collection of hosts that have similar characteristics. Mesos currently only supports "fault domains", which identify groups of hosts with similar failure characteristics. Frameworks can generally assume that network links between hosts in the same fault domain have lower latency, higher bandwidth, and better availability than network links between hosts in different domains. Schedulers may prefer to place network-intensive workloads in the same domain, as this may improve performance. Conversely, a single failure that affects a host in a domain may be more likely to affect other hosts in the same domain; hence, schedulers may prefer to place workloads that require high availability in multiple domains. (For example, all the hosts in a single rack might lose power or network connectivity simultaneously.) There are two kinds of fault domains: regions and zones. Regions offer the highest degree of fault isolation, but network latency between regions is typically high (typically >50 ms). Zones offer a modest degree of fault isolation along with reasonably low network latency (typically <10 ms). The mapping from fault domains to physical infrastructure is up to the operator to configure. In cloud environments, regions and zones can be mapped to the "region" and "availability zone" concepts exposed by most cloud providers, respectively. In on-premise deployments, regions and zones can be mapped to data centers and racks, respectively. Both masters and agents can be configured with domains. Frameworks can compare the domains of two hosts to determine if the hosts are in the same zone, in different zones in the same region, or in different regions. Note that all masters in a given Mesos cluster must be in the same region. Complex deployments may have additional levels of hierarchy: for example, multiple racks might be grouped together into "halls" and multiple DCs in the same geographical vicinity might be grouped together. As a convention, the recommended way to represent additional levels of hierarchy is via dot- separated labels in the existing zone and region fields. For example, the fact that racks "abc" and "def" are in the same hall might be represented using the zone names "rack-abc.hall-1" and "rack-def.hall-1", for example. Software that is not aware of this additional structure will compare the zone names for equality- hence, the two zones will be treated as different (unrelated) zones. Software that is "hall-aware" can inspect the zone names and make use of the additional hierarchy.Protobuf type
mesos.DomainInfo
Modifier and Type | Class and Description |
---|---|
static class |
Protos.DomainInfo.Builder
Describes a domain.
|
static class |
Protos.DomainInfo.FaultDomain
Protobuf type
mesos.DomainInfo.FaultDomain |
static interface |
Protos.DomainInfo.FaultDomainOrBuilder |
Modifier and Type | Field and Description |
---|---|
static int |
FAULT_DOMAIN_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.DomainInfo |
getDefaultInstance() |
Protos.DomainInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.DomainInfo.FaultDomain |
getFaultDomain()
optional .mesos.DomainInfo.FaultDomain fault_domain = 1; |
Protos.DomainInfo.FaultDomainOrBuilder |
getFaultDomainOrBuilder()
optional .mesos.DomainInfo.FaultDomain fault_domain = 1; |
<any> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasFaultDomain()
optional .mesos.DomainInfo.FaultDomain fault_domain = 1; |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.DomainInfo.Builder |
newBuilder() |
static Protos.DomainInfo.Builder |
newBuilder(Protos.DomainInfo prototype) |
Protos.DomainInfo.Builder |
newBuilderForType() |
protected Protos.DomainInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.DomainInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.DomainInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DomainInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DomainInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.DomainInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DomainInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.DomainInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DomainInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.DomainInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DomainInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.DomainInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int FAULT_DOMAIN_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public boolean hasFaultDomain()
optional .mesos.DomainInfo.FaultDomain fault_domain = 1;
hasFaultDomain
in interface Protos.DomainInfoOrBuilder
public Protos.DomainInfo.FaultDomain getFaultDomain()
optional .mesos.DomainInfo.FaultDomain fault_domain = 1;
getFaultDomain
in interface Protos.DomainInfoOrBuilder
public Protos.DomainInfo.FaultDomainOrBuilder getFaultDomainOrBuilder()
optional .mesos.DomainInfo.FaultDomain fault_domain = 1;
getFaultDomainOrBuilder
in interface Protos.DomainInfoOrBuilder
public final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.DomainInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.DomainInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.DomainInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.DomainInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.DomainInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.DomainInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.DomainInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.DomainInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.DomainInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.DomainInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.DomainInfo.Builder newBuilderForType()
public static Protos.DomainInfo.Builder newBuilder()
public static Protos.DomainInfo.Builder newBuilder(Protos.DomainInfo prototype)
public Protos.DomainInfo.Builder toBuilder()
protected Protos.DomainInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.DomainInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.DomainInfo getDefaultInstanceForType()