LinuxOSConfig Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. LinuxOSConfig
- com.
public final class LinuxOSConfig
OS configurations of Linux agent nodes. See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details.
Constructor Summary
Constructor | Description |
---|---|
LinuxOSConfig() |
Creates an instance of Linux |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
swapFileSizeMB()
Get the swap |
Sysctl |
sysctls()
Get the sysctls property: Sysctl settings for Linux agent nodes. |
String |
transparentHugePageDefrag()
Get the transparent |
String |
transparentHugePageEnabled()
Get the transparent |
void |
validate()
Validates the instance. |
Linux |
withSwapFileSizeMB(Integer swapFileSizeMB)
Set the swap |
Linux |
withSysctls(SysctlConfig sysctls)
Set the sysctls property: Sysctl settings for Linux agent nodes. |
Linux |
withTransparentHugePageDefrag(String transparentHugePageDefrag)
Set the transparent |
Linux |
withTransparentHugePageEnabled(String transparentHugePageEnabled)
Set the transparent |
Methods inherited from java.lang.Object
Constructor Details
LinuxOSConfig
public LinuxOSConfig()
Creates an instance of LinuxOSConfig class.
Method Details
swapFileSizeMB
public Integer swapFileSizeMB()
Get the swapFileSizeMB property: The size in MB of a swap file that will be created on each node.
Returns:
sysctls
public SysctlConfig sysctls()
Get the sysctls property: Sysctl settings for Linux agent nodes.
Returns:
transparentHugePageDefrag
public String transparentHugePageDefrag()
Get the transparentHugePageDefrag property: Whether the kernel should make aggressive use of memory compaction to make more hugepages available. Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and 'never'. The default is 'madvise'. For more information see [Transparent Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html\#admin-guide-transhuge).
Returns:
transparentHugePageEnabled
public String transparentHugePageEnabled()
Get the transparentHugePageEnabled property: Whether transparent hugepages are enabled. Valid values are 'always', 'madvise', and 'never'. The default is 'always'. For more information see [Transparent Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html\#admin-guide-transhuge).
Returns:
validate
public void validate()
Validates the instance.
withSwapFileSizeMB
public LinuxOSConfig withSwapFileSizeMB(Integer swapFileSizeMB)
Set the swapFileSizeMB property: The size in MB of a swap file that will be created on each node.
Parameters:
Returns:
withSysctls
public LinuxOSConfig withSysctls(SysctlConfig sysctls)
Set the sysctls property: Sysctl settings for Linux agent nodes.
Parameters:
Returns:
withTransparentHugePageDefrag
public LinuxOSConfig withTransparentHugePageDefrag(String transparentHugePageDefrag)
Set the transparentHugePageDefrag property: Whether the kernel should make aggressive use of memory compaction to make more hugepages available. Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and 'never'. The default is 'madvise'. For more information see [Transparent Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html\#admin-guide-transhuge).
Parameters:
Returns:
withTransparentHugePageEnabled
public LinuxOSConfig withTransparentHugePageEnabled(String transparentHugePageEnabled)
Set the transparentHugePageEnabled property: Whether transparent hugepages are enabled. Valid values are 'always', 'madvise', and 'never'. The default is 'always'. For more information see [Transparent Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html\#admin-guide-transhuge).
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for