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

STORM-3648 add meter to track worker heartbeat rate #3294

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

agresch
Copy link
Contributor

@agresch agresch commented Jun 24, 2020

What is the purpose of the change

Add a meter to allow users to track/alert on slowdown of worker heartbeat rate.

How was the change tested

built code.

@@ -196,6 +198,8 @@ private Object loadWorker(IStateStorage stateStorage, IStormClusterState stormCl
throws Exception {
workerState = new WorkerState(conf, context, topologyId, assignmentId, supervisorIfaceSupplier, port, workerId,
topologyConf, stateStorage, stormClusterState, autoCreds, metricRegistry);
this.heatbeatMeter = metricRegistry.meter("doHeartbeat-calls", workerState.getWorkerTopologyContext(),
"__system", -1, "default");
Copy link
Contributor

Choose a reason for hiding this comment

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

It is better to not hardcode it. We can use SYSTEM_COMPONENT_ID, SYSTEM_TASK_ID. And it looks like it doesn't make much sense to have streamId here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would you prefer I pass in "" for streamId? Or are you indicating we should have a metric name convention that allows skipping inclusion of stream?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Also I feel like the metrics should have the key before the value, for example, we now have
xx.<compId>.<taskId>.yy.
I think it should be xx.componentId.<compId>.taskId.<taskId>.yy so the values are more readable. But this is a separate issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Ethanlm - updated

Copy link
Contributor

@Ethanlm Ethanlm left a comment

Choose a reason for hiding this comment

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

+1

@Ethanlm Ethanlm merged commit 2924dca into apache:master Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants