Skip to content

Commit

Permalink
adjust count
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardoVale committed Apr 26, 2024
1 parent 451fef5 commit a75916d
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 22 deletions.
Empty file removed nomad/apigw-ratelimit/bct1.hcl
Empty file.
Empty file removed nomad/apigw-ratelimit/buf1.hcl
Empty file.
2 changes: 1 addition & 1 deletion nomad/apigw-ratelimit/common.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
job_name = "apigw-ratelimit"
docker_image = "kentik-api-ratelimit"

app_count = 1
app_count = 2

constraints = [
{
Expand Down
Empty file removed nomad/apigw-ratelimit/dev1.hcl
Empty file.
Empty file removed nomad/apigw-ratelimit/dfw1.hcl
Empty file.
10 changes: 0 additions & 10 deletions nomad/apigw-ratelimit/fra1.hcl

This file was deleted.

Empty file removed nomad/apigw-ratelimit/hnd1.hcl
Empty file.
Empty file removed nomad/apigw-ratelimit/hrd1.hcl
Empty file.
Empty file removed nomad/apigw-ratelimit/jp1.hcl
Empty file.
Empty file removed nomad/apigw-ratelimit/nez1.hcl
Empty file.
Empty file removed nomad/apigw-ratelimit/nrt1.hcl
Empty file.
1 change: 1 addition & 0 deletions nomad/apigw-ratelimit/our1.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app_count = 1
11 changes: 1 addition & 10 deletions nomad/apigw-ratelimit/production.hcl
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@

scaling = {
enabled = true
min = 2
max = 10
meta_attribute_policy = {
enabled = true
attribute = "run_apigw-ratelimit"
}
}
app_count = 3
Empty file removed nomad/apigw-ratelimit/yyz1.hcl
Empty file.
2 changes: 1 addition & 1 deletion src/service/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ func NewService(runtime loader.IFace, cache limiter.RateLimitCache,
for {
logger.Debugf("waiting for runtime update")
<-newService.runtimeUpdateEvent
logger.Debugf("got runtime update and reloading config")
logger.Info("got runtime update and reloading config")
newService.reloadConfig()
}
}()
Expand Down

0 comments on commit a75916d

Please sign in to comment.