Merge pull request #5369 from blockscout/vb-manage-memory-limit
Manage indexer memory limitpull/5399/head
commit
b05088130a
@ -0,0 +1,15 @@ |
||||
import Config |
||||
|
||||
import Bitwise |
||||
|
||||
indexer_memory_limit = |
||||
"INDEXER_MEMORY_LIMIT" |
||||
|> System.get_env("1") |
||||
|> Integer.parse() |
||||
|> case do |
||||
{integer, ""} -> integer |
||||
_ -> 1 |
||||
end |
||||
|
||||
config :indexer, |
||||
memory_limit: indexer_memory_limit <<< 30 |
Loading…
Reference in new issue