public class ScalingFcns extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXIMUM_VM_SIZE
Maximum size of a VM.
|
static int |
MINIMUM_VM_SIZE
Minimum size of a VM.
|
static int |
VM_PADDING_SIZE
Amount of padding for a VM.
|
| Constructor and Description |
|---|
ScalingFcns() |
| Modifier and Type | Method and Description |
|---|---|
static String |
scaleVmSize(int maxKeys,
int dataSize,
int numHosts)
Returns a string containing the VM sizing parameters Xms and Xmx scaled
for spreading maxKeys objects of size dataSize (in bytes) across numHosts
hosts.
|
public static final int MINIMUM_VM_SIZE
public static final int MAXIMUM_VM_SIZE
public static final int VM_PADDING_SIZE
public static String scaleVmSize(int maxKeys, int dataSize, int numHosts)
MINIMUM_VM_SIZE megabytes.
Computed sizes are padded by VM_PADDING_SIZE megabytes. An error
is thrown if the value exceeds a maximum of MAXIMUM_VM_SIZE
megabytes.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.