Skip to content

Commit

Permalink
perf: bump max buffer len (#2279)
Browse files Browse the repository at this point in the history
* perf: bump max buffer len

* chore: fix failing test
  • Loading branch information
Ziinc authored Dec 11, 2024
1 parent f3ccdbc commit 5f78751
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/logflare/backends.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule Logflare.Backends do

defdelegate child_spec(arg), to: __MODULE__.Supervisor

@max_pending_buffer_len 50_000
@max_pending_buffer_len 100_000

@doc """
Retrieves the hardcoded max pending buffer length.
Expand Down
2 changes: 1 addition & 1 deletion test/logflare_web/plugs/buffer_limiter_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule LogflareWeb.Plugs.BufferLimiterTest do
source: source,
table_key: table_key
} do
for _ <- 1..55_000 do
for _ <- 1..100_500 do
le = build(:log_event)
IngestEventQueue.add_to_table(table_key, [le])
end
Expand Down

0 comments on commit 5f78751

Please sign in to comment.