Changing default API rate limits

Akamas services are configured out-of-the-box to use API rate limiting on number of calls (per second and per minute) and on maximum size of payload. Most services use the following values:

max API calls per second: 100
max API calls per minute: 200
max payload size: 2Mb

For actual values for all services, see dedicated section in page Default API rate limits

In order to change default configuration for API rate limits, you should use the same environment file that you configured in section Online Installationor Offline Installation - Private registry . Under normal circumstances this will be akamas.yaml file. Also, changes must be performed before launching Akamas server. Otherwise, the server will have to be restarted to apply new changes.

In order to disable (by default they are enabled) API rate limits for services, you can disable them one by one (or just some of them) with the following lines:

# settings for analyzer service
analyzer:
  trafficLimits:
    enabled: false
# settings for campaign service
campaign:
  trafficLimits:
    enabled: false
# settings for keycloak service
keycloak:
  trafficLimits:
    enabled: false
# settings for license service
license:
  trafficLimits:
    enabled: false
# settings for log service
log:
  trafficLimits:
    enabled: false
# settings for metrics service
metrics:
  trafficLimits:
    enabled: false
# settings for optimizer service
optimizer:
  trafficLimits:
    enabled: false
# settings for orchestrator service
orchestrator:
  trafficLimits:
    enabled: false
# settings for store service
store:
  trafficLimits:
    enabled: false
# settings for system service
system:
  trafficLimits:
    enabled: false
# settings for telemetry service
telemetry:
  trafficLimits:
    enabled: false
# settings for user service (yes, the line below must be "users:" and not "user:")
users:
  trafficLimits:
    enabled: false

Instead, in order to set different API rate limits you should add the desired lines for any service you may want to change. Below is a complete list, assuming you want to change all of them. Warning: is not recommended to lower the limits. Anyway, the numbers below are pure examples and have already been increased from standard values

Last updated

Was this helpful?