You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a Jaeger administrator, I want to be able to set a custom TTL on my Cassandra datastore to something greater than the default (2d).
Steps to reproduce
Define a Jaeger resource like the following:
apiVersion: jaegertracing.io/v1kind: Jaegermetadata:
name: jaegerspec:
strategy: production # creates separate pods for query and collectorcollector:
maxReplicas: 10# collector pod cannot scale out past this numberaffinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/part-of: jaegerapp.kubernetes.io/component: collectortopologyKey: 'kubernetes.io/hostname'weight: 100resources:
requests:
cpu: "250m"memory: "64Mi"options:
collector:
queue-size: 2000ingress:
enabled: false # don't use the default ingress, manage it separatelystorage:
type: cassandraoptions:
cassandra:
servers: jaeger-cassandra-service.jaeger-system.svckeyspace: jaeger_v1secretName: cassandra-credscassandraCreateSchema:
datacenter: "cassandra"# must match CassandraDatacenter namemode: "prod"# ensures minimum replicas and replication methodtimeout: "15m"# initial wait period for Cassandra to be ready prior to creating schematraceTTL: "7d"# length of time traces will be stored before being dropped
Create the resource.
Observe the logs from the schema job when Jaeger first starts up, note the value of trace_ttl is still the default 172800 seconds (2 days):
Checking if Cassandra is up at jaeger-cassandra-service.jaeger-system.svc:9042.
Warning: Using a password on the command line interface can be insecure.
Recommendation: use the credentials file to securely provide the password.
system system_distributed system_traces system_virtual_schema
system_auth system_schema system_views
Cassandra connection established.
Warning: Using a password on the command line interface can be insecure.
Recommendation: use the credentials file to securely provide the password.
Cassandra version detected: 4
Generating the schema for the keyspace jaeger_v1 and datacenter cassandra.
Using template file /cassandra-schema/v004.cql.tmpl with parameters:
mode = prod
datacenter = cassandra
keyspace = jaeger_v1
replication = {'class': 'NetworkTopologyStrategy', 'cassandra': '2' }
trace_ttl = 172800
dependencies_ttl = 0
compaction_window_size = 96
compaction_window_unit = MINUTES
Warning: Using a password on the command line interface can be insecure.
Recommendation: use the credentials file to securely provide the password.
Schema generated.
Expected behavior
I expected the schema job would run with an environment variable TRACE_TTL equal to 604800 seconds (7 days).
Relevant log output
No response
Screenshot
No response
Additional context
No response
Jaeger backend version
1.54.0
SDK
OpenTelemetry Python SDK 0.48 via OpenTelemetry Collector 0.98.0
Looks like this is due to Argo stripping quotes from the YAML string, which causes values like 7d to be interpreted as hex values. Specifying something like 168h works.
@iblancasa I could, just not too familiar with the Go codebase to contribute something quickly.
What happened?
As a Jaeger administrator, I want to be able to set a custom TTL on my Cassandra datastore to something greater than the default (2d).
Steps to reproduce
Jaeger
resource like the following:trace_ttl
is still the default172800
seconds (2 days):Expected behavior
I expected the schema job would run with an environment variable
TRACE_TTL
equal to604800
seconds (7 days).Relevant log output
No response
Screenshot
No response
Additional context
No response
Jaeger backend version
1.54.0
SDK
OpenTelemetry Python SDK 0.48 via OpenTelemetry Collector 0.98.0
Pipeline
Python OTEL SDK -> OTEL Collector -> Jaeger Collector -> Cassandra
Stogage backend
Cassandra 4.1.4
Operating system
Linux
Deployment model
Kubernetes 1.27 running on EKS
Deployment configs
No response
The text was updated successfully, but these errors were encountered: