public class TribeService extends AbstractLifecycleComponent<TribeService>
The processSettings(org.elasticsearch.common.settings.Settings)
method should be called before
starting the node, so it will make sure to configure this current node properly with the relevant tribe node
settings.
The tribe node settings make sure the discovery used is "local", but with no master elected. This means no
write level master node operations will work (MasterNotDiscoveredException
will be thrown), and state level metadata operations with automatically use the local flag.
The state merged from different clusters include the list of nodes, metadata, and routing table. Each node merged will have in its tribe which tribe member it came from. Each index merged will have in its settings which tribe member it came from. In case an index has already been merged from one cluster, and the same name index is discovered in another cluster, the conflict one will be discarded. This happens because we need to have the correct index name to propagate to the relevant cluster.
Modifier and Type | Field and Description |
---|---|
static ClusterBlock |
TRIBE_METADATA_BLOCK |
static String |
TRIBE_NAME |
static ClusterBlock |
TRIBE_WRITE_BLOCK |
lifecycle
deprecationLogger, logger, settings
Constructor and Description |
---|
TribeService(Settings settings,
ClusterService clusterService,
DiscoveryService discoveryService) |
Modifier and Type | Method and Description |
---|---|
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
static Settings |
processSettings(Settings settings) |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
logDeprecatedSetting, logRemovedSetting, nodeName
public static final ClusterBlock TRIBE_METADATA_BLOCK
public static final ClusterBlock TRIBE_WRITE_BLOCK
public static final String TRIBE_NAME
@Inject public TribeService(Settings settings, ClusterService clusterService, DiscoveryService discoveryService)
protected void doStart()
doStart
in class AbstractLifecycleComponent<TribeService>
protected void doStop()
doStop
in class AbstractLifecycleComponent<TribeService>
protected void doClose()
doClose
in class AbstractLifecycleComponent<TribeService>
Copyright © 2009–2016. All rights reserved.