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

ReactiveSocket metrics client/server #1236

Merged
merged 2 commits into from
Jun 12, 2016

Conversation

mattrjacobs
Copy link
Contributor

  • Client/Server in hystrix-examples-reactivesocket
  • Improvements to HystrixCommandAsyncDemo
  • Bugfixes/polishing to hystrix-reactivesocket-metric-stream. Sources should support arbitrary sharing between 0-n subscribers that may come and go. When subscriber count drops to 0, source does no work

* Client/Server in hystrix-examples-reactivesocket
* Improvements to HystrixCommandAsyncDemo
* Bugfixes/polishing to hystrix-reactivesocket-metric-stream.  Sources should support arbitrary sharing between 0-n subscribers that may come and go.  When subscriber count drops to 0, source does no work
@mattrjacobs
Copy link
Contributor Author

/cc @robertroeser @neerajrj @nickmahilani - Could you take a look?

collapserConfigMap.put(collapserKey, collapserConfig);
}
} catch (IOException ioe) {
System.out.println("IO Exception : " + ioe);

Choose a reason for hiding this comment

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

can log with logger here

@mattrjacobs
Copy link
Contributor Author

Good catch @nickmahilani - just found 2 others as well

.map(SerialHystrixMetric::toPayload);
break;
case GENERAL_DASHBOARD_STREAM:
source = HystrixDashboardStream.getInstance()

Choose a reason for hiding this comment

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

For my understanding, why is the dashboard stream delay not configurable?

Choose a reason for hiding this comment

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

Singletons for util/config stream to allow subscribers to share w/ archaius sounds like a good approach.

@mattrjacobs
Copy link
Contributor Author

Right now, the utilization and configuration streams always accept a stream delay and are non-singletons. Looking back, this is probably a mistake as it makes it harder for multiple subscribers to share.

I think there are 2 more tasks (coming next week):

  1. Make util/config streams singletons
  2. Hook the singleton streams up to Archaius so that there's a way to do something other than what we hard-code. I think that should still require a restart though.

@nickmahilani
Copy link

just couple minor comments, PR looks good to me 👍

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