Skip to content
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

Limits names lookback in Elasticsearch #1538

Merged
merged 1 commit into from
Mar 15, 2017
Merged

Conversation

codefromthecrypt
Copy link
Member

This reuses QUERY_LOOKBACK to limit names queries (service and span
names) from searching all indexes. This is particularly important for
high-volume sites (ex 100% sampling or high traffic), and those who do
not use curator or otherwise to prune data.

Fixes #1462 (at least helps a lot with no schema change)

This reuses `QUERY_LOOKBACK` to limit names queries (service and span
names) from searching all indexes. This is particularly important for
high-volume sites (ex 100% sampling or high traffic), and those who do
not use curator or otherwise to prune data.

Fixes #1462 (at least helps a lot with no schema change)
@codefromthecrypt
Copy link
Member Author

circleci is freaking out on license header dates (which was a problem we had in travis prior)

@Value("${zipkin.storage.strict-trace-id:true}") boolean strictTraceId) {
return elasticsearch.toBuilder(client).strictTraceId(strictTraceId);
@Value("${zipkin.storage.strict-trace-id:true}") boolean strictTraceId,
@Value("${zipkin.query.lookback:86400000}") int namesLookback) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps I'm ok to add this as a elasticsearch property instead. ex zipkin.storage.elasticsearch.names-lookback (we have similar things in cassandra)

Copy link

@leegggg leegggg Oct 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this as a elasticsearch property may be a better idea. zipkin.query.lookback is a 32bit int variable which has a maximum of 2_147_483_647(ms) that is about 59.6621 hours. It is really not enough.
A zipkin.storage.elasticsearch.names-lookback property in secs or even days can be great. Or may be you can use a 64bit variable for zipkin.query.lookback.
ps. Should this be a new issue?

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Oct 23, 2017 via email

@leegggg
Copy link

leegggg commented Oct 24, 2017

@adriancole Thank you for your conform, I will check if there are still similar issues and try fixing them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants