Class AwsHelper
AWS helpers.
Namespace: Neon.Kube.ClusterDef
Assembly: Neon.Kube.dll
Syntax
public static class AwsHelper
Fields
MaxClusterNodes
The maximum number of nodes currently allowed in a cluster deployed to AWS.
Declaration
public const int MaxClusterNodes = 100
Field Value
| Type | Description |
|---|---|
| int |
MaxHostedEndpoints
The maximum number of hosted load balanced TCP/UDP endpoints allowed in a cluster deployed to AWS.
Declaration
public const int MaxHostedEndpoints = 150
Field Value
| Type | Description |
|---|---|
| int |
Methods
GetVolumeSizeGiB(AwsVolumeType, decimal)
Converts the requested disk size in bytes to the actual required size of the AWS managed disk in GiB.
Declaration
public static decimal GetVolumeSizeGiB(AwsVolumeType volumeType, decimal driveSizeBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| AwsVolumeType | volumeType | Specifies the disk storage type. |
| decimal | driveSizeBytes | The requested size in bytes. |
Returns
| Type | Description |
|---|---|
| decimal | The actual AWS volume size in GiB. |
Remarks
We're not going to allow volumes smaller than MinNodeDiskSizeGiB or larger than 16 TiB, the current AWS limit for volumes with 4 KiB blocks. We're also going to round up to the nearest GiB.