Skip to content

Commit

Permalink
try huge buffers to avoid chunking entirely
Browse files Browse the repository at this point in the history
Signed-off-by: Luke Steensen <[email protected]>
  • Loading branch information
lukesteensen committed Mar 7, 2025
1 parent dc58591 commit aadda3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/saluki-components/src/destinations/datadog/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ use super::common::{config::ForwarderConfiguration, io::TransactionForwarder, te
mod request_builder;
use self::request_builder::{MetricsEndpoint, RequestBuilder};

const RB_BUFFER_POOL_COUNT: usize = 256;
const RB_BUFFER_POOL_BUF_SIZE: usize = 2 ^ 16;
const RB_BUFFER_POOL_COUNT: usize = 10;
const RB_BUFFER_POOL_BUF_SIZE: usize = 5 * 1024 * 1024; // 4MB is max request size, so should not have to chunk across buffers

const fn default_max_metrics_per_payload() -> usize {
10_000
Expand Down

0 comments on commit aadda3a

Please sign in to comment.