-
Notifications
You must be signed in to change notification settings - Fork 17
/
PerformanceMode.go
33 lines (29 loc) · 1.33 KB
/
PerformanceMode.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package awsefs
// EFS Performance mode.
//
// Example:
// fileSystem := efs.NewFileSystem(this, jsii.String("MyEfsFileSystem"), &FileSystemProps{
// Vpc: ec2.NewVpc(this, jsii.String("VPC")),
// LifecyclePolicy: efs.LifecyclePolicy_AFTER_14_DAYS,
// // files are not transitioned to infrequent access (IA) storage by default
// PerformanceMode: efs.PerformanceMode_GENERAL_PURPOSE,
// // default
// OutOfInfrequentAccessPolicy: efs.OutOfInfrequentAccessPolicy_AFTER_1_ACCESS,
// })
//
// See: https://docs.aws.amazon.com/efs/latest/ug/performance.html#performancemodes
//
type PerformanceMode string
const (
// General Purpose is ideal for latency-sensitive use cases, like web serving environments, content management systems, home directories, and general file serving.
//
// Recommended for the majority of Amazon EFS file systems.
PerformanceMode_GENERAL_PURPOSE PerformanceMode = "GENERAL_PURPOSE"
// File systems in the Max I/O mode can scale to higher levels of aggregate throughput and operations per second.
//
// This scaling is done with a tradeoff
// of slightly higher latencies for file metadata operations.
// Highly parallelized applications and workloads, such as big data analysis,
// media processing, and genomics analysis, can benefit from this mode.
PerformanceMode_MAX_IO PerformanceMode = "MAX_IO"
)