Skip to content

Commit

Permalink
string-interner experiments with LRU enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Brian L. Troutwine <[email protected]>
  • Loading branch information
blt committed Nov 29, 2023
1 parent c7a9567 commit 19a7a4a
Show file tree
Hide file tree
Showing 27 changed files with 836 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
auth_token_file_path: /tmp/agent-auth-token
hostname: smp-regression

dd_url: http://127.0.0.1:9092

confd_path: /etc/datadog-agent/conf.d

# Disable cloud detection. This stops the Agent from poking around the
# execution environment & network. This is particularly important if the target
# has network access.
cloud_provider_metadata: []

dogstatsd_socket: '/tmp/dsd.socket'
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
optimization_goal: ingress_throughput
erratic: false

environment:
DD_DOGSTATSD_STRING_INTERNER_ENABLE_LRU: true
DD_TELEMETRY_ENABLED: true
DD_API_KEY: 00000001

profiling_environment:
DD_DOGSTATSD_STRING_INTERNER_ENABLE_LRU: true

DD_INTERNAL_PROFILING_BLOCK_PROFILE_RATE: 10000
DD_INTERNAL_PROFILING_CPU_DURATION: 1m
DD_INTERNAL_PROFILING_DELTA_PROFILES: true
DD_INTERNAL_PROFILING_ENABLED: true
DD_INTERNAL_PROFILING_ENABLE_GOROUTINE_STACKTRACES: true
DD_INTERNAL_PROFILING_MUTEX_PROFILE_FRACTION: 10
DD_INTERNAL_PROFILING_PERIOD: 1m
DD_INTERNAL_PROFILING_UNIX_SOCKET: /var/run/datadog/apm.socket
DD_PROFILING_EXECUTION_TRACE_ENABLED: true
DD_PROFILING_EXECUTION_TRACE_PERIOD: 1m
DD_PROFILING_WAIT_PROFILE: true

DD_INTERNAL_PROFILING_EXTRA_TAGS: experiment:dogstatsd_lru_string_interner_128MiB_100
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# If you update this configuration please update `uds_dogstatsd_*` experiments
# to match, where reasonable.
generator:
- unix_datagram:
seed: [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53,
59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131]
path: "/tmp/dsd.socket"
variant:
dogstatsd:
contexts:
constant: 100
name_length:
inclusive:
min: 1
max: 200
tag_key_length:
inclusive:
min: 1
max: 100
tag_value_length:
inclusive:
min: 1
max: 100
tags_per_msg:
inclusive:
min: 2
max: 50
multivalue_count:
inclusive:
min: 2
max: 32
multivalue_pack_probability: 0.08
kind_weights:
metric: 90
event: 5
service_check: 5
metric_weights:
count: 100
gauge: 10
timer: 0
distribution: 0
set: 0
histogram: 0
bytes_per_second: "128 MiB"
block_sizes: ["256b", "512b", "1Kb", "2Kb", "3Kb", "4Kb", "5Kb", "6Kb"]
maximum_prebuild_cache_size_bytes: "500 Mb"

blackhole:
- http:
binding_addr: "127.0.0.1:9091"
- http:
binding_addr: "127.0.0.1:9092"

target_metrics:
- prometheus:
uri: "http://127.0.0.1:5000/telemetry"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
auth_token_file_path: /tmp/agent-auth-token
hostname: smp-regression

dd_url: http://127.0.0.1:9092

confd_path: /etc/datadog-agent/conf.d

# Disable cloud detection. This stops the Agent from poking around the
# execution environment & network. This is particularly important if the target
# has network access.
cloud_provider_metadata: []

dogstatsd_socket: '/tmp/dsd.socket'
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
optimization_goal: ingress_throughput
erratic: false

environment:
DD_DOGSTATSD_STRING_INTERNER_ENABLE_LRU: true
DD_TELEMETRY_ENABLED: true
DD_API_KEY: 00000001

profiling_environment:
DD_DOGSTATSD_STRING_INTERNER_ENABLE_LRU: true

