Skip to content

Is there an easy way to glean the concurrency pattern of a vector component? #21373

Answered by jszwedko
nzxwang asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @nzxwang !

The datadog_logs sink isn't single threaded, it will batch and issue requests concurrently. This can be configured via the request.concurrency option. By default "adaptive" concurrency is used where it'll try to optimize the concurrency based on latency and responses from upstream, but you can also set request.concurrency = <some number> to use a static amount of request concurrency.

To answer your other question about how how to determine whether a component executes concurrently:

  • Stateful transforms are single-threaded (those with the state: stateful badge in the docs). Examples are the reduce and lua transforms. state: stateless transforms (like sample) execute concurrently

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nzxwang
Comment options

@jszwedko
Comment options

Answer selected by nzxwang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants