You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@heron.apache.org by GitBox <gi...@apache.org> on 2018/03/30 06:27:09 UTC
[GitHub] nwangtw closed pull request #2822: Add rate limit change log in stream manager
nwangtw closed pull request #2822: Add rate limit change log in stream manager
URL: https://github.com/apache/incubator-heron/pull/2822
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/heron/stmgr/src/cpp/manager/instance-server.cpp b/heron/stmgr/src/cpp/manager/instance-server.cpp
index 1fc0c47260..72887496dd 100644
--- a/heron/stmgr/src/cpp/manager/instance-server.cpp
+++ b/heron/stmgr/src/cpp/manager/instance-server.cpp
@@ -448,8 +448,10 @@ void InstanceServer::SetRateLimit(const proto::system::PhysicalPlan& _pplan,
// There should be parallelism hint and the per instance rate limit should be at least
// one byte per second
if (parallelism > 0 && read_bsp > parallelism && burst_read_bsp > parallelism) {
+ LOG(INFO) << "Set rate limit in " << _component << " to " << read_bsp << "/" << burst_read_bsp;
_conn->setRateLimit(read_bsp / parallelism, burst_read_bsp / parallelism);
} else {
+ LOG(INFO) << "Disable rate limit in " << _component;
_conn->disableRateLimit();
}
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services