You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing docs on rate-limit config in Horizon's captive-core #348
Is it a soft limit that can be controlled by configuration, if yes can you help where?
The reason I ask is that we see that stellar-core.conf is autogenerated by/for the captive-core process and we can't find how to change/inject this configuration.
changed the title [-]Missing docs on rate-limit config in Horison's captive-core[/-][+]Missing docs on rate-limit config in Horizon's captive-core[/+]on Apr 25, 2024
@borisovano the stellar core configuration is indeed autogenerated by Horizon. Horizon only exposes some subset of the configuration provided by core, which it will then translate into the core config file it generates. It is (intentionally) not possible to edit this file directly.
In this particular case though, the rate limiting is a Horizon configuration. The value you are looking for is PER_HOUR_RATE_LIMIT. You can disable it entirely by setting it to 0 (ie. PER_HOUR_RATE_LIMIT=0), the default is 3600 req/s, but you'll probably want to tune it to your own infrastructures capabilities and client/request needs. We'll update the rate limiting docs here to make this clear.
Activity
[Soroban Merge] Create a "Platforms" section (#325)
Clean up page descriptions in category indexes (#348)
[Soroban Merge] Create a "Smart Contracts" section (#388)
[-]Missing docs on rate-limit config in Horison's captive-core[/-][+]Missing docs on rate-limit config in Horizon's captive-core[/+]mollykarcher commentedon May 8, 2024
@borisovano the stellar core configuration is indeed autogenerated by Horizon. Horizon only exposes some subset of the configuration provided by core, which it will then translate into the core config file it generates. It is (intentionally) not possible to edit this file directly.
In this particular case though, the rate limiting is a Horizon configuration. The value you are looking for is
PER_HOUR_RATE_LIMIT. You can disable it entirely by setting it to 0 (ie.PER_HOUR_RATE_LIMIT=0), the default is 3600 req/s, but you'll probably want to tune it to your own infrastructures capabilities and client/request needs. We'll update the rate limiting docs here to make this clear.