public class TenantConfiguration extends Object
Constructor and Description |
---|
TenantConfiguration()
Create an empty TenantConfiguration, no limitations on any resource
|
TenantConfiguration(int cpuShare,
long maxHeapBytes) |
TenantConfiguration(Iterable<Constraint> constraints) |
TenantConfiguration(long maxHeapBytes) |
Modifier and Type | Method and Description |
---|---|
int |
getCpuShares()
Corresponding to Linux cgroup's cpu.shares
|
int |
getMaxCPU()
Deprecated.
|
int |
getMaxCpuPercent()
Corresponding to combination of Linux cgroup's cpu.cfs_period_us and cpu.cfs_quota_us
|
long |
getMaxHeap() |
int |
getWeight()
Deprecated.
|
boolean |
isAllocToOld() |
TenantConfiguration |
limitCpuCfs(int period,
int quota)
limit CGroup's cpu.cfs_* controller
|
TenantConfiguration |
limitCpuSet(String cpuSets) |
TenantConfiguration |
limitCpuShares(int share) |
TenantConfiguration |
limitHeap(long maxJavaHeapBytes) |
TenantConfiguration |
setDirectTenuredAlloc()
set the allocate type of configuration as OLD.
|
public TenantConfiguration()
public TenantConfiguration(Iterable<Constraint> constraints)
public TenantConfiguration(int cpuShare, long maxHeapBytes)
cpuShare
- maxHeapBytes
- public TenantConfiguration(long maxHeapBytes)
maxHeapBytes
- public TenantConfiguration limitCpuCfs(int period, int quota)
period
- corresponding to cpu.cfs_periodquota
- corresponding to cpu.cfs_quotapublic TenantConfiguration limitCpuShares(int share)
share
- public TenantConfiguration limitCpuSet(String cpuSets)
cpuSets
- public TenantConfiguration limitHeap(long maxJavaHeapBytes)
maxJavaHeapBytes
- public boolean isAllocToOld()
public TenantConfiguration setDirectTenuredAlloc()
@Deprecated public int getMaxCPU()
getMaxCpuPercent()
public int getMaxCpuPercent()
@Deprecated public int getWeight()
getCpuShares()
public int getCpuShares()
public long getMaxHeap()
"Copyright 2018, Alibaba, Inc."