-
Notifications
You must be signed in to change notification settings - Fork 13
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
Sharded meta client and sharded aura fixes #27
base: master
Are you sure you want to change the base?
Conversation
Have the AuraMetricsHttpFactory use the HttpV3SourceFactory directly. Add a static host config to the AuraMetricsHttpFactory
@Override | ||
public Iterator<MergedMetaTimeSeriesQueryResult> getTimeseriesAllShards(String namespace, String query) throws MetaFetchException { | ||
|
||
final List<ShardEndPoint> shardEndPoints = setUpEndpoints(namespace); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is expensive to do for each call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, it should be event driven. May be it's okay to start and we can revisit this. Needs a TODO
in that case.
|
||
for(int i = 0 ; i < futures.size(); i++) { | ||
try { | ||
timeSeriesQueryResults.add(futures.get(i).get()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's have a timeout in the future.get()
|
||
final ShardEndPoint shardEndPoint = setUpEndpoints(namespace).get(shardId); | ||
try { | ||
return getResult(clients.get(shardEndPoint), query).get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeout
her as well.
No description provided.