DD_INTERNAL_PROFILING_BLOCK_PROFILE_RATE: 10000
DD_INTERNAL_PROFILING_CPU_DURATION: 1m
DD_INTERNAL_PROFILING_DELTA_PROFILES: true
DD_INTERNAL_PROFILING_ENABLED: true
DD_INTERNAL_PROFILING_ENABLE_GOROUTINE_STACKTRACES: true
DD_INTERNAL_PROFILING_MUTEX_PROFILE_FRACTION: 10
DD_INTERNAL_PROFILING_PERIOD: 1m
DD_INTERNAL_PROFILING_UNIX_SOCKET: /var/run/datadog/apm.socket
DD_PROFILING_EXECUTION_TRACE_ENABLED: true
DD_PROFILING_EXECUTION_TRACE_PERIOD: 1m
DD_PROFILING_WAIT_PROFILE: true

DD_INTERNAL_PROFILING_EXTRA_TAGS: experiment:dogstatsd_lru_string_interner_128MiB_1k
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# If you update this configuration please update `uds_dogstatsd_*` experiments
# to match, where reasonable.
generator:
- unix_datagram:
seed: [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53,
59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131]
path: "/tmp/dsd.socket"
variant:
dogstatsd:
contexts:
constant: 1000
name_length:
inclusive:
min: 1
max: 200
tag_key_length:
inclusive:
min: 1
max: 100
tag_value_length:
inclusive:
min: 1
max: 100
tags_per_msg:
inclusive:
min: 2
max: 50
multivalue_count:
inclusive:
min: 2
max: 32
multivalue_pack_probability: 0.08
kind_weights:
metric: 90
event: 5
service_check: 5
metric_weights:
count: 100
gauge: 10
timer: 0
distribution: 0
set: 0
histogram: 0
bytes_per_second: "128 MiB"
block_sizes: ["256b", "512b", "1Kb", "2Kb", "3Kb", "4Kb", "5Kb", "6Kb"]
maximum_prebuild_cache_size_bytes: "500 Mb"

blackhole:
- http:
binding_addr: "127.0.0.1:9091"
- http:
binding_addr: "127.0.0.1:9092"

target_metrics:
- prometheus:
uri: "http://127.0.0.1:5000/telemetry"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
auth_token_file_path: /tmp/agent-auth-token
hostname: smp-regression

dd_url: http://127.0.0.1:9092

confd_path: /etc/datadog-agent/conf.d

# Disable cloud detection. This stops the Agent from poking around the
# execution environment & network. This is particularly important if the target
# has network access.
cloud_provider_metadata: []

dogstatsd_socket: '/tmp/dsd.socket'
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
optimization_goal: ingress_throughput
erratic: false

environment:
DD_DOGSTATSD_STRING_INTERNER_ENABLE_LRU: true
DD_TELEMETRY_ENABLED: true
DD_API_KEY: 00000001

profiling_environment:
DD_DOGSTATSD_STRING_INTERNER_ENABLE_LRU: true
DD_INTERNAL_PROFILING_BLOCK_PROFILE_RATE: 10000
DD_INTERNAL_PROFILING_CPU_DURATION: 1m
DD_INTERNAL_PROFILING_DELTA_PROFILES: true
DD_INTERNAL_PROFILING_ENABLED: true
DD_INTERNAL_PROFILING_ENABLE_GOROUTINE_STACKTRACES: true
DD_INTERNAL_PROFILING_MUTEX_PROFILE_FRACTION: 10
DD_INTERNAL_PROFILING_PERIOD: 1m
DD_INTERNAL_PROFILING_UNIX_SOCKET: /var/run/datadog/apm.socket
DD_PROFILING_EXECUTION_TRACE_ENABLED: true
DD_PROFILING_EXECUTION_TRACE_PERIOD: 1m
DD_PROFILING_WAIT_PROFILE: true

DD_INTERNAL_PROFILING_EXTRA_TAGS: experiment:dogstatsd_lru_string_interner_64MiB_100
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# If you update this configuration please update `uds_dogstatsd_*` experiments
# to match, where reasonable.
generator:
- unix_datagram:
seed: [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53,
59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131]
path: "/tmp/dsd.socket"
variant:
dogstatsd:
contexts:
constant: 100
name_length:
inclusive:
min: 1
max: 200
tag_key_length:
inclusive:
min: 1
max: 100
tag_value_length:
inclusive:
min: 1
max: 100
tags_per_msg:
inclusive:
min: 2
max: 50
multivalue_count:
inclusive:
min: 2
max: 32
multivalue_pack_probability: 0.08
kind_weights:
metric: 90
event: 5
service_check: 5
metric_weights:
count: 100
gauge: 10
timer: 0
distribution: 0
set: 0
histogram: 0
bytes_per_second: "64 MiB"
block_sizes: ["256b", "512b", "1Kb", "2Kb", "3Kb", "4Kb", "5Kb", "6Kb"]
maximum_prebuild_cache_size_bytes: "500 Mb"

blackhole:
- http:
binding_addr: "127.0.0.1:9091"
- http:
binding_addr: "127.0.0.1:9092"

target_metrics:
- prometheus:
uri: "http://127.0.0.1:5000/telemetry"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
auth_token_file_path: /tmp/agent-auth-token
hostname: smp-regression

dd_url: http://127.0.0.1:9092

confd_path: /etc/datadog-agent/conf.d

# Disable cloud detection. This stops the Agent from poking around the
# execution environment & network. This is particularly important if the target
# has network access.
cloud_provider_metadata: []

dogstatsd_socket: '/tmp/dsd.socket'
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
optimization_goal: ingress_throughput
erratic: false

environment:
DD_DOGSTATSD_STRING_INTERNER_ENABLE_LRU: true
DD_TELEMETRY_ENABLED: true
DD_API_KEY: 00000001

profiling_environment:
DD_DOGSTATSD_STRING_INTERNER_ENABLE_LRU: true

DD_INTERNAL_PROFILING_BLOCK_PROFILE_RATE: 10000
DD_INTERNAL_PROFILING_CPU_DURATION: 1m
DD_INTERNAL_PROFILING_DELTA_PROFILES: true
DD_INTERNAL_PROFILING_ENABLED: true
DD_INTERNAL_PROFILING_ENABLE_GOROUTINE_STACKTRACES: true
DD_INTERNAL_PROFILING_MUTEX_PROFILE_FRACTION: 10
DD_INTERNAL_PROFILING_PERIOD: 1m
DD_INTERNAL_PROFILING_UNIX_SOCKET: /var/run/datadog/apm.socket
DD_PROFILING_EXECUTION_TRACE_ENABLED: true
DD_PROFILING_EXECUTION_TRACE_PERIOD: 1m
DD_PROFILING_WAIT_PROFILE: true

DD_INTERNAL_PROFILING_EXTRA_TAGS: experiment:dogstatsd_lru_string_interner_64MiB_1k
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# If you update this configuration please update `uds_dogstatsd_*` experiments
# to match, where reasonable.
generator:
- unix_datagram:
seed: [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53,
59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131]
path: "/tmp/dsd.socket"
variant:
dogstatsd:
contexts:
constant: 1000
name_length:
inclusive:
min: 1
max: 200
tag_key_length:
inclusive:
min: 1
max: 100
tag_value_length:
inclusive:
min: 1
max: 100
tags_per_msg:
inclusive:
min: 2
max: 50
multivalue_count:
inclusive:
min: 2
max: 32
multivalue_pack_probability: 0.08
kind_weights:
metric: 90
event: 5
service_check: 5
metric_weights:
count: 100
gauge: 10
timer: 0
distribution: 0
set: 0
histogram: 0
bytes_per_second: "64 MiB"
block_sizes: ["256b", "512b", "1Kb", "2Kb", "3Kb", "4Kb", "5Kb", "6Kb"]
maximum_prebuild_cache_size_bytes: "500 Mb"

blackhole:
- http:
binding_addr: "127.0.0.1:9091"
- http:
binding_addr: "127.0.0.1:9092"

target_metrics:
- prometheus:
uri: "http://127.0.0.1:5000/telemetry"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
auth_token_file_path: /tmp/agent-auth-token
hostname: smp-regression

dd_url: http://127.0.0.1:9092

confd_path: /etc/datadog-agent/conf.d

# Disable cloud detection. This stops the Agent from poking around the
# execution environment & network. This is particularly important if the target
# has network access.
cloud_provider_metadata: []

dogstatsd_socket: '/tmp/dsd.socket'
Loading

0 comments on commit 19a7a4a

Please sign in to comment.