Documentation
¶
Index ¶
Constants ¶
const AWSRegion = "us-east-1"
AWSRegion Region of AWS services.
const ActiveReplica = 2 //min
Async migrate control
const BackupsPerInstance = 20 // (InstanceCapacity - InstanceOverhead) / RecoverRate
BackupsPerInstance Number of backup instances used for parallel recovery.
const BucketDuration = 10 // min
Each bucket's active duration
const ChunkThreshold = 125000 // Fraction, ChunkThreshold = InstanceCapacity / 100K * Threshold
Maximum chunk per instance
const Cluster = WindowCluster
const DefaultInstanceCapacity = 1024 * 1000000 // 1GB
InstanceCapacity Capacity of deployed Lambda functions. TODO: Detectable on invocation. Can be specified by option -funcap for now.
const FLAG_CLIENTSIDE_FIRSTD_OPTIMIZATION = 0x0002
FLAG_CLIENTSIDE_FIRSTD_OPTIMIZATION enables D+P optimization on client side.
const FLAG_ENABLE_LOCAL_CACHE = 0x0004
FLAG_ENABLE_LOCAL_CACHE enables local cache.
const FLAG_FIXED_INTERVAL_WARMUP = 0x0001
FLAG_FIXED_INTERVAL_WARMUP warms up lambda with fixed interval regardless workload.
const InstanceDegradeWarmTimeout = 5 * time.Minute
Instance degrade warmup interval
const InstanceOverhead = 100 * 1000000 // MB
InstanceOverhead Memory reserved for running program on Lambda functions.
const InstanceWarmTimeout = 1 * time.Minute
InstanceWarmTimout Interval to warmup Lambda functions.
const LambdaFeatures = protocol.FLAG_ENABLE_WARMUP | protocol.FLAG_ENABLE_PERSISTENT | protocol.FLAG_DISABLE_WAIT_FOR_COS
const LambdaLogLevel = logger.LOG_LEVEL_ALL // Set to logger.LOG_LEVEL_ALL to keep Lambda log level aligned with proxy log level.
const LambdaMaxDeployments = 400
LambdaMaxDeployments Number of Lambda function deployments available.
const LambdaPrefix = "Your Lambda Function Prefix"
LambdaPrefix Prefix of Lambda function, overridable with command line parameter -lambda-prefix.
const LambdaStoreName = "LambdaStore"
LambdaStoreName Obsoleted. Name of Lambda function for replica version.
const NumActiveBuckets = 6
Number of buckets that warmup every InstanceWarmTimeout
const NumAvailableBuckets = 18
Number of buckets before expiring Buckets beyond NumActiveBuckets but within ExpireBucketsNum will get degraded warmup: InstanceDegradeWarmTimeout
const NumLambdaClusters = 12
NumLambdaClusters Number of Lambda function deployments initiated on launching. For window cluster, this must be at least D+P
const ProxyFeatures = FLAG_CLIENTSIDE_FIRSTD_OPTIMIZATION | FLAG_ENABLE_LOCAL_CACHE
const RecoverRate = 40 * 1000000 // Not actually used.
RecoverRate Empirical S3 download rate for specified InstanceCapacity. 40MB for 512, 1024, 1536MB instance, 70MB for 3008MB instance.
const ServerPublicIp = "" // Leave it empty if Lambda VPC is enabled.
ServerPublicIp Public IP of proxy, leave empty if running Lambda functions in VPC.
const SliceSize = 100
Size of a slice if the cluster implementation support. Client library use this value to initialize chunk placements.
const StaticCluster = "static"
Mode of cluster.
const Threshold = 0.9 // Don't set beyond 0.9
Threshold Scaling out avg instance size threshold
const WindowCluster = "window"
Variables ¶
var ProxyList []string
ProxyList Ip addresses and ports in the format "ip:port" of proxies. If running on one proxy, then can be left empty. For multi-proxies deployment, build static proxy list here. Private ip should be used if Lambda VPC is enabled.
Functions ¶
This section is empty.
Types ¶
This section is empty.