config

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AWSRegion = "us-east-1"

AWSRegion Region of AWS services.

View Source
const ActiveReplica = 2 //min

Async migrate control

View Source
const BackupsPerInstance = 20 // (InstanceCapacity - InstanceOverhead) / RecoverRate

BackupsPerInstance Number of backup instances used for parallel recovery.

View Source
const BucketDuration = 10 // min

Each bucket's active duration

View Source
const ChunkThreshold = 125000 // Fraction, ChunkThreshold = InstanceCapacity / 100K * Threshold

Maximum chunk per instance

View Source
const Cluster = WindowCluster
View Source
const DefaultInstanceCapacity = 1024 * 1000000 // 1GB

InstanceCapacity Capacity of deployed Lambda functions. TODO: Detectable on invocation. Can be specified by option -funcap for now.

View Source
const FLAG_CLIENTSIDE_FIRSTD_OPTIMIZATION = 0x0002

FLAG_CLIENTSIDE_FIRSTD_OPTIMIZATION enables D+P optimization on client side.

View Source
const FLAG_ENABLE_LOCAL_CACHE = 0x0004

FLAG_ENABLE_LOCAL_CACHE enables local cache.

View Source
const FLAG_FIXED_INTERVAL_WARMUP = 0x0001

FLAG_FIXED_INTERVAL_WARMUP warms up lambda with fixed interval regardless workload.

View Source
const InstanceDegradeWarmTimeout = 5 * time.Minute

Instance degrade warmup interval

View Source
const InstanceOverhead = 100 * 1000000 // MB

InstanceOverhead Memory reserved for running program on Lambda functions.

View Source
const InstanceWarmTimeout = 1 * time.Minute

InstanceWarmTimout Interval to warmup Lambda functions.

View Source
const LambdaLogLevel = logger.LOG_LEVEL_ALL // Set to logger.LOG_LEVEL_ALL to keep Lambda log level aligned with proxy log level.
View Source
const LambdaMaxDeployments = 400

LambdaMaxDeployments Number of Lambda function deployments available.

View Source
const LambdaPrefix = "Your Lambda Function Prefix"

LambdaPrefix Prefix of Lambda function, overridable with command line parameter -lambda-prefix.

View Source
const LambdaStoreName = "LambdaStore"

LambdaStoreName Obsoleted. Name of Lambda function for replica version.

View Source
const NumActiveBuckets = 6

Number of buckets that warmup every InstanceWarmTimeout

View Source
const NumAvailableBuckets = 18

Number of buckets before expiring Buckets beyond NumActiveBuckets but within ExpireBucketsNum will get degraded warmup: InstanceDegradeWarmTimeout

View Source
const NumLambdaClusters = 12

NumLambdaClusters Number of Lambda function deployments initiated on launching. For window cluster, this must be at least D+P

View Source
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.

View Source
const ServerPublicIp = "" // Leave it empty if Lambda VPC is enabled.

ServerPublicIp Public IP of proxy, leave empty if running Lambda functions in VPC.

View Source
const SliceSize = 100

Size of a slice if the cluster implementation support. Client library use this value to initialize chunk placements.

View Source
const StaticCluster = "static"

Mode of cluster.

View Source
const Threshold = 0.9 // Don't set beyond 0.9

Threshold Scaling out avg instance size threshold

View Source
const WindowCluster = "window"

Variables

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL