Skip to content

Commit

Permalink
Functionbeat use a concurrency of 5 by default for AWS lambda (elasti…
Browse files Browse the repository at this point in the history
…c#8992)

* Use a concurrency of 5 by default

This change the previous default of an unreserved concurrency, this
allow to have a more sane value to keep the cost down and still
allow people to turn the knob up to get better performance.

* adding changelog
  • Loading branch information
ph authored Nov 15, 2018
1 parent f5768f3 commit e2d9287
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ https://github.com/elastic/beats/compare/v6.4.0...master[Check the HEAD diff]
*Winlogbeat*

*Functionbeat*
- Function concurrency is now set to 5 instead of unreserved. {pull}8992[8992]

==== Bugfixes

Expand Down
4 changes: 2 additions & 2 deletions x-pack/functionbeat/_meta/beat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ functionbeat.provider.aws.functions:
description: "lambda function for cloudwatch logs"

# Concurrency, is the reserved number of instances for that function.
# Default is unreserved.
# Default is 5.
#
# Note: There is a hard limit of 1000 functions of any kind per account.
#concurrency: 5
Expand Down Expand Up @@ -62,7 +62,7 @@ functionbeat.provider.aws.functions:
description: "lambda function for sqs events"

# Concurrency, is the reserved number of instances for that function.
# Default is unreserved.
# Default is 5.
#
# Note: There is a hard limit of 1000 functions of any kind per account.
#concurrency: 5
Expand Down
4 changes: 2 additions & 2 deletions x-pack/functionbeat/_meta/beat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ functionbeat.provider.aws.functions:
description: "lambda function for cloudwatch logs"

# Concurrency, is the reserved number of instances for that function.
# Default is unreserved.
# Default is 5.
#
# Note: There is a hard limit of 1000 functions of any kind per account.
#concurrency: 5
Expand Down Expand Up @@ -63,7 +63,7 @@ functionbeat.provider.aws.functions:
description: "lambda function for SQS events"

# Concurrency, is the reserved number of instances for that function.
# Default is unreserved.
# Default is 5.
#
# Note: There is a hard limit of 1000 functions of any kind per account.
#concurrency: 5
Expand Down
4 changes: 2 additions & 2 deletions x-pack/functionbeat/functionbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ functionbeat.provider.aws.functions:
description: "lambda function for cloudwatch logs"

# Concurrency, is the reserved number of instances for that function.
# Default is unreserved.
# Default is 5.
#
# Note: There is a hard limit of 1000 functions of any kind per account.
#concurrency: 5
Expand Down Expand Up @@ -62,7 +62,7 @@ functionbeat.provider.aws.functions:
description: "lambda function for sqs events"

# Concurrency, is the reserved number of instances for that function.
# Default is unreserved.
# Default is 5.
#
# Note: There is a hard limit of 1000 functions of any kind per account.
#concurrency: 5
Expand Down
4 changes: 2 additions & 2 deletions x-pack/functionbeat/functionbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ functionbeat.provider.aws.functions:
description: "lambda function for cloudwatch logs"

# Concurrency, is the reserved number of instances for that function.
# Default is unreserved.
# Default is 5.
#
# Note: There is a hard limit of 1000 functions of any kind per account.
#concurrency: 5
Expand Down Expand Up @@ -63,7 +63,7 @@ functionbeat.provider.aws.functions:
description: "lambda function for SQS events"

# Concurrency, is the reserved number of instances for that function.
# Default is unreserved.
# Default is 5.
#
# Note: There is a hard limit of 1000 functions of any kind per account.
#concurrency: 5
Expand Down
4 changes: 2 additions & 2 deletions x-pack/functionbeat/provider/aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ const maxMegabytes = 3008
var DefaultLambdaConfig = &lambdaConfig{
MemorySize: 128 * 1024 * 1024,
Timeout: time.Second * 3,
Concurrency: 0, // unreserve
Concurrency: 5,
}

type lambdaConfig struct {
Concurrency int `config:"concurrency" validate:"positive"`
Concurrency int `config:"concurrency" validate:"min=0,max=1000"`
DeadLetterConfig *deadLetterConfig `config:"dead_letter_config"`
Description string `config:"description"`
MemorySize MemSizeFactor64 `config:"memory_size"`
Expand Down

0 comments on commit e2d9287

Please sign in to comment.