mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
IMPALA-6116: Bound memory usage of DataStreamSevice's service queue
The fix for IMPALA-6193 added a memory tracker for the memory consumed by the payloads in the service queue of DataStreamService. This change extends it by introducing a bound on the memory usage for that service queue. In addition, it deprecates FLAGS_datastream_service_queue_depth and replaces it with FLAGS_datastream_service_queue_mem_limit. These flags only take effect when KRPC is in use and KRPC was never enabled in any previous releases so it seems safe to do this flag replacement. The new flag FLAGS_datastream_service_queue_mem_limit directly dictates the amount of memory which can be consumed by the service queue of DataStreamService. This allows a more direct control over the memory usage of the queue instead of inferring via the number of entries in the queue. The default value of this flag is left at 0, in which case it will be set to 5% of process memory limit. Testing done: exhaustive debug builds. Updated data-stream-test to exercise the case in which the payload is larger than the limit. Change-Id: Idea4262dfb0e0aa8d58ff6ea6a8aaaa248e880b9 Reviewed-on: http://gerrit.cloudera.org:8080/9282 Reviewed-by: Michael Ho <kwho@cloudera.com> Tested-by: Impala Public Jenkins
This commit is contained in:
committed by
Impala Public Jenkins
parent
61d941fad3
commit
3a049a530e
@@ -22,8 +22,8 @@ from tests.common.impala_cluster import ImpalaCluster
|
||||
from tests.common.skip import SkipIf, SkipIfBuildType
|
||||
from tests.verifiers.mem_usage_verifier import MemUsageVerifier
|
||||
|
||||
DATA_STREAM_MGR_METRIC = "Data Stream Queued RPC Calls"
|
||||
DATA_STREAM_SVC_METRIC = "Data Stream Service"
|
||||
DATA_STREAM_MGR_METRIC = "Data Stream Manager Deferred RPCs"
|
||||
DATA_STREAM_SVC_METRIC = "Data Stream Service Queue"
|
||||
ALL_METRICS = [ DATA_STREAM_MGR_METRIC, DATA_STREAM_SVC_METRIC ]
|
||||
|
||||
@SkipIf.not_krpc
|
||||
|
||||
Reference in New Issue
Block a user