public class ClusterProperties extends Object
If Mesos cluster working in Intranet or behind NAT then an access to local resources can be set
by ignitePackagePath()
or ignitePackageUrl()
which should be available from nodes.
Constructor and Description |
---|
ClusterProperties() |
Modifier and Type | Method and Description |
---|---|
String |
clusterName() |
double |
cpus() |
void |
cpus(double cpu)
Sets CPU count limit.
|
double |
cpusPerNode() |
void |
cpusPerNode(double cpu)
Sets CPU count limit.
|
double |
disk() |
double |
diskPerNode() |
static ClusterProperties |
from(String cfg) |
static String |
getNonLoopbackAddress()
Finds a local, non-loopback, IPv4 address
|
Pattern |
hostnameConstraint() |
void |
hostnameConstraint(Pattern ptrn)
Sets hostname constraint.
|
String |
httpServerHost() |
int |
httpServerPort() |
long |
idleTimeout()
Sets the maximum Idle time for a http connection, which will be used for
jetty server.
|
String |
igniteCfg() |
String |
igniteConfigUrl() |
String |
ignitePackagePath()
Path on local file system to ignite archive.
|
String |
ignitePackageUrl()
URL to ignite package.
|
String |
igniteVer() |
String |
igniteWorkDir() |
double |
instances() |
String |
jmvOpts() |
String |
licenceUrl() |
String |
masterUrl() |
double |
memory() |
void |
memory(double mem)
Sets mem limit.
|
double |
memoryPerNode() |
void |
memoryPerNode(double mem)
Sets mem limit.
|
double |
minCpuPerNode() |
void |
minCpuPerNode(double minCpu)
Sets min cpu count per node.
|
double |
minMemoryPerNode() |
void |
minMemoryPerNode(double minMemory)
Sets min memory.
|
String |
userLibs() |
String |
usersLibsUrl() |
public static final double UNLIMITED
public static final String MESOS_MASTER_URL
public static final String DEFAULT_MESOS_MASTER_URL
public static final String IGNITE_JVM_OPTS
public static final String IGNITE_CLUSTER_NAME
public static final String DEFAULT_CLUSTER_NAME
public static final String IGNITE_HTTP_SERVER_HOST
public static final String IGNITE_HTTP_SERVER_PORT
public static final String DEFAULT_HTTP_SERVER_PORT
public static final String IGNITE_TOTAL_CPU
public static final String IGNITE_RUN_CPU_PER_NODE
public static final String IGNITE_TOTAL_MEMORY
public static final String IGNITE_MEMORY_PER_NODE
public static final String IGNITE_TOTAL_DISK_SPACE
public static final String IGNITE_DISK_SPACE_PER_NODE
public static final String IGNITE_NODE_COUNT
public static final String IGNITE_MIN_CPU_PER_NODE
public static final double DEFAULT_RESOURCE_MIN_CPU
public static final String IGNITE_MIN_MEMORY_PER_NODE
public static final double DEFAULT_RESOURCE_MIN_MEM
public static final String IGNITE_VERSION
public static final String DEFAULT_IGNITE_VERSION
public static final String IGNITE_PACKAGE_URL
public static final String IGNITE_PACKAGE_PATH
public static final String IGNITE_WORK_DIR
public static final String DEFAULT_IGNITE_WORK_DIR
public static final String IGNITE_USERS_LIBS
public static final String IGNITE_USERS_LIBS_URL
public static final String LICENCE_URL
public static final String IGNITE_CONFIG_XML
public static final String IGNITE_CONFIG_XML_URL
public static final String IGNITE_HTTP_SERVER_IDLE_TIMEOUT
public static final long IGNITE_HTTP_SERVER_IDLE_TIMEOUT_DEFAULT
public static final String IGNITE_HOSTNAME_CONSTRAINT
public String clusterName()
public double cpus()
public void cpus(double cpu)
public double cpusPerNode()
public void cpusPerNode(double cpu)
public double memory()
public void memory(double mem)
mem
- Memory.public double memoryPerNode()
public void memoryPerNode(double mem)
mem
- Memory.public String jmvOpts()
public double disk()
public double diskPerNode()
public double instances()
public double minMemoryPerNode()
public void minMemoryPerNode(double minMemory)
minMemory
- Min memory.public void hostnameConstraint(Pattern ptrn)
ptrn
- Hostname pattern.public double minCpuPerNode()
public void minCpuPerNode(double minCpu)
minCpu
- min cpu count per node.public String igniteVer()
public String igniteWorkDir()
public String userLibs()
public String igniteCfg()
public String masterUrl()
public String httpServerHost()
public int httpServerPort()
public long idleTimeout()
public String ignitePackageUrl()
public String ignitePackagePath()
public String igniteConfigUrl()
public String usersLibsUrl()
public String licenceUrl()
public Pattern hostnameConstraint()
public static ClusterProperties from(String cfg)
cfg
- path to config file.public static String getNonLoopbackAddress() throws SocketException
null
if no such addresses foundSocketException
- If there was a problem querying the network interfaces
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024