Closed hgrant-ebsco closed 5 months ago
@JayG-EBSCO did you run the init
step with rollover job?
@JayG-EBSCO did you run the
init
step with rollover job?
@pavolloffay Yes, first we run a single run job using the es-rollover container to enable the aliases. Yaml for that as follows:
`--- apiVersion: batch/v1 kind: Job metadata: name: jaeger-enable-es-rollover labels: app: jaeger-enable-es-rollover spec: template: spec: containers:
thanks for the confirmation.
I am not sure if query can submit index templates. Is also query configured with the 2 shards?
thanks for the confirmation.
I am not sure if query can submit index templates. Is also query configured with the 2 shards?
Query currently does not have a shards value being passed to it. It's args are:
args:
- '--config-file=/conf/query.yaml'
- '--es.use-aliases=true'
- '--log-level=warn'
I was not able to reproduce your issue:
docker run -it --rm -e "ES_JAVA_OPTS=-Xms2g -Xmx2g" -p 9200:9200 -p 9300:9300 -e "http.host=0.0.0.0" -e "discovery.type=single-node" --name=elasticsearch docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.4
docker run -it --rm --net=host -e SHARDS=1 -e REPLICAS=0 jaegertracing/jaeger-es-rollover:1.18.0 init http://localhost:9200
docker run -it --rm --net=host -e SPAN_STORAGE_TYPE=elasticsearch jaegertracing/all-in-one:1.18.0 --es.use-aliases=true
curl -ivX GET localhost:9200/jaeger-span-000001?pretty
shows shards 1 and replicas 0
How are you deploying Jaeger? Via the Jaeger operator or your custom k8s manifests?
I was not able to reproduce your issue:
docker run -it --rm -e "ES_JAVA_OPTS=-Xms2g -Xmx2g" -p 9200:9200 -p 9300:9300 -e "http.host=0.0.0.0" -e "discovery.type=single-node" --name=elasticsearch docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.4 docker run -it --rm --net=host -e SHARDS=1 -e REPLICAS=0 jaegertracing/jaeger-es-rollover:1.18.0 init http://localhost:9200 docker run -it --rm --net=host -e SPAN_STORAGE_TYPE=elasticsearch jaegertracing/all-in-one:1.18.0 --es.use-aliases=true
curl -ivX GET localhost:9200/jaeger-span-000001?pretty
shows shards 1 and replicas 0How are you deploying Jaeger? Via the Jaeger operator or your custom k8s manifests?
We are currently using custom k8s manifests.
Stale issue was never replicated, closing this out. Feel free to reopen.
We are currently experimenting with enabling the roll over api via Jaeger. In doing so, we are noticing that even though we specify a shards value of 2, the first index is always created with 5 shards when we have aliases enabled. Once the second index for the rollover is created, it honors the value of 2 shards, and does so going forward.
If we do not enable alias, the shard value is honored from the start with the daily created indices.
Our Jaeger collector parameters are as follows:
` name: jaeger-collector args: