GigaSpaces XAP 9.7.2 API

org.openspaces.admin.pu.elastic.config
Interface ScaleStrategyConfig

All Superinterfaces:
BeanConfig, Externalizable, Serializable
All Known Implementing Classes:
AutomaticCapacityScaleConfig, EagerScaleConfig, ManualCapacityPerZonesScaleConfig, ManualCapacityScaleConfig

public interface ScaleStrategyConfig
extends BeanConfig, Externalizable


Method Summary
 boolean equals(Object other)
           
 int getMaxConcurrentRelocationsPerMachine()
           
 int getPollingIntervalSeconds()
           
 int hashCode()
           
 boolean isAllowAboveAverageMemoryPerMachine()
           
 boolean isAtMostOneConcurrentRelocation()
           
 boolean isAtMostOneContainerPerMachine()
           
 void setAllowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
          Allows a single machine to accommodate for more than the average maximum memory allocation of a Processing Unit.
 void setAtMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
          Limits the number of concurrent relocations for the entire cluster to 1.
 void setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
          When set to true, at most one Grid Service Container for this Processing Unit is started per machine.
 void setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
          Specifies the number of processing unit instance relocations each machine can handle concurrently.
 void setPollingIntervalSeconds(int seconds)
          Sets the polling interval in which the scale strategy SLA is monitored and enforced.
 String toString()
           
 
Methods inherited from interface org.openspaces.admin.bean.BeanConfig
getBeanClassName, getProperties, setProperties
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Method Detail

setPollingIntervalSeconds

void setPollingIntervalSeconds(int seconds)
Sets the polling interval in which the scale strategy SLA is monitored and enforced.

Parameters:
seconds - - the polling interval in seconds

getPollingIntervalSeconds

int getPollingIntervalSeconds()

getMaxConcurrentRelocationsPerMachine

int getMaxConcurrentRelocationsPerMachine()

setMaxConcurrentRelocationsPerMachine

void setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
Specifies the number of processing unit instance relocations each machine can handle concurrently. Relocation requires network and CPU resources, and too many concurrent relocations per machine may degrade its performance temporarily. The data recovery running as part of the relocation uses by default 4 threads. So the total number of threads is 4 multiplied by the specified value. By setting this value higher than 1, processing unit rebalancing completes faster, by using more machine cpu and network resources. Default value is 1. This is an advanced property setting.

Parameters:
maxNumberOfConcurrentRelocationsPerMachine -

setAtMostOneContainerPerMachine

void setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
When set to true, at most one Grid Service Container for this Processing Unit is started per machine.

Since:
8.0.3

setAllowAboveAverageMemoryPerMachine

void setAllowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
Allows a single machine to accommodate for more than the average maximum memory allocation of a Processing Unit. The average is calculated like so : (memoryCapacityPerContainer * totalNumberOfProcessingUnitInstances) / minimumNumberOfMachines

Since:
9.7.0

isAllowAboveAverageMemoryPerMachine

boolean isAllowAboveAverageMemoryPerMachine()

setAtMostOneConcurrentRelocation

void setAtMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
Limits the number of concurrent relocations for the entire cluster to 1. Notice this is an aggregated property across all machines.

Since:
9.7.0
See Also:
setMaxConcurrentRelocationsPerMachine(int)

isAtMostOneConcurrentRelocation

boolean isAtMostOneConcurrentRelocation()

isAtMostOneContainerPerMachine

boolean isAtMostOneContainerPerMachine()

equals

boolean equals(Object other)
Overrides:
equals in class Object

hashCode

int hashCode()
Overrides:
hashCode in class Object

toString

String toString()
Overrides:
toString in class Object

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.