Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions jobs/log-cache/spec
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ properties:
description: "Percentage of system memory to use for the cache. Must be an integer."
default: 50

memory_limit_bytes:
description: "Overrides memory_limit_percent with a specific size cache in bytes."

max_per_source:
description: "The maximum number of items stored in LogCache per source."
default: 100000
Expand Down
3 changes: 3 additions & 0 deletions jobs/log-cache/templates/bpm.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ processes:
env:
ADDR: "<%= ":#{p('port')}" %>"
MEMORY_LIMIT_PERCENT: "<%= p('memory_limit_percent') %>"
<%- if_p('memory_limit_bytes') do |memory_limit_bytes| %>
MEMORY_LIMIT_BYTES: "<%= memory_limit_bytes %>"
<% end -%>
MAX_PER_SOURCE: "<%= p('max_per_source') %>"
INGRESS_BUFFER_SIZE: "<%= p('ingress_buffer_size') %>"
INGRESS_BUFFER_READ_BATCH_SIZE: "<%= p('ingress_buffer_read_batch_size') %>"
Expand Down
Loading