public static enum Config.BatchlogEndpointStrategy extends java.lang.Enum<Config.BatchlogEndpointStrategy>
Enum Constant and Description |
---|
dynamic
Strategy using
Config.dynamic_snitch (DynamicEndpointSnitch )
to select batchlog storage endpoints. |
dynamic_remote
Strategy using
Config.dynamic_snitch (DynamicEndpointSnitch )
to select batchlog storage endpoints. |
prefer_local
Random, except that one of the replications will go to the local rack.
|
random_remote
Old, conventional strategy to select batchlog storage endpoints.
|
Modifier and Type | Field and Description |
---|---|
boolean |
preferLocalRack
If true, one of the selected nodes will come from the local rack.
|
boolean |
useDynamicSnitchScores
If true, dynamic snitch response times will be used to select more responsive nodes to write the batchlog to.
|
Modifier and Type | Method and Description |
---|---|
static Config.BatchlogEndpointStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Config.BatchlogEndpointStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Config.BatchlogEndpointStrategy random_remote
public static final Config.BatchlogEndpointStrategy prefer_local
random_remote
or dynamic_remote
.public static final Config.BatchlogEndpointStrategy dynamic_remote
Config.dynamic_snitch
(DynamicEndpointSnitch
)
to select batchlog storage endpoints. Prevents the local rack, if possible.
This strategy offers the same availability guarantees as random_remote
but selects the
fastest endpoints according to the DynamicEndpointSnitch
.
Hint: DynamicEndpointSnitch
tracks reads and not writes - i.e.
write-only (or mostly-write) workloads might not benefit from this strategy.
Note: this strategy will fall back to random_remote
, if Config.dynamic_snitch
is not enabled.public static final Config.BatchlogEndpointStrategy dynamic
Config.dynamic_snitch
(DynamicEndpointSnitch
)
to select batchlog storage endpoints. Does not prevent the local rack.
Since the local rack is not excluded, this strategy offers lower availability guarantees than
random_remote
or dynamic_remote
.
Hint: DynamicEndpointSnitch
tracks reads and not writes - i.e.
write-only (or mostly-write) workloads might not benefit from this strategy.
Note: this strategy will fall back to random_remote
, if Config.dynamic_snitch
is not enabled.public final boolean useDynamicSnitchScores
public final boolean preferLocalRack
public static Config.BatchlogEndpointStrategy[] values()
for (Config.BatchlogEndpointStrategy c : Config.BatchlogEndpointStrategy.values()) System.out.println(c);
public static Config.BatchlogEndpointStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2009- The Apache Software Foundation