-
Notifications
You must be signed in to change notification settings - Fork 127
Add scale test mode to example agent #481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tigrannajaryan
merged 26 commits into
open-telemetry:main
from
michel-laterman:enhancement/scale-test
Feb 10, 2026
Merged
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
e090918
Add dumb scale test agent
229943d
Change scale test driver to use example agents
d10f4e3
Cleanup
6591f69
Server performance improvements
b2e6edd
Fix issues
11e0b80
fix
5dea625
Remove extra changes
f148d9a
Fix comments
72aaae6
Add connection count intstrumentation to example server
0225f00
Control scale agent verbosity
1aef6c8
Use internal NopLogger
4842f66
Merge remote-tracking branch 'origin/main' into enhancement/scale-test
853d54e
Cleanup scale test driver, provide dockerfile, adjust makefile target
35dedbd
Merge branch 'main' into enhancement/scale-test
3e3d5ac
Allow example agent to be started in scale-test mode
0fa4c86
Remove unused dockerfile
0fd21e7
fix fmt
529cb4f
Merge remote-tracking branch 'origin/main' into enhancement/scale-test
3d7d253
Review feedback
1797dae
Fix README typos
53be1ed
Remove metrics from example server
182cdd3
fix go.mod
16f7ad1
Review feedback
b3a3ded
Fix typo
8a1ba2c
Merge remote-tracking branch 'origin/main' into enhancement/scale-test
ded57ab
Fix merge
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # agent | ||
|
|
||
| Agent provides provides and example agent implementation for the OpAMP protocol. | ||
|
|
||
| Both HTTP and Websocket connections are supported. | ||
|
|
||
| The example agent can be in a normal mode; where the binary starts a single agent, or in scale mode (when `-run-scale` is passed or `AGENT_RUN_SCALE=true` is set). | ||
|
|
||
| When in scale mode the process will start multiple agents (up to `-agent-scale-count/AGENT_SCALE_COUNT`) in the same process. | ||
| All agents will use the same scheme when connection to the OpAMP server (HTTP/Websocket). | ||
|
|
||
| In scale mode, the agent orchestartor will log to stdout, and the agents to stderr. | ||
|
|
||
| ## Usage | ||
|
|
||
| ``` | ||
| Usage of agent: | ||
| -endpoint string | ||
| OpAMP server endpoint URL (env var: AGENT_ENDPOINT). (default "wss://127.0.0.1:4320/v1/opamp") | ||
| -heartbeat duration | ||
| Heartbeat duration (env var: AGENT_HEARTBEAT). (default 30s) | ||
| -quite-agent | ||
| Disable agent logger (env var: AGENT_QUITE). | ||
| -run-scale | ||
| Run in scale-test mode (env var: AGENT_RUN_SCALE). | ||
| -scale-count uint | ||
| The number of agents to start in scale mode (env var: AGENT_SCALE_COUNT). (default 1000) | ||
| -t string | ||
| Agent Type String (env var: AGENT_TYPE). (default "io.opentelemetry.collector") | ||
| -tls-ca_file string | ||
| Path to the CA cert. It verifies the server certificate (env var: AGENT_TLS_CA_FILE). | ||
| -tls-cert_file string | ||
| Path to the TLS cert (env var: AGENT_TLS_CERT_FILE). | ||
| -tls-insecure | ||
| Disable the client transport security (env var: AGENT_TLS_INSECURE). | ||
| -tls-insecure_skip_verify | ||
| Will enable TLS but not verify the certificate (env var: AGENT_TLS_INSECURE_SKIP_VERIFY). | ||
| -tls-key_file string | ||
| Path to the TLS key (env var: AGENT_TLS_KEY_FILE). | ||
| -v string | ||
| Agent Version String (env var: AGENT_VERSION). (default "1.0.0") | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.